object Tasks
- Alphabetic
- By Inheritance
- Tasks
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
def
clean(state: State, targets: List[Project], includeDeps: Boolean): Task[State]
Cleans the previous results of the projects specified in
targets
.Cleans the previous results of the projects specified in
targets
.- state
The current state of Bloop.
- targets
The projects to clean.
- includeDeps
Do not run clean for dependencies.
- returns
The new state of Bloop after cleaning.
-
def
console(state: State, project: Project, noRoot: Boolean): Task[State]
Starts a Scala REPL with the dependencies of
project
on the classpath, includingproject
ifnoRoot
is false, excluding it otherwise.Starts a Scala REPL with the dependencies of
project
on the classpath, includingproject
ifnoRoot
is false, excluding it otherwise.- state
The current state of Bloop.
- project
The project for which to start the REPL.
- noRoot
If false, include
project
on the classpath. Do not include it otherwise.- returns
The new state of Bloop.
-
def
findMainClasses(state: State, project: Project): List[String]
Finds the main classes in
project
.Finds the main classes in
project
.- state
The current state of Bloop.
- project
The project for which to find the main classes.
- returns
An array containing all the main classes that were detected.
- def reasonOfInvalidPath(output: Path, extension: String): Option[String]
- def reasonOfInvalidPath(output: Path): Option[String]
-
def
runJVM(state: State, project: Project, javaEnv: JavaEnv, cwd: AbsolutePath, fqn: String, args: Array[String], skipJargs: Boolean, mode: RunMode): Task[State]
Runs the fully qualified class
className
inproject
.Runs the fully qualified class
className
inproject
.- state
The current state of Bloop.
- project
The project to run.
- cwd
The directory in which to start the forked JVM.
- fqn
The fully qualified name of the main class.
- args
The arguments to pass to the main class.
- skipJargs
Skip the interpretation of
-J
options inargs
.- mode
The run mode.
-
def
runNativeOrJs(state: State, project: Project, cwd: AbsolutePath, fqn: String, args: Array[String]): Task[State]
Runs the fully qualified class
className
in a Native or JavaScriptproject
.Runs the fully qualified class
className
in a Native or JavaScriptproject
.- state
The current state of Bloop.
- project
The project to run.
- cwd
The directory in which to start the forked run process.
- fqn
The fully qualified name of the main class.
- args
The arguments to pass to the main class.
-
def
test(state: State, projectsToTest: List[Project], userTestOptions: List[String], testFilter: (String) ⇒ Boolean, testEventHandler: TestSuiteEventHandler, failIfNoTestFrameworks: Boolean, runInParallel: Boolean = false, mode: RunMode): Task[State]
Run the tests for all projects in
projectsToTest
.Run the tests for all projects in
projectsToTest
.The projects have been already compiled.
- state
The current state of Bloop.
- projectsToTest
The projects we want to run tests for.
- testFilter
A function that filters fully qualified test class names.
- returns
A new state after testing.