final class CompilerArguments extends AnyRef
Construct the list of compiler arguments that are passed to the Scala
compiler based on the current xsbti.compile.ScalaInstance
and the
user-defined xsbti.compile.ClasspathOptions
.
This is required because Scala compiler arguments change depending on the Scala version, e.g. the jars for the Scala library and the Scala compiler have to be present in the classpath and match the Scala version of the current Scala compiler.
The Scala home property (scala.home
) must be unset because Scala puts
jars in that directory and pass it in as bootclasspath
. Therefore, the
contents of this property are managed by this implementation and it's
strictly forbidden that the client manages this property.
- Alphabetic
- By Inheritance
- CompilerArguments
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
CompilerArguments(scalaInstance: xsbti.compile.ScalaInstance, cpOptions: ClasspathOptions)
- scalaInstance
The instance that defines the Scala version and the options that depend on it (e.g. Scala library JAR).
- cpOptions
The classpath options for the Scala compiler.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def bootClasspath(addLibrary: Boolean): Seq[Path]
- def bootClasspathFor(classpath: Seq[Path]): Seq[Path]
- def bootClasspathOption(addLibrary: Boolean): Seq[String]
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
createBootClasspath(addLibrary: Boolean): String
Return the Scala library to the boot classpath if
addLibrary
is true.Return the Scala library to the boot classpath if
addLibrary
is true.- addLibrary
Flag to return the Scala library.
- def createBootClasspathFor(classpath: Seq[Path]): String
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def extClasspath: Seq[Path]
- def filterLibrary(classpath: Seq[Path]): Seq[Path]
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
finishClasspath(classpath: Seq[Path]): Seq[Path]
Finish the classpath by adding extra Scala classpath entries if required.
Finish the classpath by adding extra Scala classpath entries if required.
- classpath
The classpath seed to be modified.
- returns
A classpath ready to be passed to the Scala compiler.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hasLibrary(classpath: Seq[Path]): Boolean
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def makeArguments(sources: Seq[Path], classpath: Seq[Path], options: Seq[String]): Seq[String]
- def makeArguments(sources: Seq[Path], classpath: Seq[Path], output: xsbti.compile.Output, options: Seq[String]): Seq[String]
- def makeArguments(sources: Seq[Path], classpath: Seq[Path], output: Option[Path], options: Seq[String]): Seq[String]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()