Class BaseScalaCompileOptions

    • Constructor Detail

      • BaseScalaCompileOptions

        public BaseScalaCompileOptions()
    • Method Detail

      • getObjectFactory

        @Inject
        protected ObjectFactory getObjectFactory()
      • isFailOnError

        @Input
        public boolean isFailOnError()
        Fail the build on compilation errors.
      • setFailOnError

        public void setFailOnError​(boolean failOnError)
      • isDeprecation

        @Console
        public boolean isDeprecation()
        Generate deprecation information.
      • setDeprecation

        public void setDeprecation​(boolean deprecation)
      • isUnchecked

        @Console
        public boolean isUnchecked()
        Generate unchecked information.
      • setUnchecked

        public void setUnchecked​(boolean unchecked)
      • getDebugLevel

        @Nullable
        @Optional
        @Input
        public java.lang.String getDebugLevel()
        Generate debugging information. Legal values: none, source, line, vars, notailcalls
      • setDebugLevel

        public void setDebugLevel​(@Nullable
                                  java.lang.String debugLevel)
      • isOptimize

        @Input
        public boolean isOptimize()
        Run optimizations.
      • setOptimize

        public void setOptimize​(boolean optimize)
      • getEncoding

        @Nullable
        @Optional
        @Input
        public java.lang.String getEncoding()
        Encoding of source files.
      • setEncoding

        public void setEncoding​(@Nullable
                                java.lang.String encoding)
      • isForce

        @Input
        public boolean isForce()
        Whether to force the compilation of all files. Legal values: - false (only compile modified files) - true (always recompile all files)
      • setForce

        public void setForce​(boolean force)
      • getAdditionalParameters

        @Optional
        @Input
        public java.util.List<java.lang.String> getAdditionalParameters()
        Additional parameters passed to the compiler. Each parameter must start with '-'.
        Returns:
        The list of additional parameters.
      • setAdditionalParameters

        public void setAdditionalParameters​(java.util.List<java.lang.String> additionalParameters)
        Sets the additional parameters.

        Setting this property will clear any previously set additional parameters.

      • isListFiles

        @Console
        public boolean isListFiles()
        List files to be compiled.
      • setListFiles

        public void setListFiles​(boolean listFiles)
      • getLoggingLevel

        @Console
        public java.lang.String getLoggingLevel()
        Specifies the amount of logging. Legal values: none, verbose, debug
      • setLoggingLevel

        public void setLoggingLevel​(java.lang.String loggingLevel)
      • getLoggingPhases

        @Console
        public java.util.List<java.lang.String> getLoggingPhases()
        Phases of the compiler to log. Legal values: namer, typer, pickler, uncurry, tailcalls, transmatch, explicitouter, erasure, lambdalift, flatten, constructors, mixin, icode, jvm, terminal.
      • setLoggingPhases

        public void setLoggingPhases​(java.util.List<java.lang.String> loggingPhases)
      • getForkOptions

        public ScalaForkOptions getForkOptions()
        Options for running the Scala compiler in a separate process.
      • getIncrementalOptions

        public IncrementalCompileOptions getIncrementalOptions()
        Options for incremental compilation of Scala code.