Package uglify

Examples of uglify.UglifyJS


    File[] sources = findSourceFiles();

    if (sources != null) {
      log("Compiling " + sources.length + " file(s)");
     
      UglifyJS uglifyjs = new UglifyJS();
     
      ArrayList<String> options = createUglifyOptions();

      for (File source : sources) {
       
        options.add(source.getAbsolutePath());

        String[] args = new String[options.size()];

        args = options.toArray(args);

        if (this.outputFile == null) {
         
          uglifyjs.exec(args);
         
        } else {

          String result = uglifyjs.uglify(args);
          if (result != null) {
            writeResult(result);
          } else {
            throw new BuildException("uglify failed.");
          }
View Full Code Here

TOP

Related Classes of uglify.UglifyJS

Copyright © 2018 www.massapicom. 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.