|
||||||||||
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 | +--net.cafebabe.sat.util.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 |
description, location, target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
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. |
java.util.Vector |
getNewFiles(boolean strict,
java.io.File timeFile)
Return the list of files that are newer than the reference file. |
boolean |
newerFilesThan(java.io.File timeFile)
Tell if files were modified since the reference was generated. |
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 |
execute, getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorOutput, handleOutput, init, 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 |
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
public java.util.Vector getNewFiles(boolean strict, java.io.File timeFile)
strict
- States if an error should be raised if no file is found.
public boolean newerFilesThan(java.io.File timeFile)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |