Class GwtPluginExtension.CompilerOptions

java.lang.Object
org.docstr.gwt.GwtBaseOptions
org.docstr.gwt.GwtPluginExtension.CompilerOptions
Enclosing class:
GwtPluginExtension

public abstract static class GwtPluginExtension.CompilerOptions extends GwtBaseOptions
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 Details

    • CompilerOptions

      public CompilerOptions()
  • Method Details

    • getClosureFormattedOutput

      public abstract org.gradle.api.provider.Property<Boolean> getClosureFormattedOutput()
      -X[no]closureFormattedOutput

      EXPERIMENTAL: Enables Javascript output suitable for post-compilation by Closure Compiler (defaults to OFF)

      Returns:
      The closure formatted output
    • getCompileReport

      public abstract org.gradle.api.provider.Property<Boolean> getCompileReport()
      -[no]compileReport Compile a report that tells the "Story of Your Compile". (defaults to OFF)
      Returns:
      The compile report
    • getStrict

      public abstract org.gradle.api.provider.Property<Boolean> getStrict()
      -strict

      Enables strict mode for GWT compiler. (defaults to OFF)

      Returns:
      The strict mode
    • getClassMetadata

      public abstract org.gradle.api.provider.Property<Boolean> getClassMetadata()
      -X[no]classMetadata EXPERIMENTAL: Include metadata for some java.lang.Class methods (e.g. getName()). (defaults to ON)
      Returns:
      The class metadata
    • getDraftCompile

      public abstract org.gradle.api.provider.Property<Boolean> getDraftCompile()
      -[no]draftCompile Compile quickly with minimal optimizations. (defaults to OFF)
      Returns:
      The draft compile
    • getCheckAssertions

      public abstract org.gradle.api.provider.Property<Boolean> getCheckAssertions()
      -[no]checkAssertions Include assert statements in compiled output. (defaults to OFF)
      Returns:
      The check assertions
    • getFragmentCount

      public abstract org.gradle.api.provider.Property<Integer> getFragmentCount()
      -XfragmentCount EXPERIMENTAL: Limits of number of fragments using a code splitter that merges split points.
      Returns:
      The fragment count
    • getNamespace

      public abstract org.gradle.api.provider.Property<String> getNamespace()
      -Xnamespace Puts most JavaScript globals into namespaces. Default: PACKAGE for -draftCompile, otherwise NONE
      Returns:
      The namespace
    • getOptimize

      public abstract org.gradle.api.provider.Property<Integer> getOptimize()
      -optimize Sets the optimization level used by the compiler. 0=none 9=maximum.
      Returns:
      The optimization level
    • getSaveSource

      public abstract org.gradle.api.provider.Property<Boolean> getSaveSource()
      -[no]saveSource Enables saving source code needed by debuggers. Also see -debugDir. (defaults to OFF)
      Returns:
      The save source
    • getValidateOnly

      public abstract org.gradle.api.provider.Property<Boolean> getValidateOnly()
      -[no]validateOnly Validate all source code, but do not compile. (defaults to OFF)
      Returns:
      The validate only
    • getLocalWorkers

      public abstract org.gradle.api.provider.Property<Integer> getLocalWorkers()
      -localWorkers The number of local workers to use when compiling permutations
      Returns:
      The local workers
    • getSaveSourceOutput

      public abstract org.gradle.api.file.DirectoryProperty getSaveSourceOutput()
      -saveSourceOutput Overrides where source files useful to debuggers will be written. Default: saved with extras.
      Returns:
      The save source output