Create a new Scalac Compiler addon instance.
Create a new Scalac Compiler addon instance. All parameters can be omitted and set later.
The source files can be given via multiple parameters, sources, srcDir and srcDirs, and will be joined.
The Scala compiler is able to read Java source files in order to resolve dependencies. It will not create class files for read Java files, though. All Java files given or found on the source directories will be read.
The classpath which contains the compiler and its dependencies. (E.g. scala-compiler.jar, scala-reflect.jar, ...)
If not specified, the compiler must be in the SBuild classpath, e.g. by adding it with @classpath annotation.
If fork option is also set to true, this parameter is required.
The classpath is forwarded to the compiler and used to load dependencies of the sources. It must also contain the scala library.
A directory containing Scala (and Java) source files.
If multiple directories are needed, srcDirs parameter can be used.
Multiple directories containing Scala and Java source files.
If only one directory is needed, srcDir parameter can be used for convenience.
The directory, where the compiled class files will be stored. If the directory does not exists, it will be created.
The encoding of the source files.
If true, the compiler enables detailed unchecked (erasure) warnings.
If true , the compiler emit warning and location for usages of deprecated APIs.
If true, the compiler outputs messages about what it is doing.
Target platform for object files. The supported values depend on the used version of the Scalac compiler. Scalac up to 2.9.x supports the following values: jvm-1.5 (default), msil. Scalac 2.10.x also supports jvm-1.6 (default), jvm-1.7 and various others. Please consult the Scalac documentation.
The level of generated debugging info. Supported values: none, source, line, vars (default), notailcalls. "none" generates no debugging info, "source" generates only the source file attribute, "line" generates source and line number information, "vars" generates source, line number and local variable information, "notc" generates all of the above and will not perform tail call optimization.
If true runs the compiler in a separate process.
If not set or set to false, the Scala version of SBuild and the used Scala compiler must be binary compatible.
If you indent to use a different (binary incompatible) Scala version to the one SBuild runs with, you should set it to true.
If true, also the compilerClasspath parameter must be specified.
Additional arguments directly passed to the Scala compiler.
Refer to the scalac manual or inspect scalac -help output.
Source files to be compiled. Since 0.4.0
If true use a temporary file to set the compiler arguments. Since 0.4.0.9000.
Additional arguments given directly to the forked JVM. Will be ignored, if parameter fork is not true. Since 0.4.0.9000.
Path were the compiler looks for source files. Since 0.4.0.9000.
(Since version 0.4.0.9000) Binary compatibility placeholder. Please use the primary constructor.
Additional arguments directly passed to the Scala compiler.
Additional arguments directly passed to the Scala compiler.
Refer to the scalac manual or inspect scalac -help output.
The classpath is forwarded to the compiler and used to load dependencies of the sources.
The classpath is forwarded to the compiler and used to load dependencies of the sources. It must also contain the scala library.
The classpath which contains the compiler and its dependencies.
The classpath which contains the compiler and its dependencies. (E.g. scala-compiler.jar, scala-reflect.jar, ...)
If not specified, the compiler must be in the SBuild classpath, e.g. by adding it with @classpath annotation.
If fork option is also set to true, this parameter is required.
The level of generated debugging info.
The level of generated debugging info. Supported values: none, source, line, vars (default), notailcalls. "none" generates no debugging info, "source" generates only the source file attribute, "line" generates source and line number information, "vars" generates source, line number and local variable information, "notc" generates all of the above and will not perform tail call optimization.
If true , the compiler emit warning and location for usages of deprecated APIs.
The directory, where the compiled class files will be stored.
The directory, where the compiled class files will be stored. If the directory does not exists, it will be created.
The encoding of the source files.
Execute the Scala compiler.
If true runs the compiler in a separate process.
If true runs the compiler in a separate process.
If not set or set to false, the Scala version of SBuild and the used Scala compiler must be binary compatible.
If you indent to use a different (binary incompatible) Scala version to the one SBuild runs with, you should set it to true.
If true, also the compilerClasspath parameter must be specified.
Additional arguments given directly to the forked JVM.
Additional arguments given directly to the forked JVM. Will be ignored, if parameter fork is not true. Since 0.4.0.9000.
Path were the compiler looks for source files.
Path were the compiler looks for source files. Since 0.4.0.9000.
Source files to be compiled.
Source files to be compiled. Since 0.4.0
A directory containing Scala (and Java) source files.
A directory containing Scala (and Java) source files.
If multiple directories are needed, srcDirs parameter can be used.
Multiple directories containing Scala and Java source files.
Multiple directories containing Scala and Java source files.
If only one directory is needed, srcDir parameter can be used for convenience.
Target platform for object files.
Target platform for object files. The supported values depend on the used version of the Scalac compiler. Scalac up to 2.9.x supports the following values: jvm-1.5 (default), msil. Scalac 2.10.x also supports jvm-1.6 (default), jvm-1.7 and various others. Please consult the Scalac documentation.
If true, the compiler enables detailed unchecked (erasure) warnings.
If true use a temporary file to set the compiler arguments.
If true use a temporary file to set the compiler arguments. Since 0.4.0.9000.
If true, the compiler outputs messages about what it is doing.
(scalac: StringAdd).self
(scalac: StringFormat).self
(scalac: ArrowAssoc[Scalac]).x
(Since version 2.10.0) Use leftOfArrow instead
(scalac: Ensuring[Scalac]).x
(Since version 2.10.0) Use resultOfEnsuring instead
The Scala Compiler addon.
The compiler can be configured via constructor parameter or
vars. To compile use Scalac#execute.To easily configure and execute the compiler in one go, see Scalac$#apply.
Example:
0.3.0