Package org.docstr.gwt
Class GwtPluginExtension.CompilerOptions
java.lang.Object
org.docstr.gwt.GwtBaseOptions
org.docstr.gwt.GwtPluginExtension.CompilerOptions
- Enclosing class:
- GwtPluginExtension
Nested class for Compiler options
https://www.gwtproject.org/doc/latest/DevGuideCompilingAndDebugging.html#DevGuideCompilerOptions
https://github.com/gwtproject/gwt/blob/main/dev/core/src/com/google/gwt/dev/PrecompileTaskOptionsImpl.java
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract org.gradle.api.provider.Property<Boolean>-[no]checkAssertionsInclude assert statements in compiled output.abstract org.gradle.api.provider.Property<Boolean>-X[no]classMetadataEXPERIMENTAL: Include metadata for some java.lang.Class methods (e.g.abstract org.gradle.api.provider.Property<Boolean>-X[no]closureFormattedOutputabstract org.gradle.api.provider.Property<Boolean>-[no]compileReportCompile a report that tells the "Story of Your Compile".abstract org.gradle.api.provider.Property<Boolean>-[no]draftCompileCompile quickly with minimal optimizations.abstract org.gradle.api.provider.Property<Integer>-XfragmentCountEXPERIMENTAL: Limits of number of fragments using a code splitter that merges split points.abstract org.gradle.api.provider.Property<Integer>-localWorkersThe number of local workers to use when compiling permutationsabstract org.gradle.api.provider.Property<String>-XnamespacePuts most JavaScript globals into namespaces.abstract org.gradle.api.provider.Property<Integer>-optimizeSets the optimization level used by the compiler.abstract org.gradle.api.provider.Property<Boolean>-[no]saveSourceEnables saving source code needed by debuggers.abstract org.gradle.api.file.DirectoryProperty-saveSourceOutputOverrides where source files useful to debuggers will be written.abstract org.gradle.api.provider.Property<Boolean>-strictabstract org.gradle.api.provider.Property<Boolean>-[no]validateOnlyValidate all source code, but do not compile.Methods inherited from class org.docstr.gwt.GwtBaseOptions
getCacheDir, getDeploy, getExcludeJsInteropExports, getExtra, getFailOnError, getGen, getGenerateJsInteropExports, getIncludeJsInteropExports, getIncremental, getLogLevel, getMaxHeapSize, getMethodNameDisplayMode, getMinHeapSize, getModules, getSetProperty, getSourceLevel, getStyle, getWar, getWorkDir
-
Constructor Details
-
CompilerOptions
public CompilerOptions()
-
-
Method Details
-
getClosureFormattedOutput
-X[no]closureFormattedOutputEXPERIMENTAL: Enables Javascript output suitable for post-compilation by Closure Compiler (defaults to OFF)
- Returns:
- The closure formatted output
-
getCompileReport
-[no]compileReportCompile a report that tells the "Story of Your Compile". (defaults to OFF)- Returns:
- The compile report
-
getStrict
-strictEnables strict mode for GWT compiler. (defaults to OFF)
- Returns:
- The strict mode
-
getClassMetadata
-X[no]classMetadataEXPERIMENTAL: Include metadata for some java.lang.Class methods (e.g. getName()). (defaults to ON)- Returns:
- The class metadata
-
getDraftCompile
-[no]draftCompileCompile quickly with minimal optimizations. (defaults to OFF)- Returns:
- The draft compile
-
getCheckAssertions
-[no]checkAssertionsInclude assert statements in compiled output. (defaults to OFF)- Returns:
- The check assertions
-
getFragmentCount
-XfragmentCountEXPERIMENTAL: Limits of number of fragments using a code splitter that merges split points.- Returns:
- The fragment count
-
getNamespace
-XnamespacePuts most JavaScript globals into namespaces. Default: PACKAGE for -draftCompile, otherwise NONE- Returns:
- The namespace
-
getOptimize
-optimizeSets the optimization level used by the compiler. 0=none 9=maximum.- Returns:
- The optimization level
-
getSaveSource
-[no]saveSourceEnables saving source code needed by debuggers. Also see -debugDir. (defaults to OFF)- Returns:
- The save source
-
getValidateOnly
-[no]validateOnlyValidate all source code, but do not compile. (defaults to OFF)- Returns:
- The validate only
-
getLocalWorkers
-localWorkersThe number of local workers to use when compiling permutations- Returns:
- The local workers
-
getSaveSourceOutput
public abstract org.gradle.api.file.DirectoryProperty getSaveSourceOutput()-saveSourceOutputOverrides where source files useful to debuggers will be written. Default: saved with extras.- Returns:
- The save source output
-