org.pyant.tasks
Class PythonRunTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.pyant.tasks.PythonBaseTask
              extended by org.pyant.tasks.PythonRunTask
All Implemented Interfaces:
Cloneable

public class PythonRunTask
extends PythonBaseTask

Author:
Ron Smith python -OO -c 'import compileall;compileall.compile_dir(".")'

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

scriptFile

protected File scriptFile

arguments

protected ArrayList arguments

command

protected String command

dir

protected File dir
Constructor Detail

PythonRunTask

public PythonRunTask()
Method Detail

execute

public void execute()
Overrides:
execute in class org.apache.tools.ant.Task

setScript

public void setScript(File script)

createArg

public org.apache.tools.ant.types.Commandline.Argument createArg()

setCommand

public void setCommand(String command)

setDir

public void setDir(File dir)
Set the working directory the script is executed from.

Parameters:
dir -

addCommandlineArgs

protected void addCommandlineArgs(org.apache.tools.ant.types.Commandline cmdline)
Overrides:
addCommandlineArgs in class PythonBaseTask


Copyright © 2010. All Rights Reserved.