public interface Launcher
| Modifier and Type | Field and Description |
|---|---|
static int |
InterfaceVersion |
| Modifier and Type | Method and Description |
|---|---|
AppProvider |
app(ApplicationID id,
java.lang.String version)
returns an `AppProvider` which is able to resolve an application
and instantiate its `xsbti.Main` in a new classloader.
|
Repository[] |
appRepositories()
These are the repositories configured by this launcher
which should be used by the application when resolving
further artifacts.
|
java.io.File |
bootDirectory()
Value of the `sbt.boot.dir` property, or the default
boot configuration defined in `boot.directory`.
|
java.lang.String[] |
checksums()
An array of the checksums that should be checked when retreiving artifacts.
|
ScalaProvider |
getScala(java.lang.String version) |
ScalaProvider |
getScala(java.lang.String version,
java.lang.String reason) |
ScalaProvider |
getScala(java.lang.String version,
java.lang.String reason,
java.lang.String scalaOrg) |
GlobalLock |
globalLock()
Return the global lock for interacting with the file system.
|
boolean |
isOverrideRepositories()
The user has configured the launcher with the only repositories
it wants to use for this applciation.
|
java.io.File |
ivyHome()
The value of `ivy.ivy-home` of the boot properties file.
|
Repository[] |
ivyRepositories()
Configured launcher repositories.
|
java.lang.ClassLoader |
topLoader()
This returns the "top" classloader for a launched application.
|
static final int InterfaceVersion
ScalaProvider getScala(java.lang.String version)
ScalaProvider getScala(java.lang.String version, java.lang.String reason)
ScalaProvider getScala(java.lang.String version, java.lang.String reason, java.lang.String scalaOrg)
AppProvider app(ApplicationID id, java.lang.String version)
id - The artifact coordinates of the application.version - The version to resolvejava.lang.ClassLoader topLoader()
GlobalLock globalLock()
java.io.File bootDirectory()
Repository[] ivyRepositories()
Repository[] appRepositories()
boolean isOverrideRepositories()
java.io.File ivyHome()
java.lang.String[] checksums()