Package org.docstr.gradle.plugins.gwt
Class AbstractGwtActionTask
java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
org.docstr.gradle.plugins.gwt.AbstractGwtActionTask
- All Implemented Interfaces:
Comparable<org.gradle.api.Task>
,org.gradle.api.internal.DynamicObjectAware
,org.gradle.api.internal.TaskInternal
,org.gradle.api.plugins.ExtensionAware
,org.gradle.api.Task
,org.gradle.util.Configurable<org.gradle.api.Task>
- Direct Known Subclasses:
AbstractGwtTask
,GwtSuperDev
public abstract class AbstractGwtActionTask
extends org.gradle.api.DefaultTask
Base class for all GWT related tasks.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.gradle.api.Task
org.gradle.api.Task.Namer
-
Field Summary
Fields inherited from interface org.gradle.api.Task
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
addArgs()
Called directly before executing this task.protected void
argIfEnabled
(Boolean condition, String arg) protected void
protected void
protected void
protected void
dirArgIfSet
(String arg, File dir) void
exec()
org.gradle.api.file.FileCollection
org.gradle.api.file.FileCollection
getSrc()
boolean
isDebug()
protected boolean
If true the task instance is treated as being a development related task.protected void
protected boolean
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
(List<String> extraJvmArgs) void
setGwtVersion
(String gwtVersion) void
setIncremental
(Boolean incremental) void
setJsInteropExports
(GwtJsInteropExportsOptions jsInteropExports) void
setJsInteropMode
(JsInteropMode jsInteropMode) void
setLogLevel
(LogLevel logLevel) Sets theLogLevel
for this task.void
setMaxHeapSize
(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
(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
(org.gradle.api.file.FileCollection src) Sets the source directories used by this task instance.Methods inherited from class org.gradle.api.DefaultTask
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
Methods inherited from class org.gradle.api.internal.AbstractTask
appendParallelSafeAction, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getOnlyIf, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, prependParallelSafeAction, setImpliesSubProjects
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.gradle.api.Task
getConvention
-
Constructor Details
-
AbstractGwtActionTask
-
-
Method Details
-
exec
public void exec() -
prependSrcToClasspath
protected boolean prependSrcToClasspath()If true this causes that the src is prepended to the classpath. This is set to false for Super Dev Mode as the source is given to it as extra parameter.- Returns:
- true if src should be prepended to the classpath, false otherwise.
-
getGwtVersion
-
setGwtVersion
-
getModules
-
setModules
Sets the GWT modules (fully qualified names) to be used by this task.- Parameters:
modules
- GWT modules to be set for this task
-
args
-
jvmArgs
-
argIfEnabled
-
argOnOff
-
dirArgIfSet
-
argIfSet
-
addArgs
protected abstract void addArgs()Called directly before executing this task. Subclasses are expected to add all args/javaArgs needed for the execution. -
isDevTask
@Input protected boolean isDevTask()If true the task instance is treated as being a development related task. Development related tasks will have the devModules set by default.- Returns:
- true if the task is development related, false otherwise.
-
getSrc
@InputFiles @PathSensitive(RELATIVE) public org.gradle.api.file.FileCollection getSrc() -
setSrc
public void setSrc(org.gradle.api.file.FileCollection src) Sets the source directories used by this task instance. These source directories are used by GWT to read java source files from.- Parameters:
src
- source directories to set
-
getClasspath
@Classpath public org.gradle.api.file.FileCollection getClasspath() -
setClasspath
public void setClasspath(org.gradle.api.file.FileCollection classpath) Sets the classpath for the spawned java process.- Parameters:
classpath
- the classpath to set
-
getMinHeapSize
-
setMinHeapSize
Sets the minimum heap size for the spawned java process.- Parameters:
minHeapSize
- the minimum heap size to set
-
getMaxHeapSize
-
setMaxHeapSize
Sets the maximum heap size for the spawned java process.- Parameters:
maxHeapSize
- the maximum heap size to set
-
getExtraJvmArgs
-
setExtraJvmArgs
-
isDebug
@Input public boolean isDebug() -
setDebug
public void setDebug(boolean debug) If set to true this enables debugging for the spawned java process.- Parameters:
debug
- true to enable debugging, false otherwise.
-
getLogLevel
-
setLogLevel
Sets theLogLevel
for this task.- Parameters:
logLevel
- the log level to set
-
getSourceLevel
-
setSourceLevel
-
getIncremental
-
setIncremental
-
getJsInteropMode
-
setJsInteropMode
-
getJsInteropExports
-
setJsInteropExports
-
getMethodNameDisplayMode
-
setMethodNameDisplayMode
If set, this causes the "-XmethodNameDisplayMode" (added in GWT 2.7/2.8) parameter to be added.- Parameters:
methodNameDisplayMode
- The method name display mode specified.
-