Class AbstractGwtCompile

  • All Implemented Interfaces:
    java.lang.Comparable<org.gradle.api.Task>, GwtCompileOptions, 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>
    Direct Known Subclasses:
    GwtCheck, GwtCompile, GwtDraftCompile

    public class AbstractGwtCompile
    extends AbstractGwtTask
    implements GwtCompileOptions
    Common implementation of tasks used for GWT compilation.
    • Constructor Detail

      • AbstractGwtCompile

        public AbstractGwtCompile()
    • 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.
        Overrides:
        addArgs in class AbstractGwtTask
      • setLocalWorkers

        public void setLocalWorkers​(java.lang.Integer localWorkers)
        Sets the "-localWorkers" option.
        Specified by:
        setLocalWorkers in interface GwtCompileOptions
        Parameters:
        localWorkers - Whether to add the "-localWorkers" option.
      • setDraftCompile

        public void setDraftCompile​(java.lang.Boolean draftCompile)
        If set to true, this adds the "-draftCompile" flag.
        Specified by:
        setDraftCompile in interface GwtCompileOptions
        Parameters:
        draftCompile - Whether to add the "-draftCompile" flag.
      • setCompileReport

        public void setCompileReport​(java.lang.Boolean compileReport)
        If set to true, this adds the "-compileReport" flag.
        Specified by:
        setCompileReport in interface GwtCompileOptions
        Parameters:
        compileReport - Whether to add the "-compileReport" flag.
      • setCompilerMetrics

        public void setCompilerMetrics​(java.lang.Boolean compilerMetrics)
        If set to true, this adds the "-XcompilerMetrics" flag.
        Specified by:
        setCompilerMetrics in interface GwtCompileOptions
        Parameters:
        compilerMetrics - Whether to add the "-XcompilerMetrics" flag.
      • setValidateOnly

        public void setValidateOnly​(java.lang.Boolean validateOnly)
        If set to true, this adds the "-validateOnly" flag.
        Specified by:
        setValidateOnly in interface GwtCompileOptions
        Parameters:
        validateOnly - Whether to add the "-validateOnly" flag.
      • setDisableGeneratingOnShards

        public void setDisableGeneratingOnShards​(java.lang.Boolean disableGeneratingOnShards)
        If set to true, this adds the "-XdisableGeneratingOnShards" flag.
        Specified by:
        setDisableGeneratingOnShards in interface GwtCompileOptions
        Parameters:
        disableGeneratingOnShards - Whether to add the "-XdisableGeneratingOnShards" flag.
      • setOptimize

        public void setOptimize​(java.lang.Integer optimize)
        Sets the "-optimize" option.
        Specified by:
        setOptimize in interface GwtCompileOptions
        Parameters:
        optimize - the optimization level to set. Valid values are in the interval [0, 9].
      • setDisableAggressiveOptimization

        public void setDisableAggressiveOptimization​(java.lang.Boolean disableAggressiveOptimization)
        If set to true, this adds the "-XdisableAggressiveOptimization" flag.
        Specified by:
        setDisableAggressiveOptimization in interface GwtCompileOptions
        Parameters:
        disableAggressiveOptimization - Whether to add the "-XdisableAggressiveOptimization" flag.
      • setDisableClassMetadata

        public void setDisableClassMetadata​(java.lang.Boolean disableClassMetadata)
        If set to true, this adds the "-XdisableClassMetadata" flag.
        Specified by:
        setDisableClassMetadata in interface GwtCompileOptions
        Parameters:
        disableClassMetadata - Whether to add the "-XdisableClassMetadata" flag.
      • setDisableCastChecking

        public void setDisableCastChecking​(java.lang.Boolean disableCastChecking)
        If set to true, this adds the "-XdisableCastChecking" flag.
        Specified by:
        setDisableCastChecking in interface GwtCompileOptions
        Parameters:
        disableCastChecking - Whether to add the "-XdisableCastChecking" flag.
      • getEa

        @Input
        @Optional
        public java.lang.Boolean getEa()
        Specified by:
        getEa in interface GwtCompileOptions
      • setEa

        public void setEa​(java.lang.Boolean ea)
        If set to true, this adds the "-ea" (enable assertions) flag.
        Specified by:
        setEa in interface GwtCompileOptions
        Parameters:
        ea - Whether to add the "-ea" (enable assertions) flag.
      • setDisableRunAsync

        public void setDisableRunAsync​(java.lang.Boolean disableRunAsync)
        If set to true, this adds the "-XdisableRunAsync" flag.
        Specified by:
        setDisableRunAsync in interface GwtCompileOptions
        Parameters:
        disableRunAsync - Whether to add the "-XdisableRunAsync" flag.
      • setStyle

        public void setStyle​(Style style)
        Sets the "-style" option.
        Specified by:
        setStyle in interface GwtCompileOptions
        Parameters:
        style - Whether to add the "-style" option.
      • setSoycDetailed

        public void setSoycDetailed​(java.lang.Boolean soycDetailed)
        If set to true, this adds the "-XsoycDetailed" flag.
        Specified by:
        setSoycDetailed in interface GwtCompileOptions
        Parameters:
        soycDetailed - Whether to addthe "-XsoycDetailed" flag.
      • setStrict

        public void setStrict​(java.lang.Boolean strict)
        If set to true, this adds the "-strict" flag.
        Specified by:
        setStrict in interface GwtCompileOptions
        Parameters:
        strict - Whether to add the "-strict" flag.
      • setDisableSoycHtml

        public void setDisableSoycHtml​(java.lang.Boolean disableSoycHtml)
        If set to true, this adds the "-XdisableSoycHtml" flag.
        Specified by:
        setDisableSoycHtml in interface GwtCompileOptions
        Parameters:
        disableSoycHtml - Whether to add the "-XdisableSoycHtml" flag.
      • setFragmentCount

        public void setFragmentCount​(java.lang.Integer fragmentCount)
        Sets the "-XfragmentCount" option.
        Specified by:
        setFragmentCount in interface GwtCompileOptions
        Parameters:
        fragmentCount - The "-XfragmentCount" option specified.
      • getMissingDepsFile

        @Optional
        @InputFile
        @PathSensitive(ABSOLUTE)
        public java.io.File getMissingDepsFile()
        Specified by:
        getMissingDepsFile in interface GwtCompileOptions
      • setMissingDepsFile

        public void setMissingDepsFile​(java.io.File missingDepsFile)
        Specified by:
        setMissingDepsFile in interface GwtCompileOptions
        Parameters:
        missingDepsFile - the missingDepsFile to set
      • setEnforceStrictResources

        public void setEnforceStrictResources​(java.lang.Boolean enforceStrictResources)
        Specified by:
        setEnforceStrictResources in interface GwtCompileOptions
        Parameters:
        enforceStrictResources - the enforceStrictResources to set
      • setIncrementalCompileWarnings

        public void setIncrementalCompileWarnings​(java.lang.Boolean incrementalCompileWarnings)
        Specified by:
        setIncrementalCompileWarnings in interface GwtCompileOptions
        Parameters:
        incrementalCompileWarnings - the incrementalCompileWarnings to set
      • setOverlappingSourceWarnings

        public void setOverlappingSourceWarnings​(java.lang.Boolean overlappingSourceWarnings)
        Specified by:
        setOverlappingSourceWarnings in interface GwtCompileOptions
        Parameters:
        overlappingSourceWarnings - the overlappingSourceWarnings to set
      • setSaveSource

        public void setSaveSource​(java.lang.Boolean saveSource)
        Specified by:
        setSaveSource in interface GwtCompileOptions
        Parameters:
        saveSource - the saveSource to set
      • setSaveSourceOutput

        public void setSaveSourceOutput​(java.io.File saveSourceOutput)
        Specified by:
        setSaveSourceOutput in interface GwtCompileOptions
        Parameters:
        saveSourceOutput - the saveSourceOutput to set
      • 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 GwtCompileOptions
        Parameters:
        closureFormattedOutput - The closure formatted output.
      • setSetProperties

        public void setSetProperties​(java.util.List<java.lang.String> properties)
        Set the values of a property in the form of propertyName=value1[,value2...]. Example: -setProperties = ["user.agent=safari", "locale=default"] would add the parameters -setProperty user.agent=safari -setProperty locale=default
        Specified by:
        setSetProperties in interface GwtCompileOptions
        Parameters:
        properties - The list of properties to be set