|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.pyant.tasks.PythonBaseTask
org.pyant.tasks.PythonRunTask
public class PythonRunTask
| Field Summary | |
|---|---|
protected ArrayList |
arguments
|
protected String |
command
|
protected File |
dir
|
protected File |
scriptFile
|
| Fields inherited from class org.pyant.tasks.PythonBaseTask |
|---|
failonerror, optimize, python, pythonpath |
| Fields inherited from class org.apache.tools.ant.Task |
|---|
target, taskName, taskType, wrapper |
| Fields inherited from class org.apache.tools.ant.ProjectComponent |
|---|
description, location, project |
| Constructor Summary | |
|---|---|
PythonRunTask()
|
|
| Method Summary | |
|---|---|
protected void |
addCommandlineArgs(org.apache.tools.ant.types.Commandline cmdline)
|
org.apache.tools.ant.types.Commandline.Argument |
createArg()
|
void |
execute()
|
void |
setCommand(String command)
|
void |
setDir(File dir)
Set the working directory the script is executed from. |
void |
setScript(File script)
|
| Methods inherited from class org.pyant.tasks.PythonBaseTask |
|---|
createCommandline, createExecute, createStreamHandler, execExecuteTask, executeScript, failureOcurred, fixFilePath, getCommandline, getPython, prepCommandline, setFailonerror, setOptimize, setOptimizeArgument, setPython, setPythonpath, setPythonPathInExecute, setPythonpathref |
| Methods inherited from class org.apache.tools.ant.Task |
|---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
| Methods inherited from class org.apache.tools.ant.ProjectComponent |
|---|
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected File scriptFile
protected ArrayList arguments
protected String command
protected File dir
| Constructor Detail |
|---|
public PythonRunTask()
| Method Detail |
|---|
public void execute()
execute in class org.apache.tools.ant.Taskpublic void setScript(File script)
public org.apache.tools.ant.types.Commandline.Argument createArg()
public void setCommand(String command)
public void setDir(File dir)
dir - protected void addCommandlineArgs(org.apache.tools.ant.types.Commandline cmdline)
addCommandlineArgs in class PythonBaseTask
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||