
public.javadoc.org.spincast.plugins.jsclosurecompiler.SpincastJsClosureCompilerManager.html Maven / Gradle / Ivy
Show all versions of spincast-website Show documentation
SpincastJsClosureCompilerManager (org.spincast:spincast-framework 1.14.0 API)
org.spincast.plugins.jsclosurecompiler
Interface SpincastJsClosureCompilerManager
-
- All Known Implementing Classes:
- SpincastJsClosureCompilerManagerDefault
public interface SpincastJsClosureCompilerManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods
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.
-
-
Method Detail
-
compile
String compile(String jsContent,
String... args)
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
String compile(String jsContent,
List<String> args)
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
String compile(File jsFile,
String... args)
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
String compile(File jsFile,
List<String> args)
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
String compile(List<File> jsFiles,
String... args)
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
String compile(List<File> jsFiles,
List<String> args)
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
String compileCustom(String... args)
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
String compileCustom(List<String> args)
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.
Copyright © 2019. All rights reserved.