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.
        addArgs in class AbstractGwtTask
      • setLocalWorkers

        public void setLocalWorkers​(java.lang.Integer localWorkers)
        Sets the "-localWorkers" option.
        Specified by:
        setLocalWorkers in interface GwtCompileOptions
        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
        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
        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
        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
        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
        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
        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
        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
        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
        disableCastChecking - Whether to add the "-XdisableCastChecking" flag.
      • getEa

        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
        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
        disableRunAsync - Whether to add the "-XdisableRunAsync" flag.
      • setStyle

        public void setStyle​(Style style)
        Sets the "-style" option.
        Specified by:
        setStyle in interface GwtCompileOptions
        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
        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
        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
        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
        fragmentCount - The "-XfragmentCount" option specified.
      • getMissingDepsFile

        public getMissingDepsFile()
        Specified by:
        getMissingDepsFile in interface GwtCompileOptions
      • setMissingDepsFile

        public void setMissingDepsFile​( missingDepsFile)
        Specified by:
        setMissingDepsFile in interface GwtCompileOptions
        missingDepsFile - the missingDepsFile to set
      • setEnforceStrictResources

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

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

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

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

        public void setSaveSourceOutput​( saveSourceOutput)
        Specified by:
        setSaveSourceOutput in interface GwtCompileOptions
        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
        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
        properties - The list of properties to be set