public abstract class AbstractGwtActionTask
extends org.gradle.api.DefaultTask
Constructor and Description |
---|
AbstractGwtActionTask(java.lang.String main) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
addArgs()
Called directly before executing this task.
|
protected void |
argIfEnabled(java.lang.Boolean condition,
java.lang.String arg) |
protected void |
argIfSet(java.lang.String arg,
java.lang.Object value) |
protected void |
argOnOff(java.lang.Boolean condition,
java.lang.String onArg,
java.lang.String offArg) |
protected void |
args(java.lang.Object... args) |
protected void |
dirArgIfSet(java.lang.String arg,
java.io.File dir) |
void |
exec() |
org.gradle.api.file.FileCollection |
getClasspath() |
java.util.List<java.lang.String> |
getExtraJvmArgs() |
java.lang.String |
getGwtVersion() |
java.lang.Boolean |
getIncremental() |
GwtJsInteropExportsOptions |
getJsInteropExports() |
JsInteropMode |
getJsInteropMode() |
LogLevel |
getLogLevel() |
java.lang.String |
getMaxHeapSize() |
MethodNameDisplayMode |
getMethodNameDisplayMode() |
java.lang.String |
getMinHeapSize() |
java.util.List<java.lang.String> |
getModules() |
java.lang.String |
getSourceLevel() |
org.gradle.api.file.FileCollection |
getSrc() |
boolean |
isDebug() |
protected boolean |
isDevTask()
If true the task instance is treated as being a development related
task.
|
protected void |
jvmArgs(java.lang.Object... args) |
protected boolean |
prependSrcToClasspath()
If true this causes that the src is prepended to the classpath.
|
void |
setClasspath(org.gradle.api.file.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 |
setExtraJvmArgs(java.util.List<java.lang.String> extraJvmArgs) |
void |
setGwtVersion(java.lang.String gwtVersion) |
void |
setIncremental(java.lang.Boolean incremental) |
void |
setJsInteropExports(GwtJsInteropExportsOptions jsInteropExports) |
void |
setJsInteropMode(JsInteropMode jsInteropMode) |
void |
setLogLevel(LogLevel logLevel)
Sets the
LogLevel for this task. |
void |
setMaxHeapSize(java.lang.String maxHeapSize)
Sets the maximum heap size for the spawned java process.
|
void |
setMethodNameDisplayMode(MethodNameDisplayMode methodNameDisplayMode)
If set, this causes the "-XmethodNameDisplayMode" (added in GWT 2.7/2.8)
parameter to be added.
|
void |
setMinHeapSize(java.lang.String minHeapSize)
Sets the minimum heap size for the spawned java process.
|
void |
setModules(java.util.List<java.lang.String> modules)
Sets the GWT modules (fully qualified names) to be used by this task.
|
void |
setSourceLevel(java.lang.String sourceLevel) |
void |
setSrc(org.gradle.api.file.FileCollection src)
Sets the source directories used by this task instance.
|
compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService
appendParallelSafeAction, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getOnlyIf, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, prependParallelSafeAction, setImpliesSubProjects
public void exec()
protected boolean prependSrcToClasspath()
@Input public java.lang.String getGwtVersion()
public void setGwtVersion(java.lang.String gwtVersion)
@Input public java.util.List<java.lang.String> getModules()
public void setModules(java.util.List<java.lang.String> modules)
modules
- GWT modules to be set for this taskprotected void args(java.lang.Object... args)
protected void jvmArgs(java.lang.Object... args)
protected void argIfEnabled(java.lang.Boolean condition, java.lang.String arg)
protected void argOnOff(java.lang.Boolean condition, java.lang.String onArg, java.lang.String offArg)
protected void dirArgIfSet(java.lang.String arg, java.io.File dir)
protected void argIfSet(java.lang.String arg, java.lang.Object value)
protected abstract void addArgs()
@Input protected boolean isDevTask()
@InputFiles @PathSensitive(value=ABSOLUTE) public org.gradle.api.file.FileCollection getSrc()
public void setSrc(org.gradle.api.file.FileCollection src)
src
- source directories to set@Classpath public org.gradle.api.file.FileCollection getClasspath()
public void setClasspath(org.gradle.api.file.FileCollection classpath)
classpath
- the classpath to set@Input public java.lang.String getMinHeapSize()
public void setMinHeapSize(java.lang.String minHeapSize)
minHeapSize
- the minimum heap size to set@Input public java.lang.String getMaxHeapSize()
public void setMaxHeapSize(java.lang.String maxHeapSize)
maxHeapSize
- the maximum heap size to set@Input public java.util.List<java.lang.String> getExtraJvmArgs()
public void setExtraJvmArgs(java.util.List<java.lang.String> extraJvmArgs)
@Input public boolean isDebug()
public void setDebug(boolean debug)
debug
- true to enable debugging, false otherwise.@Optional @Input public LogLevel getLogLevel()
public void setLogLevel(LogLevel logLevel)
LogLevel
for this task.logLevel
- the log level to set@Optional @Input public java.lang.String getSourceLevel()
public void setSourceLevel(java.lang.String sourceLevel)
@Optional @Input public java.lang.Boolean getIncremental()
public void setIncremental(java.lang.Boolean incremental)
@Optional @Input public JsInteropMode getJsInteropMode()
public void setJsInteropMode(JsInteropMode jsInteropMode)
@Input public GwtJsInteropExportsOptions getJsInteropExports()
public void setJsInteropExports(GwtJsInteropExportsOptions jsInteropExports)
@Optional @Input public MethodNameDisplayMode getMethodNameDisplayMode()
public void setMethodNameDisplayMode(MethodNameDisplayMode methodNameDisplayMode)
methodNameDisplayMode
- The method name display mode specified.