public class ShellScriptTask
extends org.apache.tools.ant.taskdefs.ExecTask
| Constructor and Description |
|---|
ShellScriptTask() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
addConfiguredRedirector, addEnv, checkConfiguration, createArg, createHandler, createWatchdog, getOs, getOsFamily, getResolveExecutable, isValidOs, logFlush, maybeSetResultPropertyValue, prepareExec, resolveExecutable, runExec, runExecute, setAppend, setDir, setError, setErrorProperty, setFailIfExecutionFails, setFailonerror, setInput, setLogError, setNewenvironment, setOs, setOsFamily, setOutput, setOutputproperty, setResolveExecutable, setResultProperty, setSearchPath, setSpawn, setTimeout, setTimeout, setupRedirector, setVMLauncherbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypepublic 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 usedorg.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.ExecTaskorg.apache.tools.ant.BuildExceptionprotected void writeScript()
throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException