public final class CompileTask
extends org.apache.tools.ant.Task
Constructor and Description |
---|
CompileTask() |
Modifier and Type | Method and Description |
---|---|
void |
addEntryPoint(org.apache.tools.ant.types.Parameter entrypoint)
Adds a
|
void |
addExterns(org.apache.tools.ant.types.FileList list)
Sets the externs file.
|
void |
addPath(org.apache.tools.ant.types.Path list)
Adds a
|
void |
addSources(org.apache.tools.ant.types.FileList list)
Sets the source files.
|
void |
addWarning(Warning warning)
Adds a
|
org.apache.tools.ant.types.Parameter |
createDefine()
Creates a new
<define/> nested element. |
org.apache.tools.ant.types.Parameter |
createEntryPoint()
Creates a new
<entrypoint/> nested element. |
void |
execute() |
void |
setCompilationLevel(String value)
Set the compilation level.
|
void |
setCustomExternsOnly(boolean value)
Use only custom externs.
|
void |
setDebug(boolean value)
Enable debugging options.
|
void |
setEncoding(String encoding)
Set input file encoding
|
void |
setForceRecompile(boolean forceRecompile)
Set force recompile option
|
void |
setGenerateExports(boolean generateExports)
Set generateExports option
|
void |
setLanguageIn(String value)
Set the language to which input sources conform.
|
void |
setManageDependencies(boolean value) |
void |
setOutput(File value)
Set output file.
|
void |
setOutputEncoding(String outputEncoding)
Set output file encoding
|
void |
setOutputWrapper(String value)
Set output wrapper.
|
void |
setOutputWrapperFile(File value)
Set output wrapper file.
|
void |
setPrettyPrint(boolean pretty)
Set pretty print formatting option
|
void |
setPrintInputDelimiter(boolean print)
Set print input delimiter formatting option
|
void |
setReplaceProperties(boolean value)
Whether to replace
@define lines with properties |
void |
setReplacePropertiesPrefix(String value)
Set the replacement property prefix.
|
void |
setSourceMapFormat(String format) |
void |
setSourceMapLocationMapping(String mapping) |
void |
setSourceMapOutputFile(File sourceMapOutputFile) |
void |
setWarning(String value)
Set the warning level.
|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
public void setLanguageIn(String value)
value
- The name of the language.
(ECMASCRIPT3, ECMASCRIPT5, ECMASCRIPT5_STRICT).public void setWarning(String value)
value
- The warning level by string name. (default, quiet, verbose).public void setDebug(boolean value)
value
- True if debug mode is enabled.public void setCompilationLevel(String value)
value
- The optimization level by string name.
(whitespace, simple, advanced).public void setManageDependencies(boolean value)
public void setCustomExternsOnly(boolean value)
public void setOutput(File value)
public void setOutputWrapper(String value)
public void setOutputWrapperFile(File value)
public void setReplacePropertiesPrefix(String value)
public void setReplaceProperties(boolean value)
@define
lines with propertiespublic void setEncoding(String encoding)
public void setOutputEncoding(String outputEncoding)
public void setPrettyPrint(boolean pretty)
public void setPrintInputDelimiter(boolean print)
public void setForceRecompile(boolean forceRecompile)
public void setGenerateExports(boolean generateExports)
public void addExterns(org.apache.tools.ant.types.FileList list)
public void addWarning(Warning warning)
public void addEntryPoint(org.apache.tools.ant.types.Parameter entrypoint)
public void addSources(org.apache.tools.ant.types.FileList list)
public void addPath(org.apache.tools.ant.types.Path list)
public void execute()
execute
in class org.apache.tools.ant.Task
public org.apache.tools.ant.types.Parameter createDefine()
<define/>
nested element. Supports name and value
attributes.public org.apache.tools.ant.types.Parameter createEntryPoint()
<entrypoint/>
nested element. Supports name
attribute.public void setSourceMapFormat(String format)
public void setSourceMapOutputFile(File sourceMapOutputFile)
public void setSourceMapLocationMapping(String mapping)
Copyright © 2009-2015 Google. All Rights Reserved.