Class 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>

public class GwtDev extends AbstractGwtTask implements GwtDevOptions
  • 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.
      addArgs in class AbstractGwtTask
    • configure

      protected void configure(GwtPluginExtension gwtPluginExtension)
    • getNoserver

      @Optional @Input public Boolean getNoserver()
      Specified by:
      getNoserver in interface GwtDevOptions
    • setNoserver

      public 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. The developer must ensure that an appropriate webserver is running to serve the static files/backend.
      Specified by:
      setNoserver in interface GwtDevOptions
      noserver - true if the "-noserver" flag should be set.
    • getPort

      @Optional @Input public Integer getPort()
      Specified by:
      getPort in interface GwtDevOptions
    • setPort

      public void setPort(Integer port)
      Sets the "-port" option.
      Specified by:
      setPort in interface GwtDevOptions
      port - Valid range is [1, 65535]
    • getWhitelist

      @Optional @Input public String getWhitelist()
      Specified by:
      getWhitelist in interface GwtDevOptions
    • setWhitelist

      public void setWhitelist(String whitelist)
      Sets the "-whitelist" option
      Specified by:
      setWhitelist in interface GwtDevOptions
      whitelist - The white list specified.
    • getBlacklist

      @Optional @Input public String getBlacklist()
      Specified by:
      getBlacklist in interface GwtDevOptions
    • setBlacklist

      public void setBlacklist(String blacklist)
      Sets the "-blacklist" option.
      Specified by:
      setBlacklist in interface GwtDevOptions
      blacklist - The black list specified.
    • getLogDir

      @OutputDirectory public File getLogDir()
      Specified by:
      getLogDir in interface GwtDevOptions
    • setLogDir

      public void setLogDir(File logDir)
      Sets the "-logdir" option.
      Specified by:
      setLogDir in interface GwtDevOptions
      logDir - The log dir specified.
    • getBindAddress

      @Optional @Input public String getBindAddress()
      Specified by:
      getBindAddress in interface GwtDevOptions
    • setBindAddress

      public void setBindAddress(String bindAddress)
      Sets the "-bindAddress" option.
      Specified by:
      setBindAddress in interface GwtDevOptions
      bindAddress - The bind address option specified.
    • getCodeServerPort

      @Optional @Input public Integer getCodeServerPort()
      Specified by:
      getCodeServerPort in interface GwtDevOptions
    • setCodeServerPort

      public void setCodeServerPort(Integer codeServerPort)
      Sets the "-codeServerPort" option.
      Specified by:
      setCodeServerPort in interface GwtDevOptions
      codeServerPort - Valid range is [1, 65535]
    • getServer

      @Optional @Input public String getServer()
      Specified by:
      getServer in interface GwtDevOptions
    • setServer

      public void setServer(String server)
      Sets the "-server" option.
      Specified by:
      setServer in interface GwtDevOptions
      server - The server option specified.
    • getStartupUrl

      @Optional @Input public String getStartupUrl()
      Specified by:
      getStartupUrl in interface GwtDevOptions
    • setStartupUrl

      public void setStartupUrl(String startupUrl)
      Sets the "-startupUrl" option.
      Specified by:
      setStartupUrl in interface GwtDevOptions
      startupUrl - The startup Url specified.
    • getAutoPort

      @Optional @Input public Boolean getAutoPort()
      Specified by:
      getAutoPort in interface GwtDevOptions
    • setAutoPort

      public void setAutoPort(Boolean autoPort)
      Is set to true, this causes the "-port" to be automatically assigned using a free port.
      Specified by:
      setAutoPort in interface GwtDevOptions
      autoPort - Whether to be automatically assigned using a free port for "-port" or not.
    • getAutoCodeServerPort

      @Optional @Input public Boolean getAutoCodeServerPort()
      Specified by:
      getAutoCodeServerPort in interface GwtDevOptions
    • setAutoCodeServerPort

      public void setAutoCodeServerPort(Boolean autoCodeServerPort)
      Is set to true, this causes the "-codeServerPort" to be automatically assigned using a free port.
      Specified by:
      setAutoCodeServerPort in interface GwtDevOptions
      autoCodeServerPort - Whether to be automatically assigned using a free port for "-codeServerPort" or not.
    • getSuperDevMode

      @Optional @Input public Boolean getSuperDevMode()
      Specified by:
      getSuperDevMode in interface GwtDevOptions
    • setSuperDevMode

      public void setSuperDevMode(Boolean superDevMode)
      Is set to true, this causes the "-superDevMode" (added in GWT 2.7) flag to be added.
      Specified by:
      setSuperDevMode in interface GwtDevOptions
      superDevMode - Whether to add "-superDevMode" (added in GWT 2.7) flag or not.
    • getStartServer

      @Optional @Input public Boolean getStartServer()
      Specified by:
      getStartServer in interface GwtDevOptions
    • setStartServer

      public void setStartServer(Boolean startServer)
      Is set to true, this causes the "-startServer" (added in GWT 2.7) flag to be added.
      Specified by:
      setStartServer in interface GwtDevOptions
      startServer - Whether to add "-startServer" (added in GWT 2.7) flag or not.
    • getModulePathPrefix

      @Optional @Input public String getModulePathPrefix()
    • setModulePathPrefix

      public void setModulePathPrefix(String modulePathPrefix)
      Sets the "-modulePathPrefix" parameter introduced in GWT 2.7.
      modulePathPrefix - the path prefix where the GWT modules are located relative to the war root.