jenkins.plugins.shiningpanda.command
Class PythonCommand

java.lang.Object
  extended by jenkins.plugins.shiningpanda.command.Command
      extended by 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 jenkins.plugins.shiningpanda.command.Command
createScriptFile, get, getCommand, getEnvironment, isExitCodeIgnored, launch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PythonCommand

protected PythonCommand(boolean isUnix,
                        String executable,
                        String command,
                        boolean ignoreExitCode)
Constructor using fields.

Parameters:
isUnix - Is this on UNIX?
executable - The PYTHON executable
command - The content of the execution script
ignoreExitCode - Is exit code ignored?
Method Detail

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.