|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tools.ant.ProjectComponent | +--org.apache.tools.ant.Task | +--org.apache.tools.ant.taskdefs.ExecTask | +--net.sf.antcontrib.platform.ShellScriptTask
A generic front-end for passing "shell lines" to any application which can accept a filename containing script input (bash, perl, csh, tcsh, etc.). see antcontrib doc for useage
Field Summary |
Fields inherited from class org.apache.tools.ant.taskdefs.ExecTask |
cmdl, failOnError, newEnvironment |
Fields inherited from class org.apache.tools.ant.Task |
description, location, target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
project |
Constructor Summary | |
ShellScriptTask()
|
Method Summary | |
void |
addText(java.lang.String s)
Adds s to the lines of script code. |
void |
execute()
execute the task |
void |
setCommand(org.apache.tools.ant.types.Commandline notUsed)
Disallow the command attribute of parent class ExecTask. |
void |
setExecutable(java.lang.String shell)
Sets the shell used to run the script. |
void |
setInputString(java.lang.String s)
Sets script code to s. |
void |
setShell(java.lang.String shell)
Sets the shell used to run the script. |
void |
setTmpSuffix(java.lang.String tmpSuffix)
Sets the suffix for the tmp file used to contain the script. |
protected void |
writeScript()
Writes the script lines to a temp file. |
Methods inherited from class org.apache.tools.ant.taskdefs.ExecTask |
addEnv, checkConfiguration, createArg, createHandler, createWatchdog, isValidOs, logFlush, maybeSetResultPropertyValue, prepareExec, runExec, runExecute, setAppend, setDir, setFailIfExecutionFails, setFailonerror, setNewenvironment, setOs, setOutput, setOutputproperty, setResultProperty, setTimeout, setTimeout, setVMLauncher |
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorFlush, handleErrorOutput, handleFlush, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject, setProject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ShellScriptTask()
Method Detail |
public void addText(java.lang.String s)
public void setInputString(java.lang.String s)
public void setShell(java.lang.String shell)
shell
- the shell to use (bash is default)public void setExecutable(java.lang.String shell)
setExecutable
in class org.apache.tools.ant.taskdefs.ExecTask
shell
- the shell to use (bash is default)public void setCommand(org.apache.tools.ant.types.Commandline notUsed)
setCommand
in class org.apache.tools.ant.taskdefs.ExecTask
notUsed
- not used
org.apache.tools.ant.BuildException
- if calledpublic void setTmpSuffix(java.lang.String tmpSuffix)
tmpSuffix
- the suffix to usepublic void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.taskdefs.ExecTask
org.apache.tools.ant.BuildException
protected void writeScript() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |