public abstract class AbstractGwtActionTask extends DefaultTask
Task.Namer
TASK_ACTION, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
Constructor and Description |
---|
AbstractGwtActionTask(String main) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
addArgs()
Called directly before executing this task.
|
protected void |
argIfEnabled(Boolean condition,
String arg) |
protected void |
argIfSet(String arg,
Object value) |
protected void |
argOnOff(Boolean condition,
String onArg,
String offArg) |
protected void |
args(Object... args) |
protected void |
dirArgIfSet(String arg,
File dir) |
void |
exec() |
FileCollection |
getClasspath() |
Boolean |
getIncremental() |
JsInteropMode |
getJsInteropMode() |
LogLevel |
getLogLevel() |
String |
getMaxHeapSize() |
String |
getMinHeapSize() |
List<String> |
getModules() |
String |
getSourceLevel() |
FileCollection |
getSrc() |
boolean |
isDebug() |
protected boolean |
isDevTask()
If true the task instance is treated as being a development related task.
|
protected void |
jvmArgs(Object... args) |
protected boolean |
prependSrcToClasspath()
If true this causes that the src is prepended to the classpath.
|
void |
setClasspath(FileCollection classpath)
Sets the classpath for the spawned java process.
|
void |
setDebug(boolean debug)
If set to true this enables debugging for the spawned java process.
|
void |
setIncremental(Boolean incremental) |
void |
setJsInteropMode(JsInteropMode jsInteropMode) |
void |
setLogLevel(LogLevel logLevel)
Sets the
LogLevel for this task. |
void |
setMaxHeapSize(String maxHeapSize)
Sets the maximum heap size for the spawned java process.
|
void |
setMinHeapSize(String minHeapSize)
Sets the minimum heap size for the spawned java process.
|
void |
setModules(List<String> modules)
Sets the GWT modules (fully qualified names) to be used by this task.
|
void |
setSourceLevel(String sourceLevel) |
void |
setSrc(FileCollection src)
Sets the source directories used by this task instance.
|
addValidator, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doLast, doLast, execute, executeWithoutThrowingTaskFailure, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDidWork, getEnabled, getExecuter, getExtensions, getFinalizedBy, getGroup, getInputs, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTemporaryDir, getTemporaryDirFactory, getValidators, hasProperty, injectIntoNewInstance, isEnabled, leftShift, mustRunAfter, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setExecuter, setFinalizedBy, setGroup, setMustRunAfter, setName, setOnlyIf, setOnlyIf, setProject, setProperty, setShouldRunAfter, shouldRunAfter, toString
public AbstractGwtActionTask(String main)
public void exec()
protected boolean prependSrcToClasspath()
public void setModules(List<String> modules)
modules
- GWT modules to be set for this taskprotected void args(Object... args)
protected void jvmArgs(Object... args)
protected abstract void addArgs()
protected boolean isDevTask()
@InputFiles public FileCollection getSrc()
public void setSrc(FileCollection src)
src
- source directories to set@Input public FileCollection getClasspath()
public void setClasspath(FileCollection classpath)
classpath
- the classpath to setpublic String getMinHeapSize()
public void setMinHeapSize(String minHeapSize)
minHeapSize
- the minimum heap size to setpublic String getMaxHeapSize()
public void setMaxHeapSize(String maxHeapSize)
maxHeapSize
- the maximum heap size to setpublic boolean isDebug()
public void setDebug(boolean debug)
debug
- true to enable debugging, false otherwise.public LogLevel getLogLevel()
public void setLogLevel(LogLevel logLevel)
LogLevel
for this task.logLevel
- the log level to setpublic String getSourceLevel()
public void setSourceLevel(String sourceLevel)
public Boolean getIncremental()
public void setIncremental(Boolean incremental)
public JsInteropMode getJsInteropMode()
public void setJsInteropMode(JsInteropMode jsInteropMode)