public class SpincastJsClosureCompilerManagerDefault extends Object implements SpincastJsClosureCompilerManager
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
SpincastJsClosureCompilerManagerDefault(SpincastConfig spincastConfig,
SpincastUtils spincastUtils) |
| Modifier and Type | Method and Description |
|---|---|
String |
compile(File jsFile,
List<String> args)
Compile/Minify a js file.
|
String |
compile(File jsFile,
String... args)
Compile/Minify a js file.
|
String |
compile(List<File> jsFiles,
List<String> args)
Compile/minify multiple .js files
at a time and concatenate the result.
|
String |
compile(List<File> jsFiles,
String... args)
Compile/minify multiple .js files
at a time and concatenate the result.
|
String |
compile(String jsContent,
List<String> args)
Compile/Minify javascript content, as a String.
|
String |
compile(String jsContent,
String... args)
Compile/Minify javascript content, as a String.
|
String |
compileCustom(List<String> args)
Compile/Minify js/js files.
|
String |
compileCustom(String... args)
Compile/Minify js/js files.
|
protected File |
createJsFile(String jsContent) |
protected SpincastConfig |
getSpincastConfig() |
protected SpincastUtils |
getSpincastUtils() |
@Inject public SpincastJsClosureCompilerManagerDefault(SpincastConfig spincastConfig, SpincastUtils spincastUtils)
protected SpincastConfig getSpincastConfig()
protected SpincastUtils getSpincastUtils()
public String compile(String jsContent, String... args)
SpincastJsClosureCompilerManagerRead the options documentation.
Note that you cannot use the "--js_output_file" option. The method will take care of it by itself.
compile in interface SpincastJsClosureCompilerManagerpublic String compile(String jsContent, List<String> args)
SpincastJsClosureCompilerManagerRead the options documentation.
Note that you cannot use the "--js_output_file" option. The method will take care of it by itself.
compile in interface SpincastJsClosureCompilerManagerpublic String compile(File jsFile, String... args)
SpincastJsClosureCompilerManagerRead the options documentation.
Note that you cannot use the "--js_output_file" option. The method will take care of it by itself.
compile in interface SpincastJsClosureCompilerManagerpublic String compile(File jsFile, List<String> args)
SpincastJsClosureCompilerManagerRead the options documentation.
Note that you cannot use the "--js_output_file" option. The method will take care of it by itself.
compile in interface SpincastJsClosureCompilerManagerpublic String compile(List<File> jsFiles, String... args)
SpincastJsClosureCompilerManagerRead the options documentation.
Note that you cannot use the "--js_output_file" option. The method will take care of it by itself.
compile in interface SpincastJsClosureCompilerManagerpublic String compile(List<File> jsFiles, List<String> args)
SpincastJsClosureCompilerManagerRead the options documentation.
Note that you cannot use the "--js_output_file" option. The method will take care of it by itself.
compile in interface SpincastJsClosureCompilerManagerpublic String compileCustom(String... args)
SpincastJsClosureCompilerManager
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.
compileCustom in interface SpincastJsClosureCompilerManagerpublic String compileCustom(List<String> args)
SpincastJsClosureCompilerManager
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.
compileCustom in interface SpincastJsClosureCompilerManagerCopyright © 2019. All rights reserved.