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:
java.lang.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>
public class GwtSuperDev extends AbstractGwtActionTask implements GwtSuperDevOptions
Task to run the GWT Super Dev Mode.
-
-
Constructor Summary
Constructors Constructor Description GwtSuperDev()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addArgs()
Called directly before executing this task.protected void
configure(GwtSuperDevOptions options)
java.lang.Boolean
getAllowMissingSrc()
java.lang.String
getBindAddress()
java.lang.Boolean
getClosureFormattedOutput()
java.lang.Boolean
getCompileTest()
java.lang.Integer
getCompileTestRecompiles()
java.lang.Boolean
getFailOnError()
java.io.File
getLauncherDir()
java.lang.Boolean
getNoPrecompile()
java.lang.Integer
getPort()
Style
getStyle()
java.lang.Boolean
getUseClasspathForSrc()
java.io.File
getWorkDir()
protected boolean
prependSrcToClasspath()
If true this causes that the src is prepended to the classpath.void
setAllowMissingSrc(java.lang.Boolean allowMissingSrc)
void
setBindAddress(java.lang.String bindAddress)
Sets the "-bindAddress" option that defines to which network ip the socket should be bound.void
setClosureFormattedOutput(java.lang.Boolean closureFormattedOutput)
If set to true, this adds the parameter -XclosureFormattedOutput.void
setCompileTest(java.lang.Boolean compileTest)
void
setCompileTestRecompiles(java.lang.Integer compileTestRecompiles)
void
setFailOnError(java.lang.Boolean failOnError)
void
setLauncherDir(java.io.File launcherDir)
void
setNoPrecompile(java.lang.Boolean noPrecompile)
Sets the "-noprecompile" flag that causes the Super Dev Mode to not compile the modules on startup but only at access.void
setPort(java.lang.Integer port)
Sets the "-port" option that defines to which port the socket should be bound.void
setStyle(Style style)
void
setUseClasspathForSrc(java.lang.Boolean useClasspathForSrc)
If set to true, this causes the src to be prepended to the classpath instead of using -src parameters.void
setWorkDir(java.io.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, isUseToolchain, jvmArgs, setClasspath, setDebug, setExtraJvmArgs, setGwtVersion, setIncremental, setJsInteropExports, setJsInteropMode, setLogLevel, setMaxHeapSize, setMethodNameDisplayMode, setMinHeapSize, setModules, setSourceLevel, setSrc, setUseToolchain
-
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
-
-
-
-
Method Detail
-
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
protected void configure(GwtSuperDevOptions options)
-
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
@Internal public java.io.File getWorkDir()
- Specified by:
getWorkDir
in interfaceGwtSuperDevOptions
- Returns:
- the workDir
- See Also:
GwtSuperDevOptions.setWorkDir(File)
-
setWorkDir
public void setWorkDir(java.io.File workDir)
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
@Optional @Input public java.lang.String getBindAddress()
- Specified by:
getBindAddress
in interfaceGwtSuperDevOptions
-
setBindAddress
public void setBindAddress(java.lang.String bindAddress)
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
@Optional @Input public java.lang.Integer getPort()
- Specified by:
getPort
in interfaceGwtSuperDevOptions
-
setPort
public void setPort(java.lang.Integer port)
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
@Optional @Input public java.lang.Boolean getNoPrecompile()
- Specified by:
getNoPrecompile
in interfaceGwtSuperDevOptions
-
setNoPrecompile
public void setNoPrecompile(java.lang.Boolean noPrecompile)
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
public void setUseClasspathForSrc(java.lang.Boolean useClasspathForSrc)
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:
- https://code.google.com/p/google-web-toolkit/issues/detail?id=7750
-
getUseClasspathForSrc
@Input public java.lang.Boolean getUseClasspathForSrc()
- Specified by:
getUseClasspathForSrc
in interfaceGwtSuperDevOptions
-
setLauncherDir
public void setLauncherDir(java.io.File launcherDir)
- Specified by:
setLauncherDir
in interfaceGwtSuperDevOptions
-
getLauncherDir
@Optional @InputDirectory @PathSensitive(ABSOLUTE) public java.io.File getLauncherDir()
- Specified by:
getLauncherDir
in interfaceGwtSuperDevOptions
-
setCompileTestRecompiles
public void setCompileTestRecompiles(java.lang.Integer compileTestRecompiles)
- Specified by:
setCompileTestRecompiles
in interfaceGwtSuperDevOptions
-
getCompileTestRecompiles
@Optional @Input public java.lang.Integer getCompileTestRecompiles()
- Specified by:
getCompileTestRecompiles
in interfaceGwtSuperDevOptions
-
setCompileTest
public void setCompileTest(java.lang.Boolean compileTest)
- Specified by:
setCompileTest
in interfaceGwtSuperDevOptions
-
getCompileTest
@Optional @Input public java.lang.Boolean getCompileTest()
- Specified by:
getCompileTest
in interfaceGwtSuperDevOptions
-
setFailOnError
public void setFailOnError(java.lang.Boolean failOnError)
- Specified by:
setFailOnError
in interfaceGwtSuperDevOptions
-
getFailOnError
@Optional @Input public java.lang.Boolean getFailOnError()
- Specified by:
getFailOnError
in interfaceGwtSuperDevOptions
-
setAllowMissingSrc
public void setAllowMissingSrc(java.lang.Boolean allowMissingSrc)
- Specified by:
setAllowMissingSrc
in interfaceGwtSuperDevOptions
-
getAllowMissingSrc
@Optional @Input public java.lang.Boolean getAllowMissingSrc()
- Specified by:
getAllowMissingSrc
in interfaceGwtSuperDevOptions
-
getClosureFormattedOutput
@Optional @Input public java.lang.Boolean getClosureFormattedOutput()
- Specified by:
getClosureFormattedOutput
in interfaceGwtSuperDevOptions
-
setClosureFormattedOutput
public void setClosureFormattedOutput(java.lang.Boolean closureFormattedOutput)
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.
-
getStyle
@Optional @Input public Style getStyle()
- Specified by:
getStyle
in interfaceGwtSuperDevOptions
-
setStyle
public void setStyle(Style style)
- Specified by:
setStyle
in interfaceGwtSuperDevOptions
-
-