Examples of minifyPackage()


Examples of org.saiku.plugin.util.packager.Packager.minifyPackage()

            log.debug("Looking for all plugin files time: " + (end - start) + "ms - Files: " + files.size());
            if (files.size() > 0) {
                String pluginRootDir = PentahoSystem.getApplicationContext().getSolutionPath("system/saiku");
                File[] fileArray = files.toArray(new File[files.size()]);
                packager.registerPackage("scripts", Packager.Filetype.JS, searchRootDir, pluginRootDir + "/../../system/saiku/ui/js/scripts.js", fileArray);
                packager.minifyPackage("scripts", ( debug ? Packager.Mode.CONCATENATE : Packager.Mode.MINIFY));
                return ResourceManager.getInstance().getResourceAsString( "ui/js/scripts.js");
            }
        } catch (IOException ioe) {
            log.error("Error fetching plugins", ioe);
        }
View Full Code Here

Examples of org.saiku.plugin.util.packager.Packager.minifyPackage()

      if (files.size() > 0) {
        String pluginRootDir = PentahoSystem.getApplicationContext().getSolutionPath("system/saiku");
        File[] fileArray = files.toArray(new File[files.size()]);
        packager.registerPackage("scripts", Packager.Filetype.JS, searchRootDir, pluginRootDir + "/../../system/saiku/ui/js/scripts.js", fileArray);         
        packager.minifyPackage("scripts", ( debug ? Packager.Mode.CONCATENATE : Packager.Mode.MINIFY));
        return ResourceManager.getInstance().getResourceAsString( "ui/js/scripts.js");

      }
    } catch (IOException ioe) {
      log.error("Error fetching plugins", ioe);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.