Module io.inverno.tool.buildtools
Package io.inverno.tool.buildtools
Interface ExecTask<U,V extends ExecTask<U,V>>
- Type Parameters:
U
- the type returned by the task executionV
- the type of the task
- All Superinterfaces:
Task<U,
V>
Base execution task.
- Since:
- 1.4
- Author:
- Jeremy Kuhn
-
Method Summary
Modifier and TypeMethodDescriptionaddUnnamedModules
(boolean addUnnamedModules) Sets whether unnamed modules should be added when executing the application.Sets the arguments to pass to the application.Sets the main class to be executed by the task.redirectError
(ProcessBuilder.Redirect redirectError) Sets where to redirect the application error stream.redirectInput
(ProcessBuilder.Redirect redirectInput) Sets where to redirect the application input stream.redirectOutput
(ProcessBuilder.Redirect redirectOutput) Sets where to redirect the application output stream.Sets the VM options to pass to the application.workingPath
(Path workingPath) Sets the working path of the application.Methods inherited from interface io.inverno.tool.buildtools.Task
doOnComplete, execute
-
Method Details
-
mainClass
Sets the main class to be executed by the task.
- Parameters:
mainClass
- the canonical name of the main class in the project module- Returns:
- the task
-
arguments
Sets the arguments to pass to the application.
- Parameters:
arguments
- the application arguments- Returns:
- the task
-
vmOptions
Sets the VM options to pass to the application.
- Parameters:
vmOptions
- the VM options- Returns:
- the task
-
workingPath
Sets the working path of the application.
- Parameters:
workingPath
- the working path- Returns:
- the task
-
addUnnamedModules
Sets whether unnamed modules should be added when executing the application.
Defaults to true.
- Parameters:
addUnnamedModules
- true to add unnamed modules, false otherwise- Returns:
- the task
-
redirectInput
Sets where to redirect the application input stream.
Defaults to
ProcessBuilder.Redirect.INHERIT
.- Parameters:
redirectInput
- the input source- Returns:
- the task
-
redirectOutput
Sets where to redirect the application output stream.
Defaults to
ProcessBuilder.Redirect.INHERIT
.- Parameters:
redirectOutput
- the output destination- Returns:
- the task
-
redirectError
Sets where to redirect the application error stream.
Defaults to
ProcessBuilder.Redirect.INHERIT
.- Parameters:
redirectError
- the error destination- Returns:
- the task
-