public class JSClosureCompilerWrapper extends Object
| Modifier and Type | Field and Description |
|---|---|
String |
targetFilePath |
| Constructor and Description |
|---|
JSClosureCompilerWrapper(List<String> args) |
| Modifier and Type | Method and Description |
|---|---|
void |
addJSExternsFile(SourceFile file) |
void |
addJSExternsFile(String fileName) |
void |
addJSSourceFile(SourceFile file) |
void |
addJSSourceFile(String fileName) |
boolean |
compile() |
void |
setOptions(String sourceMapPath,
boolean useStrictPublishing,
boolean manageDependencies,
String projectName) |
void |
setPropertyNamesToKeep(Set<String> propertyNames) |
void |
setSourceMap(boolean enabled) |
void |
setVerbose(boolean enabled) |
public String targetFilePath
public JSClosureCompilerWrapper(List<String> args) throws IOException
IOExceptionpublic void addJSExternsFile(String fileName)
public void addJSExternsFile(SourceFile file)
public void addJSSourceFile(String fileName)
public void addJSSourceFile(SourceFile file)
public void setSourceMap(boolean enabled)
public void setVerbose(boolean enabled)
public boolean compile()
Copyright © 2020 The Apache Software Foundation. All rights reserved.