Interface SpincastJsClosureCompilerManager

All Known Implementing Classes:
SpincastJsClosureCompilerManagerDefault

public interface SpincastJsClosureCompilerManager
  • Method Details

    • compile

      String compile(String jsContent, String... args)
      Compile/Minify javascript content, as a String.

      Read the options documentation.

      Note that you cannot use the "--js_output_file" option. The method will take care of it by itself.

      Returns:
      the compiled/minified javascript content.
    • compile

      String compile(String jsContent, List<String> args)
      Compile/Minify javascript content, as a String.

      Read the options documentation.

      Note that you cannot use the "--js_output_file" option. The method will take care of it by itself.

      Returns:
      the compiled/minified javascript content.
    • compile

      String compile(File jsFile, String... args)
      Compile/Minify a js file.

      Read the options documentation.

      Note that you cannot use the "--js_output_file" option. The method will take care of it by itself.

      Returns:
      the compiled/minified javascript content.
    • compile

      String compile(File jsFile, List<String> args)
      Compile/Minify a js file.

      Read the options documentation.

      Note that you cannot use the "--js_output_file" option. The method will take care of it by itself.

      Returns:
      the compiled/minified javascript content.
    • compile

      String compile(List<File> jsFiles, String... args)
      Compile/minify multiple .js files at a time and concatenate the result.

      Read the options documentation.

      Note that you cannot use the "--js_output_file" option. The method will take care of it by itself.

      Returns:
      the concatenated and compiled javascript content.
    • compile

      String compile(List<File> jsFiles, List<String> args)
      Compile/minify multiple .js files at a time and concatenate the result.

      Read the options documentation.

      Note that you cannot use the "--js_output_file" option. The method will take care of it by itself.

      Returns:
      the concatenated and compiled javascript content.
    • compileCustom

      String compileCustom(String... args)
      Compile/Minify js/js files. Using this method, you are responsive to specify all the arguments passed to the closure compile .jar file (inlcuding the files to target). This can be useful if you want to compile files specified using globs patterns instead of having to specify them one by one.

      In other words, the executed command will be: java -jar closure-compiler.jar [ARGS] and you have to specify all the "[ARGS]".

      Read the options documentation.

      Note that you cannot use the "--js_output_file" option. The method will take care of it by itself.

      Returns:
      the compiled/minified javascript content.
    • compileCustom

      String compileCustom(List<String> args)
      Compile/Minify js/js files. Using this method, you are responsive to specify all the arguments passed to the closure compile .jar file (inlcuding the files to target). This can be useful if you want to compile files specified using globs patterns instead of having to specify them one by one.

      In other words, the executed command will be: java -jar closure-compiler.jar [ARGS] and you have to specify all the "[ARGS]".

      Read the options documentation.

      Note that you cannot use the "--js_output_file" option. The method will take care of it by itself.

      Returns:
      the compiled/minified javascript content.