public abstract class ShellCommand extends Command
Modifier and Type | Field and Description |
---|---|
protected boolean |
convert
Convert command to match platform specificities
|
Modifier | Constructor and Description |
---|---|
protected |
ShellCommand(String command,
boolean ignoreExitCode,
boolean convert)
Constructor using fields.
|
Modifier and Type | Method and Description |
---|---|
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.
|
createScriptFile, get, getArguments, getCommand, getExtension, isExitCodeIgnored, launch
protected ShellCommand(String command, boolean ignoreExitCode, boolean convert)
command
- The content of the execution scriptignoreExitCode
- Is exit code ignored?convert
- Convert batch to shellprotected 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 environmentprotected final String getContents()
Command
getContents
in class Command
Copyright © 2004-2018. All Rights Reserved.