
public.javadoc.org.spincast.plugins.jsclosurecompiler.SpincastJsClosureCompilerManager.html Maven / Gradle / Ivy
SpincastJsClosureCompilerManager (org.spincast:spincast-framework 2.2.0 API)
Interface SpincastJsClosureCompilerManager
- All Known Implementing Classes:
SpincastJsClosureCompilerManagerDefault
public interface SpincastJsClosureCompilerManager
-
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.
-
Method Details
-
compile
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
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
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
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
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
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
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
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.