SimpleScalaCompiler
final case class SimpleScalaCompiler(defaultJavaCommand: String, defaultJavaOptions: Seq[String], scaladoc: Boolean) extends ScalaCompiler
A simple Scala compiler designed to handle scaladocs, Java projects & get scalac
outputs.
- Value parameters:
- defaultJavaCommand
the default
java
command to be used- defaultJavaOptions
the default jvm options to be used with the
java
command- scaladoc
a flag for setting whether this compiler will handle scaladocs
Value members
Concrete methods
def runSimpleScalacLike(scalaVersion: String, javaHomeOpt: Option[Path], javacOptions: Seq[String], scalacOptions: Seq[String], fullClassPath: Seq[Path], compilerClassPath: Seq[Path], logger: Logger): Int
Run a synthetic (created in runtime) scalac
as a JVM process with minimal parameters. (i.e.
to print scalac
help)
Run a synthetic (created in runtime) scalac
as a JVM process with minimal parameters. (i.e.
to print scalac
help)
- Value parameters:
- compilerClassPath
classpath of the compiler itself
- fullClassPath
classpath to be passed to the compiler (optional)
- javaHomeOpt
Java home path (optional)
- javacOptions
options to be passed for the Java compiler
- logger
logger
- scalaVersion
Scala version for which
scalac
is to be created- scalacOptions
options to be passed for the Scala compiler
- Returns:
compiler process exit code