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

trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def compile(project: Project, logger: Logger): Boolean
def jvmVersion: Option[Positioned[Int]]
def prepareProject(project: Project, logger: Logger): Boolean
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

def shutdown(): Unit
override def usesClassDir: Boolean
Definition Classes

Inherited methods

def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product