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 voidaddArgs()Called directly before executing this task.protected voidconfigure(GwtSuperDevOptions options)java.lang.BooleangetAllowMissingSrc()java.lang.StringgetBindAddress()java.lang.BooleangetClosureFormattedOutput()java.lang.BooleangetCompileTest()java.lang.IntegergetCompileTestRecompiles()java.lang.BooleangetFailOnError()java.io.FilegetLauncherDir()java.lang.BooleangetNoPrecompile()java.lang.IntegergetPort()StylegetStyle()java.lang.BooleangetUseClasspathForSrc()java.io.FilegetWorkDir()protected booleanprependSrcToClasspath()If true this causes that the src is prepended to the classpath.voidsetAllowMissingSrc(java.lang.Boolean allowMissingSrc)voidsetBindAddress(java.lang.String bindAddress)Sets the "-bindAddress" option that defines to which network ip the socket should be bound.voidsetClosureFormattedOutput(java.lang.Boolean closureFormattedOutput)If set to true, this adds the parameter -XclosureFormattedOutput.voidsetCompileTest(java.lang.Boolean compileTest)voidsetCompileTestRecompiles(java.lang.Integer compileTestRecompiles)voidsetFailOnError(java.lang.Boolean failOnError)voidsetLauncherDir(java.io.File launcherDir)voidsetNoPrecompile(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.voidsetPort(java.lang.Integer port)Sets the "-port" option that defines to which port the socket should be bound.voidsetStyle(Style style)voidsetUseClasspathForSrc(java.lang.Boolean useClasspathForSrc)If set to true, this causes the src to be prepended to the classpath instead of using -src parameters.voidsetWorkDir(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:AbstractGwtActionTaskCalled directly before executing this task. Subclasses are expected to add all args/javaArgs needed for the execution.- Specified by:
addArgsin classAbstractGwtActionTask
-
configure
protected void configure(GwtSuperDevOptions options)
-
prependSrcToClasspath
protected boolean prependSrcToClasspath()
Description copied from class:AbstractGwtActionTaskIf 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:
prependSrcToClasspathin classAbstractGwtActionTask- Returns:
- true if src should be prepended to the classpath, false otherwise.
-
getWorkDir
@Internal public java.io.File getWorkDir()
- Specified by:
getWorkDirin 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:
setWorkDirin interfaceGwtSuperDevOptions- Parameters:
workDir- the workDir to set
-
getBindAddress
@Optional @Input public java.lang.String getBindAddress()
- Specified by:
getBindAddressin 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:
setBindAddressin interfaceGwtSuperDevOptions- Parameters:
bindAddress- the bindAddress to set
-
getPort
@Optional @Input public java.lang.Integer getPort()
- Specified by:
getPortin 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:
setPortin interfaceGwtSuperDevOptions- Parameters:
port- the port to set. Valid range is [1; 65535].
-
getNoPrecompile
@Optional @Input public java.lang.Boolean getNoPrecompile()
- Specified by:
getNoPrecompilein 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:
setNoPrecompilein 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:
setUseClasspathForSrcin 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:
getUseClasspathForSrcin interfaceGwtSuperDevOptions
-
setLauncherDir
public void setLauncherDir(java.io.File launcherDir)
- Specified by:
setLauncherDirin interfaceGwtSuperDevOptions
-
getLauncherDir
@Optional @InputDirectory @PathSensitive(ABSOLUTE) public java.io.File getLauncherDir()
- Specified by:
getLauncherDirin interfaceGwtSuperDevOptions
-
setCompileTestRecompiles
public void setCompileTestRecompiles(java.lang.Integer compileTestRecompiles)
- Specified by:
setCompileTestRecompilesin interfaceGwtSuperDevOptions
-
getCompileTestRecompiles
@Optional @Input public java.lang.Integer getCompileTestRecompiles()
- Specified by:
getCompileTestRecompilesin interfaceGwtSuperDevOptions
-
setCompileTest
public void setCompileTest(java.lang.Boolean compileTest)
- Specified by:
setCompileTestin interfaceGwtSuperDevOptions
-
getCompileTest
@Optional @Input public java.lang.Boolean getCompileTest()
- Specified by:
getCompileTestin interfaceGwtSuperDevOptions
-
setFailOnError
public void setFailOnError(java.lang.Boolean failOnError)
- Specified by:
setFailOnErrorin interfaceGwtSuperDevOptions
-
getFailOnError
@Optional @Input public java.lang.Boolean getFailOnError()
- Specified by:
getFailOnErrorin interfaceGwtSuperDevOptions
-
setAllowMissingSrc
public void setAllowMissingSrc(java.lang.Boolean allowMissingSrc)
- Specified by:
setAllowMissingSrcin interfaceGwtSuperDevOptions
-
getAllowMissingSrc
@Optional @Input public java.lang.Boolean getAllowMissingSrc()
- Specified by:
getAllowMissingSrcin interfaceGwtSuperDevOptions
-
getClosureFormattedOutput
@Optional @Input public java.lang.Boolean getClosureFormattedOutput()
- Specified by:
getClosureFormattedOutputin 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:
setClosureFormattedOutputin interfaceGwtSuperDevOptions- Parameters:
closureFormattedOutput- The closure formatted output.
-
getStyle
@Optional @Input public Style getStyle()
- Specified by:
getStylein interfaceGwtSuperDevOptions
-
setStyle
public void setStyle(Style style)
- Specified by:
setStylein interfaceGwtSuperDevOptions
-
-