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 |
args(Object... args) |
protected void |
dirArgIfSet(String arg,
File dir) |
void |
exec() |
FileCollection |
getClasspath() |
String |
getMaxHeapSize() |
String |
getMinHeapSize() |
List<String> |
getModules() |
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 |
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 |
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, getStateInternal, 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.