Specifies the entrypoint and arguments for running something on a JVM.
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
addCommandLineArgumentProviders(Provider<java.util.List<String>>... providers)Add lazy-evaluated providers of arguments. |
|
void |
args(Object... args)Add arguments to the entrypoint. |
|
void |
args(Iterable<?> args)Add arguments to the entrypoint. |
|
Provider<java.util.List<String>> |
getAllArgs()All defined arguments, plus all arguments providers via the command-line argument providers. |
|
java.util.List<String> |
getArgs()Return list of arguments to the entrypoint. |
|
java.util.List<Provider<java.util.List<String>>> |
getCommandLineArgumentProviders()Get current list of command-line argument providers. |
|
void |
setArgs(Iterable<?> args)Replace current arguments with a new set. |
| Methods inherited from class | Name |
|---|---|
interface AllArgsProvider |
getAllArgs, getPreArgs |
Add lazy-evaluated providers of arguments.
providers - One or more providers or string lists.Add arguments to the entrypoint.
args - Any arguments resolvable to strings.Add arguments to the entrypoint.
args - Any arguments resolvable to strings.All defined arguments, plus all arguments providers via the command-line argument providers.
Return list of arguments to the entrypoint.
Get current list of command-line argument providers.
Replace current arguments with a new set.
args - Any arguments resolvable to strings.