Class GwtSuperDevOptionsImpl
- java.lang.Object
-
- org.docstr.gradle.plugins.gwt.internal.GwtSuperDevOptionsImpl
-
- All Implemented Interfaces:
GwtSuperDevOptions
public class GwtSuperDevOptionsImpl extends java.lang.Object implements GwtSuperDevOptions
Default implementation ofGwtSuperDevOptions.
-
-
Constructor Summary
Constructors Constructor Description GwtSuperDevOptionsImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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()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.
-
-
-
Method Detail
-
getWorkDir
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
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
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
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
public java.lang.Boolean getUseClasspathForSrc()
- Specified by:
getUseClasspathForSrcin interfaceGwtSuperDevOptions
-
getAllowMissingSrc
public java.lang.Boolean getAllowMissingSrc()
- Specified by:
getAllowMissingSrcin interfaceGwtSuperDevOptions
-
setAllowMissingSrc
public void setAllowMissingSrc(java.lang.Boolean allowMissingSrc)
- Specified by:
setAllowMissingSrcin interfaceGwtSuperDevOptions
-
getFailOnError
public java.lang.Boolean getFailOnError()
- Specified by:
getFailOnErrorin interfaceGwtSuperDevOptions
-
setFailOnError
public void setFailOnError(java.lang.Boolean failOnError)
- Specified by:
setFailOnErrorin interfaceGwtSuperDevOptions
-
getCompileTest
public java.lang.Boolean getCompileTest()
- Specified by:
getCompileTestin interfaceGwtSuperDevOptions
-
setCompileTest
public void setCompileTest(java.lang.Boolean compileTest)
- Specified by:
setCompileTestin interfaceGwtSuperDevOptions
-
getCompileTestRecompiles
public java.lang.Integer getCompileTestRecompiles()
- Specified by:
getCompileTestRecompilesin interfaceGwtSuperDevOptions
-
setCompileTestRecompiles
public void setCompileTestRecompiles(java.lang.Integer compileTestRecompiles)
- Specified by:
setCompileTestRecompilesin interfaceGwtSuperDevOptions
-
getLauncherDir
public java.io.File getLauncherDir()
- Specified by:
getLauncherDirin interfaceGwtSuperDevOptions
-
setLauncherDir
public void setLauncherDir(java.io.File launcherDir)
- Specified by:
setLauncherDirin interfaceGwtSuperDevOptions
-
getClosureFormattedOutput
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
public Style getStyle()
- Specified by:
getStylein interfaceGwtSuperDevOptions
-
setStyle
public void setStyle(Style style)
- Specified by:
setStylein interfaceGwtSuperDevOptions
-
-