|
|||||||||
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
net.sweetohm.ant.util.FileTask
public abstract class FileTask
This is the ancestor of all the file related tasks. It manages file and dir attributes and fileset nested elements.
Field Summary | |
---|---|
(package private) java.lang.String |
dir
The coma separated list of directories to process |
(package private) java.lang.String |
file
The coma separated list of files to process |
(package private) java.util.Vector |
filesets
The Vector of filesets to process |
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 | |
---|---|
FileTask()
|
Method Summary | |
---|---|
void |
addFileset(org.apache.tools.ant.types.FileSet fileset)
Fileset nested element. |
java.util.Vector |
getFiles(boolean strict)
Return the list of files to process. |
void |
setDir(java.lang.String dir)
Dir attribute. |
void |
setFile(java.lang.String file)
File attribute. |
Methods inherited from class org.apache.tools.ant.Task |
---|
bindToOwner, execute, 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 |
---|
java.lang.String file
java.lang.String dir
java.util.Vector filesets
Vector
of filesets to process
Constructor Detail |
---|
public FileTask()
Method Detail |
---|
public void setFile(java.lang.String file)
file
- The coma separated list of files to process.public void setDir(java.lang.String dir)
dir
- The coma separated list of directories to process.public void addFileset(org.apache.tools.ant.types.FileSet fileset)
fileset
- The fileset to add.public java.util.Vector getFiles(boolean strict) throws org.apache.tools.ant.BuildException
Vector
built from the files, directories and filesets of the task.
strict
- A flag that indicates if we should check that at
least one file or directory is set. If false, the files and
directories are checked anyway.
Vector
of File
s.
org.apache.tools.ant.BuildException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |