public interface CmdlineArgumentSpec extends AllArgsProvider, CommandLineArgumentProviders
Specifies the entrypoint and arguments for running something on a JVM.
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
addCommandLineArgumentProviders(Provider<java.util.List<String>> providers)Add lazy-evaluated providers of arguments. |
|
public void |
args(Object args)Add arguments to the entrypoint. |
|
public void |
args(Iterable<?> args)Add arguments to the entrypoint. |
|
public java.util.List<String> |
getArgs()Return list of arguments to the entrypoint. |
|
public void |
setArgs(Iterable<?> args)Replace current arguments with a new set. |
| Methods inherited from class | Name |
|---|---|
interface AllArgsProvider |
getAllArgs, getPreArgs |
interface CommandLineArgumentProviders |
getCommandLineArgumentProviders |
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.Return list of arguments to the entrypoint.
Replace current arguments with a new set.
args - Any arguments resolvable to strings.