abstract class DefaultCommand : Command
Default implementation of Command using annotation to define itself. It is highly recommended to extend this class when implementing a command. It defines two hidden Options to create system properties (-Dkey=value) and a way to configure the current working directory.
DefaultCommand()
Default implementation of Command using annotation to define itself. It is highly recommended to extend this class when implementing a command. It defines two hidden Options to create system properties ( |
open fun getCwd(): File |
|
open fun out(): PrintStream |
|
open fun setCwd(cwd: File): Unit
Sets the current working directory. This method is called when the user configure the "cwd" option as follows: |
|
open fun setSystemProps(props: MutableList<String>): Unit
Gets system properties passed in the user command line. The user can configure system properties using |
|
open fun setUp(ec: ExecutionContext): Unit |
|
open fun tearDown(): Unit |