Package org.docstr.gradle.plugins.gwt
Class GwtSuperDev
java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
org.docstr.gradle.plugins.gwt.AbstractGwtActionTask
org.docstr.gradle.plugins.gwt.GwtSuperDev
- All Implemented Interfaces:
Comparable<org.gradle.api.Task>
,GwtSuperDevOptions
,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>
Task to run the GWT Super Dev Mode.
-
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 void
addArgs()
Called directly before executing this task.protected void
configure
(GwtSuperDevOptions options) getPort()
protected boolean
If true this causes that the src is prepended to the classpath.void
setAllowMissingSrc
(Boolean allowMissingSrc) void
setBindAddress
(String bindAddress) Sets the "-bindAddress" option that defines to which network ip the socket should be bound.void
setClosureFormattedOutput
(Boolean closureFormattedOutput) If set to true, this adds the parameter -XclosureFormattedOutput.void
setCompileTest
(Boolean compileTest) void
setCompileTestRecompiles
(Integer compileTestRecompiles) void
setFailOnError
(Boolean failOnError) void
setLauncherDir
(File launcherDir) void
setNoPrecompile
(Boolean noPrecompile) Sets the "-noprecompile" flag that causes the Super Dev Mode to not compile the modules on startup but only at access.void
Sets the "-port" option that defines to which port the socket should be bound.void
setUseClasspathForSrc
(Boolean useClasspathForSrc) If set to true, this causes the src to be prepended to the classpath instead of using -src parameters.void
setWorkDir
(File workDir) Sets the "-workDir" option that specifies the directory where the Super Dev Mode outputs its generated files.Methods inherited from class org.docstr.gradle.plugins.gwt.AbstractGwtActionTask
argIfEnabled, argIfSet, argOnOff, args, dirArgIfSet, exec, getClasspath, getExtraJvmArgs, getGwtVersion, getIncremental, getJsInteropExports, getJsInteropMode, getLogLevel, getMaxHeapSize, getMethodNameDisplayMode, getMinHeapSize, getModules, getSourceLevel, getSrc, isDebug, isDevTask, jvmArgs, setClasspath, setDebug, setExtraJvmArgs, setGwtVersion, setIncremental, setJsInteropExports, setJsInteropMode, setLogLevel, setMaxHeapSize, setMethodNameDisplayMode, setMinHeapSize, setModules, setSourceLevel, setSrc
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
-
GwtSuperDev
public GwtSuperDev()
-
-
Method Details
-
addArgs
protected void addArgs()Description copied from class:AbstractGwtActionTask
Called directly before executing this task. Subclasses are expected to add all args/javaArgs needed for the execution.- Specified by:
addArgs
in classAbstractGwtActionTask
-
configure
-
prependSrcToClasspath
protected boolean prependSrcToClasspath()Description copied from class:AbstractGwtActionTask
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.- Overrides:
prependSrcToClasspath
in classAbstractGwtActionTask
- Returns:
- true if src should be prepended to the classpath, false otherwise.
-
getWorkDir
- Specified by:
getWorkDir
in interfaceGwtSuperDevOptions
- Returns:
- the workDir
- See Also:
-
setWorkDir
Sets the "-workDir" option that specifies the directory where the Super Dev Mode outputs its generated files.- Specified by:
setWorkDir
in interfaceGwtSuperDevOptions
- Parameters:
workDir
- the workDir to set
-
getBindAddress
- Specified by:
getBindAddress
in interfaceGwtSuperDevOptions
-
setBindAddress
Sets the "-bindAddress" option that defines to which network ip the socket should be bound. This is relevant if the Super Dev Mode should be reachable from a remote host.- Specified by:
setBindAddress
in interfaceGwtSuperDevOptions
- Parameters:
bindAddress
- the bindAddress to set
-
getPort
- Specified by:
getPort
in interfaceGwtSuperDevOptions
-
setPort
Sets the "-port" option that defines to which port the socket should be bound.- Specified by:
setPort
in interfaceGwtSuperDevOptions
- Parameters:
port
- the port to set. Valid range is [1; 65535].
-
getNoPrecompile
- Specified by:
getNoPrecompile
in interfaceGwtSuperDevOptions
-
setNoPrecompile
Sets the "-noprecompile" flag that causes the Super Dev Mode to not compile the modules on startup but only at access.- Specified by:
setNoPrecompile
in interfaceGwtSuperDevOptions
- Parameters:
noPrecompile
- true if the noPrecompile flag should be set, false otherwise
-
setUseClasspathForSrc
If set to true, this causes the src to be prepended to the classpath instead of using -src parameters. This is necessary due to a bug in GWT 2.5/2.6.- Specified by:
setUseClasspathForSrc
in interfaceGwtSuperDevOptions
- Parameters:
useClasspathForSrc
- true to add the src to the classpath, false to use -src parameters- See Also:
-
getUseClasspathForSrc
- Specified by:
getUseClasspathForSrc
in interfaceGwtSuperDevOptions
-
setLauncherDir
- Specified by:
setLauncherDir
in interfaceGwtSuperDevOptions
-
getLauncherDir
- Specified by:
getLauncherDir
in interfaceGwtSuperDevOptions
-
setCompileTestRecompiles
- Specified by:
setCompileTestRecompiles
in interfaceGwtSuperDevOptions
-
getCompileTestRecompiles
- Specified by:
getCompileTestRecompiles
in interfaceGwtSuperDevOptions
-
setCompileTest
- Specified by:
setCompileTest
in interfaceGwtSuperDevOptions
-
getCompileTest
- Specified by:
getCompileTest
in interfaceGwtSuperDevOptions
-
setFailOnError
- Specified by:
setFailOnError
in interfaceGwtSuperDevOptions
-
getFailOnError
- Specified by:
getFailOnError
in interfaceGwtSuperDevOptions
-
setAllowMissingSrc
- Specified by:
setAllowMissingSrc
in interfaceGwtSuperDevOptions
-
getAllowMissingSrc
- Specified by:
getAllowMissingSrc
in interfaceGwtSuperDevOptions
-
getClosureFormattedOutput
- Specified by:
getClosureFormattedOutput
in interfaceGwtSuperDevOptions
-
setClosureFormattedOutput
If set to true, this adds the parameter -XclosureFormattedOutput. If set to false, this adds the parameter -XnoclosureFormattedOutput. Added in GWT 2.8.- Specified by:
setClosureFormattedOutput
in interfaceGwtSuperDevOptions
- Parameters:
closureFormattedOutput
- The closure formatted output.
-