Package org.docstr.gradle.plugins.gwt
Class AbstractGwtCompile
- 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.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 Summary
Constructors Constructor Description AbstractGwtCompile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddArgs()Called directly before executing this task.protected voidconfigure(GwtCompileOptions options)java.lang.BooleangetClosureFormattedOutput()java.lang.BooleangetCompileReport()java.lang.BooleangetCompilerMetrics()java.lang.BooleangetDisableAggressiveOptimization()java.lang.BooleangetDisableCastChecking()java.lang.BooleangetDisableClassMetadata()java.lang.BooleangetDisableGeneratingOnShards()java.lang.BooleangetDisableRunAsync()java.lang.BooleangetDisableSoycHtml()java.lang.BooleangetDraftCompile()java.lang.BooleangetEa()java.lang.BooleangetEnforceStrictResources()java.lang.IntegergetFragmentCount()java.lang.BooleangetIncrementalCompileWarnings()java.lang.IntegergetLocalWorkers()java.io.FilegetMissingDepsFile()NamespacegetNamespace()java.lang.IntegergetOptimize()java.lang.BooleangetOverlappingSourceWarnings()java.lang.BooleangetSaveSource()java.io.FilegetSaveSourceOutput()java.lang.BooleangetSoycDetailed()java.lang.BooleangetStrict()StylegetStyle()java.lang.BooleangetValidateOnly()voidsetClosureFormattedOutput(java.lang.Boolean closureFormattedOutput)If set to true, this adds the parameter -XclosureFormattedOutput.voidsetCompileReport(java.lang.Boolean compileReport)If set to true, this adds the "-compileReport" flag.voidsetCompilerMetrics(java.lang.Boolean compilerMetrics)If set to true, this adds the "-XcompilerMetrics" flag.voidsetDisableAggressiveOptimization(java.lang.Boolean disableAggressiveOptimization)If set to true, this adds the "-XdisableAggressiveOptimization" flag.voidsetDisableCastChecking(java.lang.Boolean disableCastChecking)If set to true, this adds the "-XdisableCastChecking" flag.voidsetDisableClassMetadata(java.lang.Boolean disableClassMetadata)If set to true, this adds the "-XdisableClassMetadata" flag.voidsetDisableGeneratingOnShards(java.lang.Boolean disableGeneratingOnShards)If set to true, this adds the "-XdisableGeneratingOnShards" flag.voidsetDisableRunAsync(java.lang.Boolean disableRunAsync)If set to true, this adds the "-XdisableRunAsync" flag.voidsetDisableSoycHtml(java.lang.Boolean disableSoycHtml)If set to true, this adds the "-XdisableSoycHtml" flag.voidsetDraftCompile(java.lang.Boolean draftCompile)If set to true, this adds the "-draftCompile" flag.voidsetEa(java.lang.Boolean ea)If set to true, this adds the "-ea" (enable assertions) flag.voidsetEnforceStrictResources(java.lang.Boolean enforceStrictResources)voidsetFragmentCount(java.lang.Integer fragmentCount)Sets the "-XfragmentCount" option.voidsetIncrementalCompileWarnings(java.lang.Boolean incrementalCompileWarnings)voidsetLocalWorkers(java.lang.Integer localWorkers)Sets the "-localWorkers" option.voidsetMissingDepsFile(java.io.File missingDepsFile)voidsetNamespace(Namespace namespace)voidsetOptimize(java.lang.Integer optimize)Sets the "-optimize" option.voidsetOverlappingSourceWarnings(java.lang.Boolean overlappingSourceWarnings)voidsetSaveSource(java.lang.Boolean saveSource)voidsetSaveSourceOutput(java.io.File saveSourceOutput)voidsetSoycDetailed(java.lang.Boolean soycDetailed)If set to true, this adds the "-XsoycDetailed" flag.voidsetStrict(java.lang.Boolean strict)If set to true, this adds the "-strict" flag.voidsetStyle(Style style)Sets the "-style" option.voidsetValidateOnly(java.lang.Boolean validateOnly)If set to true, this adds the "-validateOnly" flag.-
Methods 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, isUseToolchain, jvmArgs, prependSrcToClasspath, setClasspath, setDebug, setExtraJvmArgs, setGwtVersion, setIncremental, setJsInteropExports, setJsInteropMode, setLogLevel, setMaxHeapSize, setMethodNameDisplayMode, setMinHeapSize, setModules, setSourceLevel, setSrc, setUseToolchain
-
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
-
-
-
-
Method Detail
-
addArgs
protected void addArgs()
Description copied from class:AbstractGwtActionTaskCalled directly before executing this task. Subclasses are expected to add all args/javaArgs needed for the execution.- Overrides:
addArgsin classAbstractGwtTask
-
configure
protected void configure(GwtCompileOptions options)
-
getLocalWorkers
@Input public java.lang.Integer getLocalWorkers()
- Specified by:
getLocalWorkersin interfaceGwtCompileOptions
-
setLocalWorkers
public void setLocalWorkers(java.lang.Integer localWorkers)
Sets the "-localWorkers" option.- Specified by:
setLocalWorkersin interfaceGwtCompileOptions- Parameters:
localWorkers- Whether to add the "-localWorkers" option.
-
getDraftCompile
@Input @Optional public java.lang.Boolean getDraftCompile()
- Specified by:
getDraftCompilein interfaceGwtCompileOptions
-
setDraftCompile
public void setDraftCompile(java.lang.Boolean draftCompile)
If set to true, this adds the "-draftCompile" flag.- Specified by:
setDraftCompilein interfaceGwtCompileOptions- Parameters:
draftCompile- Whether to add the "-draftCompile" flag.
-
getCompileReport
@Input @Optional public java.lang.Boolean getCompileReport()
- Specified by:
getCompileReportin interfaceGwtCompileOptions
-
setCompileReport
public void setCompileReport(java.lang.Boolean compileReport)
If set to true, this adds the "-compileReport" flag.- Specified by:
setCompileReportin interfaceGwtCompileOptions- Parameters:
compileReport- Whether to add the "-compileReport" flag.
-
getCompilerMetrics
@Input @Optional public java.lang.Boolean getCompilerMetrics()
- Specified by:
getCompilerMetricsin interfaceGwtCompileOptions
-
setCompilerMetrics
public void setCompilerMetrics(java.lang.Boolean compilerMetrics)
If set to true, this adds the "-XcompilerMetrics" flag.- Specified by:
setCompilerMetricsin interfaceGwtCompileOptions- Parameters:
compilerMetrics- Whether to add the "-XcompilerMetrics" flag.
-
getValidateOnly
@Input @Optional public java.lang.Boolean getValidateOnly()
- Specified by:
getValidateOnlyin interfaceGwtCompileOptions
-
setValidateOnly
public void setValidateOnly(java.lang.Boolean validateOnly)
If set to true, this adds the "-validateOnly" flag.- Specified by:
setValidateOnlyin interfaceGwtCompileOptions- Parameters:
validateOnly- Whether to add the "-validateOnly" flag.
-
getDisableGeneratingOnShards
@Input @Optional public java.lang.Boolean getDisableGeneratingOnShards()
- Specified by:
getDisableGeneratingOnShardsin interfaceGwtCompileOptions
-
setDisableGeneratingOnShards
public void setDisableGeneratingOnShards(java.lang.Boolean disableGeneratingOnShards)
If set to true, this adds the "-XdisableGeneratingOnShards" flag.- Specified by:
setDisableGeneratingOnShardsin interfaceGwtCompileOptions- Parameters:
disableGeneratingOnShards- Whether to add the "-XdisableGeneratingOnShards" flag.
-
getOptimize
@Input @Optional public java.lang.Integer getOptimize()
- Specified by:
getOptimizein interfaceGwtCompileOptions
-
setOptimize
public void setOptimize(java.lang.Integer optimize)
Sets the "-optimize" option.- Specified by:
setOptimizein interfaceGwtCompileOptions- Parameters:
optimize- the optimization level to set. Valid values are in the interval [0, 9].
-
getDisableAggressiveOptimization
@Input @Optional public java.lang.Boolean getDisableAggressiveOptimization()
- Specified by:
getDisableAggressiveOptimizationin interfaceGwtCompileOptions
-
setDisableAggressiveOptimization
public void setDisableAggressiveOptimization(java.lang.Boolean disableAggressiveOptimization)
If set to true, this adds the "-XdisableAggressiveOptimization" flag.- Specified by:
setDisableAggressiveOptimizationin interfaceGwtCompileOptions- Parameters:
disableAggressiveOptimization- Whether to add the "-XdisableAggressiveOptimization" flag.
-
getDisableClassMetadata
@Input @Optional public java.lang.Boolean getDisableClassMetadata()
- Specified by:
getDisableClassMetadatain interfaceGwtCompileOptions
-
setDisableClassMetadata
public void setDisableClassMetadata(java.lang.Boolean disableClassMetadata)
If set to true, this adds the "-XdisableClassMetadata" flag.- Specified by:
setDisableClassMetadatain interfaceGwtCompileOptions- Parameters:
disableClassMetadata- Whether to add the "-XdisableClassMetadata" flag.
-
getDisableCastChecking
@Input @Optional public java.lang.Boolean getDisableCastChecking()
- Specified by:
getDisableCastCheckingin interfaceGwtCompileOptions
-
setDisableCastChecking
public void setDisableCastChecking(java.lang.Boolean disableCastChecking)
If set to true, this adds the "-XdisableCastChecking" flag.- Specified by:
setDisableCastCheckingin interfaceGwtCompileOptions- Parameters:
disableCastChecking- Whether to add the "-XdisableCastChecking" flag.
-
getEa
@Input @Optional public java.lang.Boolean getEa()
- Specified by:
getEain interfaceGwtCompileOptions
-
setEa
public void setEa(java.lang.Boolean ea)
If set to true, this adds the "-ea" (enable assertions) flag.- Specified by:
setEain interfaceGwtCompileOptions- Parameters:
ea- Whether to add the "-ea" (enable assertions) flag.
-
getDisableRunAsync
@Input @Optional public java.lang.Boolean getDisableRunAsync()
- Specified by:
getDisableRunAsyncin interfaceGwtCompileOptions
-
setDisableRunAsync
public void setDisableRunAsync(java.lang.Boolean disableRunAsync)
If set to true, this adds the "-XdisableRunAsync" flag.- Specified by:
setDisableRunAsyncin interfaceGwtCompileOptions- Parameters:
disableRunAsync- Whether to add the "-XdisableRunAsync" flag.
-
getStyle
@Input @Optional public Style getStyle()
- Specified by:
getStylein interfaceGwtCompileOptions
-
setStyle
public void setStyle(Style style)
Sets the "-style" option.- Specified by:
setStylein interfaceGwtCompileOptions- Parameters:
style- Whether to add the "-style" option.
-
getSoycDetailed
@Input @Optional public java.lang.Boolean getSoycDetailed()
- Specified by:
getSoycDetailedin interfaceGwtCompileOptions
-
setSoycDetailed
public void setSoycDetailed(java.lang.Boolean soycDetailed)
If set to true, this adds the "-XsoycDetailed" flag.- Specified by:
setSoycDetailedin interfaceGwtCompileOptions- Parameters:
soycDetailed- Whether to addthe "-XsoycDetailed" flag.
-
getStrict
@Input @Optional public java.lang.Boolean getStrict()
- Specified by:
getStrictin interfaceGwtCompileOptions
-
setStrict
public void setStrict(java.lang.Boolean strict)
If set to true, this adds the "-strict" flag.- Specified by:
setStrictin interfaceGwtCompileOptions- Parameters:
strict- Whether to add the "-strict" flag.
-
getDisableSoycHtml
@Input @Optional public java.lang.Boolean getDisableSoycHtml()
- Specified by:
getDisableSoycHtmlin interfaceGwtCompileOptions
-
setDisableSoycHtml
public void setDisableSoycHtml(java.lang.Boolean disableSoycHtml)
If set to true, this adds the "-XdisableSoycHtml" flag.- Specified by:
setDisableSoycHtmlin interfaceGwtCompileOptions- Parameters:
disableSoycHtml- Whether to add the "-XdisableSoycHtml" flag.
-
getFragmentCount
@Input @Optional public java.lang.Integer getFragmentCount()
- Specified by:
getFragmentCountin interfaceGwtCompileOptions
-
setFragmentCount
public void setFragmentCount(java.lang.Integer fragmentCount)
Sets the "-XfragmentCount" option.- Specified by:
setFragmentCountin interfaceGwtCompileOptions- Parameters:
fragmentCount- The "-XfragmentCount" option specified.
-
getMissingDepsFile
@Optional @InputFile @PathSensitive(ABSOLUTE) public java.io.File getMissingDepsFile()
- Specified by:
getMissingDepsFilein interfaceGwtCompileOptions
-
setMissingDepsFile
public void setMissingDepsFile(java.io.File missingDepsFile)
- Specified by:
setMissingDepsFilein interfaceGwtCompileOptions- Parameters:
missingDepsFile- the missingDepsFile to set
-
getNamespace
@Optional @Input public Namespace getNamespace()
- Specified by:
getNamespacein interfaceGwtCompileOptions
-
setNamespace
public void setNamespace(Namespace namespace)
- Specified by:
setNamespacein interfaceGwtCompileOptions- Parameters:
namespace- the namespace to set
-
getEnforceStrictResources
@Optional @Input public java.lang.Boolean getEnforceStrictResources()
- Specified by:
getEnforceStrictResourcesin interfaceGwtCompileOptions
-
setEnforceStrictResources
public void setEnforceStrictResources(java.lang.Boolean enforceStrictResources)
- Specified by:
setEnforceStrictResourcesin interfaceGwtCompileOptions- Parameters:
enforceStrictResources- the enforceStrictResources to set
-
getIncrementalCompileWarnings
@Optional @Input public java.lang.Boolean getIncrementalCompileWarnings()
- Specified by:
getIncrementalCompileWarningsin interfaceGwtCompileOptions
-
setIncrementalCompileWarnings
public void setIncrementalCompileWarnings(java.lang.Boolean incrementalCompileWarnings)
- Specified by:
setIncrementalCompileWarningsin interfaceGwtCompileOptions- Parameters:
incrementalCompileWarnings- the incrementalCompileWarnings to set
-
getOverlappingSourceWarnings
@Optional @Input public java.lang.Boolean getOverlappingSourceWarnings()
- Specified by:
getOverlappingSourceWarningsin interfaceGwtCompileOptions
-
setOverlappingSourceWarnings
public void setOverlappingSourceWarnings(java.lang.Boolean overlappingSourceWarnings)
- Specified by:
setOverlappingSourceWarningsin interfaceGwtCompileOptions- Parameters:
overlappingSourceWarnings- the overlappingSourceWarnings to set
-
getSaveSource
@Optional @Input public java.lang.Boolean getSaveSource()
- Specified by:
getSaveSourcein interfaceGwtCompileOptions
-
setSaveSource
public void setSaveSource(java.lang.Boolean saveSource)
- Specified by:
setSaveSourcein interfaceGwtCompileOptions- Parameters:
saveSource- the saveSource to set
-
getSaveSourceOutput
@Optional @OutputDirectory public java.io.File getSaveSourceOutput()
- Specified by:
getSaveSourceOutputin interfaceGwtCompileOptions
-
setSaveSourceOutput
public void setSaveSourceOutput(java.io.File saveSourceOutput)
- Specified by:
setSaveSourceOutputin interfaceGwtCompileOptions- Parameters:
saveSourceOutput- the saveSourceOutput to set
-
getClosureFormattedOutput
@Optional @Input public java.lang.Boolean getClosureFormattedOutput()
- Specified by:
getClosureFormattedOutputin interfaceGwtCompileOptions
-
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:
setClosureFormattedOutputin interfaceGwtCompileOptions- Parameters:
closureFormattedOutput- The closure formatted output.
-
-