|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.shared.utils.cli.shell.Shell
public class Shell
Class that abstracts the Shell functionality, with subclases for shells that behave particularly, like
command.com
cmd.exe
Constructor Summary | |
---|---|
Shell()
|
Method Summary | |
---|---|
Object |
clone()
|
String |
getExecutable()
|
List<String> |
getShellCommandLine(String... arguments)
Get the full command line to execute, including shell command, shell arguments, executable and executable arguments |
File |
getWorkingDirectory()
|
protected boolean |
isDoubleQuotedArgumentEscaped()
|
protected boolean |
isSingleQuotedArgumentEscaped()
|
void |
setExecutable(String executable)
Sets the executable to run. |
void |
setQuotedArgumentsEnabled(boolean quotedArgumentsEnabled)
|
void |
setWorkingDirectory(File workingDir)
Sets execution directory. |
void |
setWorkingDirectory(String path)
Sets execution directory. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Shell()
Method Detail |
---|
protected boolean isDoubleQuotedArgumentEscaped()
protected boolean isSingleQuotedArgumentEscaped()
public List<String> getShellCommandLine(String... arguments)
arguments
- arguments for the executable, not the shell
public void setQuotedArgumentsEnabled(boolean quotedArgumentsEnabled)
public void setExecutable(String executable)
public String getExecutable()
public void setWorkingDirectory(String path)
public void setWorkingDirectory(File workingDir)
public File getWorkingDirectory()
public Object clone()
clone
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |