Class CmdParameters
java.lang.Object
org.nuxeo.ecm.platform.commandline.executor.api.CmdParameters
- All Implemented Interfaces:
Serializable
Wraps command parameters (String or File path, or a list of values that will be expanded as separate parameters).
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A parameter value holding either a single String or a list of Strings. -
Constructor Summary
ConstructorDescriptionIt is recommended to use the CmdParameters instance returned byCommandLineExecutorService.getDefaultCmdParameters()
which is initialized with a few common parameters. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addNamedParameter
(String name, File file) void
addNamedParameter
(String name, String value) void
addNamedParameter
(String name, List<String> values) getParameter
(String name)
-
Constructor Details
-
CmdParameters
public CmdParameters()It is recommended to use the CmdParameters instance returned byCommandLineExecutorService.getDefaultCmdParameters()
which is initialized with a few common parameters.
-
-
Method Details
-
addNamedParameter
-
addNamedParameter
-
addNamedParameter
- Since:
- 7.10
-
getParameter
- Since:
- 7.10
-
getParameters
- Since:
- 7.1
-