|
|||||||||
| 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
public class PythonBaseTask
| Field Summary | |
|---|---|
protected boolean |
failonerror
|
protected int |
optimize
|
protected String |
python
|
protected org.apache.tools.ant.types.Path |
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 | |
|---|---|
PythonBaseTask()
|
|
| Method Summary | |
|---|---|
protected void |
addCommandlineArgs(org.apache.tools.ant.types.Commandline cmdline)
|
protected org.apache.tools.ant.types.Commandline |
createCommandline()
|
protected org.apache.tools.ant.taskdefs.Execute |
createExecute(org.apache.tools.ant.Project project,
org.apache.tools.ant.types.Commandline cmdline,
File workingDirectory)
Create the Execute task to be run. |
protected org.apache.tools.ant.taskdefs.ExecuteStreamHandler |
createStreamHandler()
|
protected void |
execExecuteTask(String failMsg,
org.apache.tools.ant.taskdefs.Execute runner)
Execute the given Execute task. |
protected void |
executeScript(org.apache.tools.ant.Project project,
File workingDirectory,
String failMsg)
Execute the python script. |
protected void |
failureOcurred(String msg)
|
protected String |
fixFilePath(String path)
Convert file paths to be forward slashes for Python. |
protected org.apache.tools.ant.types.Commandline |
getCommandline()
|
String |
getPython()
|
protected void |
prepCommandline()
|
void |
setFailonerror(boolean failonerror)
|
void |
setOptimize(int optimize)
|
protected void |
setOptimizeArgument(org.apache.tools.ant.types.Commandline cmdline)
|
void |
setPython(String python)
|
void |
setPythonpath(org.apache.tools.ant.types.Path pythonpath)
Set the PYTHONPATH as a string |
protected void |
setPythonPathInExecute(org.apache.tools.ant.taskdefs.Execute runner)
Set the PYTHONPATH as an environment variable into the given Execute task |
void |
setPythonpathref(String pathref)
Set the PYTHONPATH as an Ant path reference. |
| Methods inherited from class org.apache.tools.ant.Task |
|---|
bindToOwner, execute, 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 org.apache.tools.ant.types.Path pythonpath
protected String python
protected boolean failonerror
protected int optimize
| Constructor Detail |
|---|
public PythonBaseTask()
| Method Detail |
|---|
protected void setPythonPathInExecute(org.apache.tools.ant.taskdefs.Execute runner)
public void setPythonpath(org.apache.tools.ant.types.Path pythonpath)
pythonpath - The pythonpath to set.public void setPythonpathref(String pathref)
pathref - public String getPython()
public void setPython(String python)
protected String fixFilePath(String path)
public void setFailonerror(boolean failonerror)
protected void executeScript(org.apache.tools.ant.Project project,
File workingDirectory,
String failMsg)
project - - Ant projectworkingDirectory - - Working directory to execute fromfailMsg - - Message to be reported upon execution failure
protected void execExecuteTask(String failMsg,
org.apache.tools.ant.taskdefs.Execute runner)
failMsg - runner -
protected org.apache.tools.ant.taskdefs.Execute createExecute(org.apache.tools.ant.Project project,
org.apache.tools.ant.types.Commandline cmdline,
File workingDirectory)
project - - Ant projectcmdline - - Commandline to be executedworkingDirectory - - Working directory to execute from
protected org.apache.tools.ant.taskdefs.ExecuteStreamHandler createStreamHandler()
protected org.apache.tools.ant.types.Commandline getCommandline()
protected org.apache.tools.ant.types.Commandline createCommandline()
protected void prepCommandline()
protected void addCommandlineArgs(org.apache.tools.ant.types.Commandline cmdline)
protected void failureOcurred(String msg)
public void setOptimize(int optimize)
protected void setOptimizeArgument(org.apache.tools.ant.types.Commandline cmdline)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||