Class SpincastJsClosureCompilerManagerDefault
- All Implemented Interfaces:
SpincastJsClosureCompilerManager
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSpincastJsClosureCompilerManagerDefault(SpincastConfig spincastConfig, SpincastUtils spincastUtils) -
Method Summary
Modifier and TypeMethodDescriptionCompile/Minify a js file.Compile/Minify a js file.Compile/Minify javascript content, as a String.Compile/Minify javascript content, as a String.Compile/minify multiple .js files at a time and concatenate the result.Compile/minify multiple .js files at a time and concatenate the result.compileCustom(String... args) Compile/Minify js/js files.compileCustom(List<String> args) Compile/Minify js/js files.protected FilecreateJsFile(String jsContent) protected SpincastConfigprotected SpincastUtils
-
Field Details
-
logger
protected static final org.slf4j.Logger logger
-
-
Constructor Details
-
SpincastJsClosureCompilerManagerDefault
@Inject public SpincastJsClosureCompilerManagerDefault(SpincastConfig spincastConfig, SpincastUtils spincastUtils)
-
-
Method Details
-
getSpincastConfig
-
getSpincastUtils
-
createJsFile
-
compile
Description copied from interface:SpincastJsClosureCompilerManagerCompile/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.
- Specified by:
compilein interfaceSpincastJsClosureCompilerManager- Returns:
- the compiled/minified javascript content.
-
compile
Description copied from interface:SpincastJsClosureCompilerManagerCompile/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.
- Specified by:
compilein interfaceSpincastJsClosureCompilerManager- Returns:
- the compiled/minified javascript content.
-
compile
Description copied from interface:SpincastJsClosureCompilerManagerCompile/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.
- Specified by:
compilein interfaceSpincastJsClosureCompilerManager- Returns:
- the compiled/minified javascript content.
-
compile
Description copied from interface:SpincastJsClosureCompilerManagerCompile/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.
- Specified by:
compilein interfaceSpincastJsClosureCompilerManager- Returns:
- the compiled/minified javascript content.
-
compile
Description copied from interface:SpincastJsClosureCompilerManagerCompile/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.
- Specified by:
compilein interfaceSpincastJsClosureCompilerManager- Returns:
- the concatenated and compiled javascript content.
-
compile
Description copied from interface:SpincastJsClosureCompilerManagerCompile/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.
- Specified by:
compilein interfaceSpincastJsClosureCompilerManager- Returns:
- the concatenated and compiled javascript content.
-
compileCustom
Description copied from interface:SpincastJsClosureCompilerManagerCompile/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.
- Specified by:
compileCustomin interfaceSpincastJsClosureCompilerManager- Returns:
- the compiled/minified javascript content.
-
compileCustom
Description copied from interface:SpincastJsClosureCompilerManagerCompile/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.
- Specified by:
compileCustomin interfaceSpincastJsClosureCompilerManager- Returns:
- the compiled/minified javascript content.
-