jenkins.plugins.shiningpanda.command
Class PythonCommand
java.lang.Object
jenkins.plugins.shiningpanda.command.Command
jenkins.plugins.shiningpanda.command.PythonCommand
public class PythonCommand
- extends Command
Constructor Summary |
protected |
PythonCommand(boolean isUnix,
String executable,
String command,
boolean ignoreExitCode)
Constructor using fields. |
Method Summary |
protected hudson.util.ArgumentListBuilder |
getArguments(hudson.FilePath script)
Get the command line to execute. |
protected String |
getContents()
Get the content of the script file |
protected String |
getExtension()
Get the extension of the script file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PythonCommand
protected PythonCommand(boolean isUnix,
String executable,
String command,
boolean ignoreExitCode)
- Constructor using fields.
- Parameters:
isUnix
- Is this on UNIX?executable
- The PYTHON executablecommand
- The content of the execution scriptignoreExitCode
- Is exit code ignored?
getExtension
protected String getExtension()
- Description copied from class:
Command
- Get the extension of the script file.
- Specified by:
getExtension
in class Command
- Returns:
- The extension
getContents
protected String getContents()
- Description copied from class:
Command
- Get the content of the script file
- Specified by:
getContents
in class Command
- Returns:
- The content of the file
getArguments
protected hudson.util.ArgumentListBuilder getArguments(hudson.FilePath script)
- Description copied from class:
Command
- Get the command line to execute.
- Specified by:
getArguments
in class Command
- Parameters:
script
- The script to execute
- Returns:
- The arguments
Copyright © 2004-2012. All Rights Reserved.