
public.javadoc.org.spincast.plugins.jsclosurecompiler.SpincastJsClosureCompilerManagerDefault.html Maven / Gradle / Ivy
Show all versions of spincast-website Show documentation
SpincastJsClosureCompilerManagerDefault (org.spincast:spincast-framework 2.1.1 API)
Class SpincastJsClosureCompilerManagerDefault
java.lang.Object
org.spincast.plugins.jsclosurecompiler.SpincastJsClosureCompilerManagerDefault
- All Implemented Interfaces:
SpincastJsClosureCompilerManager
public class SpincastJsClosureCompilerManagerDefault
extends Object
implements SpincastJsClosureCompilerManager
-
Field Summary
Fields
-
Constructor Summary
Constructors
Constructor
Description
SpincastJsClosureCompilerManagerDefault(SpincastConfig spincastConfig,
SpincastUtils spincastUtils)
-
Method Summary
Modifier and Type
Method
Description
Compile/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 File
createJsFile(String jsContent)
protected SpincastConfig
protected 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: SpincastJsClosureCompilerManager
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.
- Specified by:
compile
in interface SpincastJsClosureCompilerManager
- Returns:
- the compiled/minified javascript
content.
-
compile
Description copied from interface: SpincastJsClosureCompilerManager
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.
- Specified by:
compile
in interface SpincastJsClosureCompilerManager
- Returns:
- the compiled/minified javascript
content.
-
compile
Description copied from interface: SpincastJsClosureCompilerManager
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.
- Specified by:
compile
in interface SpincastJsClosureCompilerManager
- Returns:
- the compiled/minified javascript
content.
-
compile
Description copied from interface: SpincastJsClosureCompilerManager
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.
- Specified by:
compile
in interface SpincastJsClosureCompilerManager
- Returns:
- the compiled/minified javascript
content.
-
compile
Description copied from interface: SpincastJsClosureCompilerManager
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.
- Specified by:
compile
in interface SpincastJsClosureCompilerManager
- Returns:
- the concatenated and compiled javascript
content.
-
compile
Description copied from interface: SpincastJsClosureCompilerManager
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.
- Specified by:
compile
in interface SpincastJsClosureCompilerManager
- Returns:
- the concatenated and compiled javascript
content.
-
compileCustom
Description copied from interface: SpincastJsClosureCompilerManager
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.
- Specified by:
compileCustom
in interface SpincastJsClosureCompilerManager
- Returns:
- the compiled/minified javascript
content.
-
compileCustom
Description copied from interface: SpincastJsClosureCompilerManager
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.
- Specified by:
compileCustom
in interface SpincastJsClosureCompilerManager
- Returns:
- the compiled/minified javascript
content.