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:
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>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.gradle.api.Task
org.gradle.api.Task.Namer
-
Field Summary
Fields inherited from interface org.gradle.api.Task
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addArgs()
Called directly before executing this task.protected void
configure
(GwtPluginExtension gwtPluginExtension) getPort()
void
setAutoCodeServerPort
(Boolean autoCodeServerPort) Is set to true, this causes the "-codeServerPort" to be automatically assigned using a free port.void
setAutoPort
(Boolean autoPort) Is set to true, this causes the "-port" to be automatically assigned using a free port.void
setBindAddress
(String bindAddress) Sets the "-bindAddress" option.void
setBlacklist
(String blacklist) Sets the "-blacklist" option.void
setCodeServerPort
(Integer codeServerPort) Sets the "-codeServerPort" option.void
Sets the "-logdir" option.void
setModulePathPrefix
(String modulePathPrefix) Sets the "-modulePathPrefix" parameter introduced in GWT 2.7.void
setNoserver
(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
Sets the "-port" option.void
Sets the "-server" option.void
setStartServer
(Boolean startServer) Is set to true, this causes the "-startServer" (added in GWT 2.7) flag to be added.void
setStartupUrl
(String startupUrl) Sets the "-startupUrl" option.void
setSuperDevMode
(Boolean superDevMode) Is set to true, this causes the "-superDevMode" (added in GWT 2.7) flag to be added.void
setWhitelist
(String whitelist) Sets the "-whitelist" optionMethods 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, jvmArgs, prependSrcToClasspath, setClasspath, setDebug, setExtraJvmArgs, setGwtVersion, setIncremental, setJsInteropExports, setJsInteropMode, setLogLevel, setMaxHeapSize, setMethodNameDisplayMode, setMinHeapSize, setModules, setSourceLevel, setSrc
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.gradle.api.Task
getConvention
-
Constructor Details
-
GwtDev
public GwtDev()
-
-
Method Details
-
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.- Overrides:
addArgs
in classAbstractGwtTask
-
configure
-
getNoserver
- Specified by:
getNoserver
in interfaceGwtDevOptions
-
setNoserver
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:
setNoserver
in interfaceGwtDevOptions
- Parameters:
noserver
- true if the "-noserver" flag should be set.
-
getPort
- Specified by:
getPort
in interfaceGwtDevOptions
-
setPort
Sets the "-port" option.- Specified by:
setPort
in interfaceGwtDevOptions
- Parameters:
port
- Valid range is [1, 65535]
-
getWhitelist
- Specified by:
getWhitelist
in interfaceGwtDevOptions
-
setWhitelist
Sets the "-whitelist" option- Specified by:
setWhitelist
in interfaceGwtDevOptions
- Parameters:
whitelist
- The white list specified.
-
getBlacklist
- Specified by:
getBlacklist
in interfaceGwtDevOptions
-
setBlacklist
Sets the "-blacklist" option.- Specified by:
setBlacklist
in interfaceGwtDevOptions
- Parameters:
blacklist
- The black list specified.
-
getLogDir
- Specified by:
getLogDir
in interfaceGwtDevOptions
-
setLogDir
Sets the "-logdir" option.- Specified by:
setLogDir
in interfaceGwtDevOptions
- Parameters:
logDir
- The log dir specified.
-
getBindAddress
- Specified by:
getBindAddress
in interfaceGwtDevOptions
-
setBindAddress
Sets the "-bindAddress" option.- Specified by:
setBindAddress
in interfaceGwtDevOptions
- Parameters:
bindAddress
- The bind address option specified.
-
getCodeServerPort
- Specified by:
getCodeServerPort
in interfaceGwtDevOptions
-
setCodeServerPort
Sets the "-codeServerPort" option.- Specified by:
setCodeServerPort
in interfaceGwtDevOptions
- Parameters:
codeServerPort
- Valid range is [1, 65535]
-
getServer
- Specified by:
getServer
in interfaceGwtDevOptions
-
setServer
Sets the "-server" option.- Specified by:
setServer
in interfaceGwtDevOptions
- Parameters:
server
- The server option specified.
-
getStartupUrl
- Specified by:
getStartupUrl
in interfaceGwtDevOptions
-
setStartupUrl
Sets the "-startupUrl" option.- Specified by:
setStartupUrl
in interfaceGwtDevOptions
- Parameters:
startupUrl
- The startup Url specified.
-
getAutoPort
- Specified by:
getAutoPort
in interfaceGwtDevOptions
-
setAutoPort
Is set to true, this causes the "-port" to be automatically assigned using a free port.- Specified by:
setAutoPort
in interfaceGwtDevOptions
- Parameters:
autoPort
- Whether to be automatically assigned using a free port for "-port" or not.
-
getAutoCodeServerPort
- Specified by:
getAutoCodeServerPort
in interfaceGwtDevOptions
-
setAutoCodeServerPort
Is set to true, this causes the "-codeServerPort" to be automatically assigned using a free port.- Specified by:
setAutoCodeServerPort
in interfaceGwtDevOptions
- Parameters:
autoCodeServerPort
- Whether to be automatically assigned using a free port for "-codeServerPort" or not.
-
getSuperDevMode
- Specified by:
getSuperDevMode
in interfaceGwtDevOptions
-
setSuperDevMode
Is set to true, this causes the "-superDevMode" (added in GWT 2.7) flag to be added.- Specified by:
setSuperDevMode
in interfaceGwtDevOptions
- Parameters:
superDevMode
- Whether to add "-superDevMode" (added in GWT 2.7) flag or not.
-
getStartServer
- Specified by:
getStartServer
in interfaceGwtDevOptions
-
setStartServer
Is set to true, this causes the "-startServer" (added in GWT 2.7) flag to be added.- Specified by:
setStartServer
in interfaceGwtDevOptions
- Parameters:
startServer
- Whether to add "-startServer" (added in GWT 2.7) flag or not.
-
getModulePathPrefix
-
setModulePathPrefix
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.
-