public class GwtDev extends AbstractGwtTask implements GwtDevOptions
Constructor and Description |
---|
GwtDev() |
Modifier and Type | Method and Description |
---|---|
protected void |
addArgs()
Called directly before executing this task.
|
protected void |
configure(GwtPluginExtension gwtPluginExtension) |
java.lang.Boolean |
getAutoCodeServerPort() |
java.lang.Boolean |
getAutoPort() |
java.lang.String |
getBindAddress() |
java.lang.String |
getBlacklist() |
java.lang.Integer |
getCodeServerPort() |
java.io.File |
getLogDir() |
java.lang.String |
getModulePathPrefix() |
java.lang.Boolean |
getNoserver() |
java.lang.Integer |
getPort() |
java.lang.String |
getServer() |
java.lang.Boolean |
getStartServer() |
java.lang.String |
getStartupUrl() |
java.lang.Boolean |
getSuperDevMode() |
java.lang.String |
getWhitelist() |
void |
setAutoCodeServerPort(java.lang.Boolean autoCodeServerPort)
Is set to true, this causes the "-codeServerPort" to be automatically
assigned using a free port.
|
void |
setAutoPort(java.lang.Boolean autoPort)
Is set to true, this causes the "-port" to be automatically assigned
using a free port.
|
void |
setBindAddress(java.lang.String bindAddress)
Sets the "-bindAddress" option.
|
void |
setBlacklist(java.lang.String blacklist)
Sets the "-blacklist" option.
|
void |
setCodeServerPort(java.lang.Integer codeServerPort)
Sets the "-codeServerPort" option.
|
void |
setLogDir(java.io.File logDir)
Sets the "-logdir" option.
|
void |
setModulePathPrefix(java.lang.String modulePathPrefix)
Sets the "-modulePathPrefix" parameter introduced in GWT 2.7.
|
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.
|
void |
setPort(java.lang.Integer port)
Sets the "-port" option.
|
void |
setServer(java.lang.String server)
Sets the "-server" option.
|
void |
setStartServer(java.lang.Boolean startServer)
Is set to true, this causes the "-startServer" (added in GWT 2.7)
flag to be added.
|
void |
setStartupUrl(java.lang.String startupUrl)
Sets the "-startupUrl" option.
|
void |
setSuperDevMode(java.lang.Boolean superDevMode)
Is set to true, this causes the "-superDevMode" (added in GWT 2.7)
flag to be added.
|
void |
setWhitelist(java.lang.String whitelist)
Sets the "-whitelist" option
|
getCacheDir, getDeploy, getExtra, getGen, getWar, getWorkDir, setCacheDir, setDeploy, setExtra, setGen, setWar, setWorkDir
argIfEnabled, argIfSet, argOnOff, args, dirArgIfSet, exec, getClasspath, getExtraJvmArgs, getGwtVersion, getIncremental, getJsInteropExports, getJsInteropMode, getLogLevel, getMaxHeapSize, getMethodNameDisplayMode, getMinHeapSize, getModules, getSourceLevel, getSrc, isDebug, isDevTask, jvmArgs, prependSrcToClasspath, setClasspath, setDebug, setExtraJvmArgs, setGwtVersion, setIncremental, setJsInteropExports, setJsInteropMode, setLogLevel, setMaxHeapSize, setMethodNameDisplayMode, setMinHeapSize, setModules, setSourceLevel, setSrc
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
appendParallelSafeAction, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getOnlyIf, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, prependParallelSafeAction, setImpliesSubProjects
protected void addArgs()
AbstractGwtActionTask
addArgs
in class AbstractGwtTask
protected void configure(GwtPluginExtension gwtPluginExtension)
@Optional @Input public java.lang.Boolean getNoserver()
getNoserver
in interface GwtDevOptions
public void setNoserver(java.lang.Boolean noserver)
setNoserver
in interface GwtDevOptions
noserver
- true if the "-noserver" flag should be set.@Optional @Input public java.lang.Integer getPort()
getPort
in interface GwtDevOptions
public void setPort(java.lang.Integer port)
setPort
in interface GwtDevOptions
port
- Valid range is [1, 65535]@Optional @Input public java.lang.String getWhitelist()
getWhitelist
in interface GwtDevOptions
public void setWhitelist(java.lang.String whitelist)
setWhitelist
in interface GwtDevOptions
whitelist
- The white list specified.@Optional @Input public java.lang.String getBlacklist()
getBlacklist
in interface GwtDevOptions
public void setBlacklist(java.lang.String blacklist)
setBlacklist
in interface GwtDevOptions
blacklist
- The black list specified.@OutputDirectory public java.io.File getLogDir()
getLogDir
in interface GwtDevOptions
public void setLogDir(java.io.File logDir)
setLogDir
in interface GwtDevOptions
logDir
- The log dir specified.@Optional @Input public java.lang.String getBindAddress()
getBindAddress
in interface GwtDevOptions
public void setBindAddress(java.lang.String bindAddress)
setBindAddress
in interface GwtDevOptions
bindAddress
- The bind address option specified.@Optional @Input public java.lang.Integer getCodeServerPort()
getCodeServerPort
in interface GwtDevOptions
public void setCodeServerPort(java.lang.Integer codeServerPort)
setCodeServerPort
in interface GwtDevOptions
codeServerPort
- Valid range is [1, 65535]@Optional @Input public java.lang.String getServer()
getServer
in interface GwtDevOptions
public void setServer(java.lang.String server)
setServer
in interface GwtDevOptions
server
- The server option specified.@Optional @Input public java.lang.String getStartupUrl()
getStartupUrl
in interface GwtDevOptions
public void setStartupUrl(java.lang.String startupUrl)
setStartupUrl
in interface GwtDevOptions
startupUrl
- The startup Url specified.@Optional @Input public java.lang.Boolean getAutoPort()
getAutoPort
in interface GwtDevOptions
public void setAutoPort(java.lang.Boolean autoPort)
setAutoPort
in interface GwtDevOptions
autoPort
- Whether to be automatically assigned using a free port
for "-port" or not.@Optional @Input public java.lang.Boolean getAutoCodeServerPort()
getAutoCodeServerPort
in interface GwtDevOptions
public void setAutoCodeServerPort(java.lang.Boolean autoCodeServerPort)
setAutoCodeServerPort
in interface GwtDevOptions
autoCodeServerPort
- Whether to be automatically assigned using
a free port for "-codeServerPort" or not.@Optional @Input public java.lang.Boolean getSuperDevMode()
getSuperDevMode
in interface GwtDevOptions
public void setSuperDevMode(java.lang.Boolean superDevMode)
setSuperDevMode
in interface GwtDevOptions
superDevMode
- Whether to add "-superDevMode" (added in GWT 2.7)
flag or not.@Optional @Input public java.lang.Boolean getStartServer()
getStartServer
in interface GwtDevOptions
public void setStartServer(java.lang.Boolean startServer)
setStartServer
in interface GwtDevOptions
startServer
- Whether to add "-startServer" (added in GWT 2.7)
flag or not.@Optional @Input public java.lang.String getModulePathPrefix()
public void setModulePathPrefix(java.lang.String modulePathPrefix)
modulePathPrefix
- the path prefix where the GWT modules are located relative to the war root.