|
|||||||||
| 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.apache.tools.ant.taskdefs.ExecTask
net.sf.antcontrib.platform.ShellScriptTask
public class 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, redirector, redirectorElement |
| 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 |
|---|
addConfiguredRedirector, addEnv, checkConfiguration, createArg, createHandler, createWatchdog, getResolveExecutable, isValidOs, logFlush, maybeSetResultPropertyValue, prepareExec, resolveExecutable, runExec, runExecute, setAppend, setDir, setError, setErrorProperty, setFailIfExecutionFails, setFailonerror, setInput, setLogError, setNewenvironment, setOs, setOutput, setOutputproperty, setResolveExecutable, setResultProperty, setSearchPath, setSpawn, setTimeout, setTimeout, setupRedirector, setVMLauncher |
| Methods inherited from class org.apache.tools.ant.Task |
|---|
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
| 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)
setInputString in class org.apache.tools.ant.taskdefs.ExecTaskpublic 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.ExecTaskshell - 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.ExecTasknotUsed - not used
org.apache.tools.ant.BuildException - if calledpublic void setTmpSuffix(java.lang.String tmpSuffix)
tmpSuffix - the suffix to use
public void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.taskdefs.ExecTaskorg.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 | ||||||||