|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjenkins.plugins.shiningpanda.command.Command
jenkins.plugins.shiningpanda.command.ShellCommand
public abstract class ShellCommand
Field Summary | |
---|---|
protected boolean |
convert
Convert command to match platform specificities |
Constructor Summary | |
---|---|
protected |
ShellCommand(String command,
boolean ignoreExitCode,
boolean convert)
Constructor using fields. |
Method Summary | |
---|---|
protected String |
getContents()
Get the content of the script file |
protected hudson.EnvVars |
getEnvironment(hudson.FilePath pwd,
hudson.EnvVars environment)
Be able to have a late environment processing. |
protected abstract String |
getSourceContent()
Get the script content before potential conversions. |
protected abstract String |
getSourceSeparator()
Get the separator to replace during conversion. |
protected abstract Pattern |
getSourceVariable()
Get the variable pattern. |
protected abstract String |
getTargetSeparator()
Get the separator. |
protected abstract String |
getTargetVariable()
Get the variable replacement pattern. |
Methods inherited from class jenkins.plugins.shiningpanda.command.Command |
---|
createScriptFile, get, getArguments, getCommand, getExtension, isExitCodeIgnored, launch |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean convert
Constructor Detail |
---|
protected ShellCommand(String command, boolean ignoreExitCode, boolean convert)
command
- The content of the execution scriptignoreExitCode
- Is exit code ignored?convert
- Convert batch to shellMethod Detail |
---|
protected abstract String getSourceContent()
protected abstract String getSourceSeparator()
protected abstract String getTargetSeparator()
protected abstract Pattern getSourceVariable()
protected abstract String getTargetVariable()
protected hudson.EnvVars getEnvironment(hudson.FilePath pwd, hudson.EnvVars environment)
Command
getEnvironment
in class Command
pwd
- The working directoryenvironment
- The environment
protected final String getContents()
Command
getContents
in class Command
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |