public class Shell
extends java.lang.Object
implements java.lang.Cloneable
Class that abstracts the Shell functionality, with subclases for shells that behave particularly, like
command.comcmd.exe| Constructor and Description |
|---|
Shell() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
java.lang.String |
getExecutable() |
java.util.List<java.lang.String> |
getShellCommandLine(java.lang.String... arguments)
Get the full command line to execute, including shell command, shell arguments,
executable and executable arguments
|
java.io.File |
getWorkingDirectory() |
protected boolean |
isDoubleQuotedArgumentEscaped() |
protected boolean |
isSingleQuotedArgumentEscaped() |
void |
setExecutable(java.lang.String executable)
Sets the executable to run.
|
void |
setQuotedArgumentsEnabled(boolean quotedArgumentsEnabled) |
void |
setWorkingDirectory(java.io.File workingDir)
Sets execution directory.
|
void |
setWorkingDirectory(java.lang.String path)
Sets execution directory.
|
protected boolean isDoubleQuotedArgumentEscaped()
protected boolean isSingleQuotedArgumentEscaped()
public java.util.List<java.lang.String> getShellCommandLine(java.lang.String... arguments)
arguments - arguments for the executable, not the shellpublic void setQuotedArgumentsEnabled(boolean quotedArgumentsEnabled)
public void setExecutable(java.lang.String executable)
public java.lang.String getExecutable()
public void setWorkingDirectory(java.lang.String path)
public void setWorkingDirectory(java.io.File workingDir)
public java.io.File getWorkingDirectory()
public java.lang.Object clone()
clone in class java.lang.ObjectCopyright © 2013. All Rights Reserved.