Class BourneShell
java.lang.Object
org.apache.maven.shared.utils.cli.shell.Shell
org.apache.maven.shared.utils.cli.shell.BourneShell
- All Implemented Interfaces:
Cloneable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
String[]
Get the shell argumentsprotected String
quoteOneItem
(String path, boolean isExecutable) Unify quotes in a path for the Bourne Shell.Methods inherited from class org.apache.maven.shared.utils.cli.shell.Shell
clone, getArgumentQuoteDelimiter, getCommandLine, getEscapeChars, getExecutableQuoteDelimiter, getQuotingTriggerChars, getRawCommandLine, getShellCommand, getShellCommandLine, getWorkingDirectory, getWorkingDirectoryAsString, isDoubleQuotedArgumentEscaped, isDoubleQuotedExecutableEscaped, isQuotedArgumentsEnabled, isQuotedExecutableEnabled, isSingleQuotedArgumentEscaped, isSingleQuotedExecutableEscaped, isUnconditionalQuoting, setArgumentQuoteDelimiter, setExecutable, setExecutableQuoteDelimiter, setQuotedArgumentsEnabled, setQuotedExecutableEnabled, setShellArgs, setShellCommand, setSingleQuotedArgumentEscaped, setSingleQuotedExecutableEscaped, setUnconditionalQuoting, setWorkingDirectory, setWorkingDirectory
-
Constructor Details
-
BourneShell
public BourneShell()Create instance of BourneShell.
-
-
Method Details
-
getExecutable
- Overrides:
getExecutable
in classShell
- Returns:
- The executable.
-
getShellArgsList
- Overrides:
getShellArgsList
in classShell
-
getShellArgs
Get the shell arguments- Overrides:
getShellArgs
in classShell
- Returns:
- the arguments
-
getExecutionPreamble
- Overrides:
getExecutionPreamble
in classShell
-
quoteOneItem
Unify quotes in a path for the Bourne Shell.
BourneShell.quoteOneItem(null) = null BourneShell.quoteOneItem("") = '' BourneShell.quoteOneItem("/test/quotedpath'abc") = '/test/quotedpath'"'"'abc' BourneShell.quoteOneItem("/test/quoted path'abc") = '/test/quoted pat'"'"'habc' BourneShell.quoteOneItem("/test/quotedpath\"abc") = '/test/quotedpath"abc' BourneShell.quoteOneItem("/test/quoted path\"abc") = '/test/quoted path"abc' BourneShell.quoteOneItem("/test/quotedpath\"'abc") = '/test/quotedpath"'"'"'abc' BourneShell.quoteOneItem("/test/quoted path\"'abc") = '/test/quoted path"'"'"'abc'
- Overrides:
quoteOneItem
in classShell
- Parameters:
path
- not null path.- Returns:
- the path unified correctly for the Bourne shell.
-