Package org.docstr.gradle.plugins.gwt
Class GwtDev
- java.lang.Object
-
- org.gradle.api.internal.AbstractTask
-
- org.gradle.api.DefaultTask
-
- org.docstr.gradle.plugins.gwt.AbstractGwtActionTask
-
- org.docstr.gradle.plugins.gwt.AbstractGwtTask
-
- org.docstr.gradle.plugins.gwt.GwtDev
-
- All Implemented Interfaces:
java.lang.Comparable<org.gradle.api.Task>,GwtDevOptions,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 GwtDev extends AbstractGwtTask implements GwtDevOptions
-
-
Constructor Summary
Constructors Constructor Description GwtDev()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddArgs()Called directly before executing this task.protected voidconfigure(GwtPluginExtension gwtPluginExtension)java.lang.BooleangetAutoCodeServerPort()java.lang.BooleangetAutoPort()java.lang.StringgetBindAddress()java.lang.StringgetBlacklist()java.lang.IntegergetCodeServerPort()java.io.FilegetLogDir()java.lang.StringgetModulePathPrefix()java.lang.BooleangetNoserver()java.lang.IntegergetPort()java.lang.StringgetServer()java.lang.BooleangetStartServer()java.lang.StringgetStartupUrl()java.lang.BooleangetSuperDevMode()java.lang.StringgetWhitelist()voidsetAutoCodeServerPort(java.lang.Boolean autoCodeServerPort)Is set to true, this causes the "-codeServerPort" to be automatically assigned using a free port.voidsetAutoPort(java.lang.Boolean autoPort)Is set to true, this causes the "-port" to be automatically assigned using a free port.voidsetBindAddress(java.lang.String bindAddress)Sets the "-bindAddress" option.voidsetBlacklist(java.lang.String blacklist)Sets the "-blacklist" option.voidsetCodeServerPort(java.lang.Integer codeServerPort)Sets the "-codeServerPort" option.voidsetLogDir(java.io.File logDir)Sets the "-logdir" option.voidsetModulePathPrefix(java.lang.String modulePathPrefix)Sets the "-modulePathPrefix" parameter introduced in GWT 2.7.voidsetNoserver(java.lang.Boolean noserver)Sets the "-noserver" flag that causes the GWT dev mode to not start the internal webserver (jetty) but only the code server that runs the GWT client part.voidsetPort(java.lang.Integer port)Sets the "-port" option.voidsetServer(java.lang.String server)Sets the "-server" option.voidsetStartServer(java.lang.Boolean startServer)Is set to true, this causes the "-startServer" (added in GWT 2.7) flag to be added.voidsetStartupUrl(java.lang.String startupUrl)Sets the "-startupUrl" option.voidsetSuperDevMode(java.lang.Boolean superDevMode)Is set to true, this causes the "-superDevMode" (added in GWT 2.7) flag to be added.voidsetWhitelist(java.lang.String whitelist)Sets the "-whitelist" option-
Methods inherited from class org.docstr.gradle.plugins.gwt.AbstractGwtTask
getCacheDir, getDeploy, getExtra, getGen, getWar, getWorkDir, setCacheDir, setDeploy, setExtra, setGen, setWar, setWorkDir
-
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, prependSrcToClasspath, 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.- Overrides:
addArgsin classAbstractGwtTask
-
configure
protected void configure(GwtPluginExtension gwtPluginExtension)
-
getNoserver
@Optional @Input public java.lang.Boolean getNoserver()
- Specified by:
getNoserverin interfaceGwtDevOptions
-
setNoserver
public void setNoserver(java.lang.Boolean noserver)
Sets the "-noserver" flag that causes the GWT dev mode to not start the internal webserver (jetty) but only the code server that runs the GWT client part. The developer must ensure that an appropriate webserver is running to serve the static files/backend.- Specified by:
setNoserverin interfaceGwtDevOptions- Parameters:
noserver- true if the "-noserver" flag should be set.
-
getPort
@Optional @Input public java.lang.Integer getPort()
- Specified by:
getPortin interfaceGwtDevOptions
-
setPort
public void setPort(java.lang.Integer port)
Sets the "-port" option.- Specified by:
setPortin interfaceGwtDevOptions- Parameters:
port- Valid range is [1, 65535]
-
getWhitelist
@Optional @Input public java.lang.String getWhitelist()
- Specified by:
getWhitelistin interfaceGwtDevOptions
-
setWhitelist
public void setWhitelist(java.lang.String whitelist)
Sets the "-whitelist" option- Specified by:
setWhitelistin interfaceGwtDevOptions- Parameters:
whitelist- The white list specified.
-
getBlacklist
@Optional @Input public java.lang.String getBlacklist()
- Specified by:
getBlacklistin interfaceGwtDevOptions
-
setBlacklist
public void setBlacklist(java.lang.String blacklist)
Sets the "-blacklist" option.- Specified by:
setBlacklistin interfaceGwtDevOptions- Parameters:
blacklist- The black list specified.
-
getLogDir
@OutputDirectory public java.io.File getLogDir()
- Specified by:
getLogDirin interfaceGwtDevOptions
-
setLogDir
public void setLogDir(java.io.File logDir)
Sets the "-logdir" option.- Specified by:
setLogDirin interfaceGwtDevOptions- Parameters:
logDir- The log dir specified.
-
getBindAddress
@Optional @Input public java.lang.String getBindAddress()
- Specified by:
getBindAddressin interfaceGwtDevOptions
-
setBindAddress
public void setBindAddress(java.lang.String bindAddress)
Sets the "-bindAddress" option.- Specified by:
setBindAddressin interfaceGwtDevOptions- Parameters:
bindAddress- The bind address option specified.
-
getCodeServerPort
@Optional @Input public java.lang.Integer getCodeServerPort()
- Specified by:
getCodeServerPortin interfaceGwtDevOptions
-
setCodeServerPort
public void setCodeServerPort(java.lang.Integer codeServerPort)
Sets the "-codeServerPort" option.- Specified by:
setCodeServerPortin interfaceGwtDevOptions- Parameters:
codeServerPort- Valid range is [1, 65535]
-
getServer
@Optional @Input public java.lang.String getServer()
- Specified by:
getServerin interfaceGwtDevOptions
-
setServer
public void setServer(java.lang.String server)
Sets the "-server" option.- Specified by:
setServerin interfaceGwtDevOptions- Parameters:
server- The server option specified.
-
getStartupUrl
@Optional @Input public java.lang.String getStartupUrl()
- Specified by:
getStartupUrlin interfaceGwtDevOptions
-
setStartupUrl
public void setStartupUrl(java.lang.String startupUrl)
Sets the "-startupUrl" option.- Specified by:
setStartupUrlin interfaceGwtDevOptions- Parameters:
startupUrl- The startup Url specified.
-
getAutoPort
@Optional @Input public java.lang.Boolean getAutoPort()
- Specified by:
getAutoPortin interfaceGwtDevOptions
-
setAutoPort
public void setAutoPort(java.lang.Boolean autoPort)
Is set to true, this causes the "-port" to be automatically assigned using a free port.- Specified by:
setAutoPortin interfaceGwtDevOptions- Parameters:
autoPort- Whether to be automatically assigned using a free port for "-port" or not.
-
getAutoCodeServerPort
@Optional @Input public java.lang.Boolean getAutoCodeServerPort()
- Specified by:
getAutoCodeServerPortin interfaceGwtDevOptions
-
setAutoCodeServerPort
public void setAutoCodeServerPort(java.lang.Boolean autoCodeServerPort)
Is set to true, this causes the "-codeServerPort" to be automatically assigned using a free port.- Specified by:
setAutoCodeServerPortin interfaceGwtDevOptions- Parameters:
autoCodeServerPort- Whether to be automatically assigned using a free port for "-codeServerPort" or not.
-
getSuperDevMode
@Optional @Input public java.lang.Boolean getSuperDevMode()
- Specified by:
getSuperDevModein interfaceGwtDevOptions
-
setSuperDevMode
public void setSuperDevMode(java.lang.Boolean superDevMode)
Is set to true, this causes the "-superDevMode" (added in GWT 2.7) flag to be added.- Specified by:
setSuperDevModein interfaceGwtDevOptions- Parameters:
superDevMode- Whether to add "-superDevMode" (added in GWT 2.7) flag or not.
-
getStartServer
@Optional @Input public java.lang.Boolean getStartServer()
- Specified by:
getStartServerin interfaceGwtDevOptions
-
setStartServer
public void setStartServer(java.lang.Boolean startServer)
Is set to true, this causes the "-startServer" (added in GWT 2.7) flag to be added.- Specified by:
setStartServerin interfaceGwtDevOptions- Parameters:
startServer- Whether to add "-startServer" (added in GWT 2.7) flag or not.
-
getModulePathPrefix
@Optional @Input public java.lang.String getModulePathPrefix()
-
setModulePathPrefix
public void setModulePathPrefix(java.lang.String modulePathPrefix)
Sets the "-modulePathPrefix" parameter introduced in GWT 2.7.- Parameters:
modulePathPrefix- the path prefix where the GWT modules are located relative to the war root.
-
-