mirror of https://github.com/sbt/sbt.git
35 lines
1.0 KiB
Java
35 lines
1.0 KiB
Java
|
|
package xsbti.compile;
|
||
|
|
|
||
|
|
import java.io.File;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Defines Scala instance, which is a reference version String, a unique version String, a set of jars, and a class loader for a Scala version.
|
||
|
|
*
|
||
|
|
* Note that in this API a 'jar' can actually be any valid classpath entry.
|
||
|
|
*/
|
||
|
|
public interface ScalaInstance
|
||
|
|
{
|
||
|
|
/** The version used to refer to this Scala version.
|
||
|
|
* It need not be unique and can be a dynamic version like 2.10.0-SNAPSHOT.
|
||
|
|
*/
|
||
|
|
String version();
|
||
|
|
|
||
|
|
/** A class loader providing access to the classes and resources in the library and compiler jars. */
|
||
|
|
ClassLoader loader();
|
||
|
|
|
||
|
|
/** The library jar file.*/
|
||
|
|
File libraryJar();
|
||
|
|
|
||
|
|
/** The compiler jar file.*/
|
||
|
|
File compilerJar();
|
||
|
|
|
||
|
|
/** Jars provided by this Scala instance other than the compiler and library jars. */
|
||
|
|
File[] extraJars();
|
||
|
|
|
||
|
|
/** All jar files provided by this Scala instance.*/
|
||
|
|
File[] jars();
|
||
|
|
|
||
|
|
/** The unique identifier for this Scala instance. An implementation should usually obtain this from the compiler.properties file in the compiler jar. */
|
||
|
|
String actualVersion();
|
||
|
|
}
|