|
||||||||||
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
jenkins.plugins.shiningpanda.command.UnixCommand
public class UnixCommand
Field Summary |
---|
Fields inherited from class jenkins.plugins.shiningpanda.command.ShellCommand |
---|
convert |
Constructor Summary | |
---|---|
protected |
UnixCommand(String command,
boolean ignoreExitCode,
boolean convert)
Constructor using fields. |
Method Summary | |
---|---|
protected static String |
addCrForNonASCII(String contents)
Add a leading line for old shell compatibility. |
protected hudson.util.ArgumentListBuilder |
getArguments(hudson.FilePath script)
Get the command line to execute. |
protected String |
getExtension()
Get the extension of the script file. |
protected static String |
getShell(hudson.remoting.VirtualChannel channel)
Get a shell |
protected String |
getSourceContent()
Get the script content before potential conversions. |
protected String |
getSourceSeparator()
Get the separator to replace during conversion. |
protected Pattern |
getSourceVariable()
Get the variable pattern. |
protected String |
getTargetSeparator()
Get the separator. |
protected String |
getTargetVariable()
Get the variable replacement pattern. |
Methods inherited from class jenkins.plugins.shiningpanda.command.ShellCommand |
---|
getContents, getEnvironment |
Methods inherited from class jenkins.plugins.shiningpanda.command.Command |
---|
createScriptFile, get, getCommand, isExitCodeIgnored, launch |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected UnixCommand(String command, boolean ignoreExitCode, boolean convert)
command
- The content of the execution scriptignoreExitCode
- Is exit code ignored?convert
- Convert batch to shellMethod Detail |
---|
protected String getExtension()
Command
getExtension
in class Command
protected String getSourceContent()
ShellCommand
getSourceContent
in class ShellCommand
protected String getSourceSeparator()
ShellCommand
getSourceSeparator
in class ShellCommand
protected String getTargetSeparator()
ShellCommand
getTargetSeparator
in class ShellCommand
protected Pattern getSourceVariable()
ShellCommand
getSourceVariable
in class ShellCommand
protected String getTargetVariable()
ShellCommand
getTargetVariable
in class ShellCommand
protected hudson.util.ArgumentListBuilder getArguments(hudson.FilePath script)
Command
getArguments
in class Command
script
- The script to execute
protected static String addCrForNonASCII(String contents)
contents
- The string to fix
protected static String getShell(hudson.remoting.VirtualChannel channel)
channel
- The channel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |