Class GwtSuperDev

  • All Implemented Interfaces:
    java.lang.Comparable<org.gradle.api.Task>, GwtSuperDevOptions, 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 GwtSuperDev
    extends AbstractGwtActionTask
    implements GwtSuperDevOptions
    Task to run the GWT Super Dev Mode.
    • Constructor Detail

      • GwtSuperDev

        public GwtSuperDev()
    • Method Detail

      • 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.
        Specified by:
        addArgs in class AbstractGwtActionTask
      • prependSrcToClasspath

        protected boolean prependSrcToClasspath()
        Description copied from class: AbstractGwtActionTask
        If true this causes that the src is prepended to the classpath. This is set to false for Super Dev Mode as the source is given to it as extra parameter.
        Overrides:
        prependSrcToClasspath in class AbstractGwtActionTask
        Returns:
        true if src should be prepended to the classpath, false otherwise.
      • 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:
        setWorkDir in interface GwtSuperDevOptions
        Parameters:
        workDir - the workDir to set
      • 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:
        setBindAddress in interface GwtSuperDevOptions
        Parameters:
        bindAddress - the bindAddress to set
      • setPort

        public void setPort​(java.lang.Integer port)
        Sets the "-port" option that defines to which port the socket should be bound.
        Specified by:
        setPort in interface GwtSuperDevOptions
        Parameters:
        port - the port to set. Valid range is [1; 65535].
      • 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:
        setNoPrecompile in interface GwtSuperDevOptions
        Parameters:
        noPrecompile - true if the noPrecompile flag should be set, false otherwise
      • getLauncherDir

        @Optional
        @InputDirectory
        @PathSensitive(ABSOLUTE)
        public java.io.File getLauncherDir()
        Specified by:
        getLauncherDir in interface GwtSuperDevOptions
      • 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:
        setClosureFormattedOutput in interface GwtSuperDevOptions
        Parameters:
        closureFormattedOutput - The closure formatted output.