Package ru.akman.maven.plugins
Class CommandLineBuilder
java.lang.Object
ru.akman.maven.plugins.CommandLineBuilder
CommandLine builder is a wrapper added group of agruments to an option.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.codehaus.plexus.util.cli.Commandline
Build command line.Build list of options.org.codehaus.plexus.util.cli.Arg
Create a new agrument and a new option for it, then add created argument to this option.Create a new option (group of arguments).void
setExecutable
(String executable) Set executable.
-
Constructor Details
-
CommandLineBuilder
public CommandLineBuilder()Default constructor.
-
-
Method Details
-
setExecutable
Set executable.- Parameters:
executable
- the executable path
-
createOpt
Create a new option (group of arguments).- Returns:
- created empty option
-
createArg
public org.codehaus.plexus.util.cli.Arg createArg()Create a new agrument and a new option for it, then add created argument to this option.- Returns:
- created option with added argument
-
buildCommandLine
public org.codehaus.plexus.util.cli.Commandline buildCommandLine()Build command line.- Returns:
- builded command line
-
buildOptionList
Build list of options.- Returns:
- builded option list
-