org.apache.tools.ant.taskdefs
Class ExecuteOn
java.lang.Object
|
+--org.apache.tools.ant.Task
|
+--org.apache.tools.ant.taskdefs.ExecTask
|
+--org.apache.tools.ant.taskdefs.ExecuteOn
- Direct Known Subclasses:
- Chmod
- public class ExecuteOn
- extends ExecTask
Executes a given command, supplying a set of files as arguments.
- Author:
- Stefan Bodewig, Mariusz Nowostawski
Inner Class Summary |
static class |
ExecuteOn.FileDirBoth
Enumerated attribute with the values "file", "dir" and "both"
for the type attribute. |
Field Summary |
protected java.util.Vector |
filesets
|
protected java.lang.String |
type
|
Method Summary |
void |
addFileset(FileSet set)
Adds a set of files (nested fileset attribute). |
protected void |
checkConfiguration()
Has the user set all necessary attributes? |
protected void |
runExec(Execute exe)
Run the command using the given Execute instance. |
void |
setParallel(boolean parallel)
Shall the command work on all specified files in parallel? |
void |
setType(ExecuteOn.FileDirBoth type)
Shall the command work only on files, directories or both? |
Methods inherited from class org.apache.tools.ant.taskdefs.ExecTask |
addEnv, createArg, createHandler, createWatchdog, execute, isValidOs, logFlush, prepareExec, setCommand, setDir, setExecutable, setFailonerror, setOs, setOutput, setTimeout |
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getProject, getRuntimeConfigurableWrapper, getTaskName, init, log, log, maybeConfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
filesets
protected java.util.Vector filesets
type
protected java.lang.String type
ExecuteOn
public ExecuteOn()
addFileset
public void addFileset(FileSet set)
- Adds a set of files (nested fileset attribute).
setParallel
public void setParallel(boolean parallel)
- Shall the command work on all specified files in parallel?
setType
public void setType(ExecuteOn.FileDirBoth type)
- Shall the command work only on files, directories or both?
checkConfiguration
protected void checkConfiguration()
- Description copied from class:
ExecTask
- Has the user set all necessary attributes?
- Overrides:
checkConfiguration
in class ExecTask
runExec
protected void runExec(Execute exe)
throws BuildException
- Description copied from class:
ExecTask
- Run the command using the given Execute instance.
- Overrides:
runExec
in class ExecTask
Copyright © 2000 Apache Software Foundation. All Rights Reserved.