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,
SpincastProcessUtils spincastProcessUtils,
SpincastUtils spincastUtils,
SpincastJsClosureCompilerConfig spincastJsClosureCompilerConfig) |
| 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 String |
getClosureCompilerJarFilePath() |
protected int |
getCompileCommandMaxNbrMinutes() |
protected SpincastConfig |
getSpincastConfig() |
protected SpincastJsClosureCompilerConfig |
getSpincastJsClosureCompilerConfig() |
protected SpincastProcessUtils |
getSpincastProcessUtils() |
protected SpincastUtils |
getSpincastUtils() |
protected void |
init() |
@Inject public SpincastJsClosureCompilerManagerDefault(SpincastConfig spincastConfig, SpincastProcessUtils spincastProcessUtils, SpincastUtils spincastUtils, SpincastJsClosureCompilerConfig spincastJsClosureCompilerConfig)
@Inject protected void init()
protected SpincastConfig getSpincastConfig()
protected SpincastProcessUtils getSpincastProcessUtils()
protected SpincastUtils getSpincastUtils()
protected SpincastJsClosureCompilerConfig getSpincastJsClosureCompilerConfig()
protected String getClosureCompilerJarFilePath()
protected int getCompileCommandMaxNbrMinutes()
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.