This task will examine each of the sources against each of the target files. If any target files are out of date with respect to any of the sources, all targets are removed. If any sources or targets do not exist, all targets are removed. Hint: If missing files should be ignored, specify them as include patterns in filesets, rather than using filelists.
This task attempts to optimize speed of dependency checking by comparing only the dates of the oldest target file and the newest source.
Example uses:
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final ResourceComparator | |
| private static final ResourceSelector | |
| private static final ResourceComparator | |
| private Union | |
| private Path | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public void | |
| public synchronized Union | |
| public synchronized Path | |
| public void | |
| private Resource | |
| private Resource | |
| private Resource | |
| private void | |
| private void | |
| private void | |
| public void | setVerbose(boolean
boolean b)In verbose mode missing targets and sources as well as the modification times of the newest source and latest target will be logged as info. |
| private boolean |
| DATE | back to summary |
|---|---|
| private static final ResourceComparator DATE | |
| NOT_EXISTS | back to summary |
|---|---|
| private static final ResourceSelector NOT_EXISTS | |
| REVERSE_DATE | back to summary |
|---|---|
| private static final ResourceComparator REVERSE_DATE | |
| sources | back to summary |
|---|---|
| private Union sources | |
| targets | back to summary |
|---|---|
| private Path targets | |
| verbose | back to summary |
|---|---|
| private boolean verbose | |
| DependSet | back to summary |
|---|---|
| public DependSet() | |
| addSrcfilelist | back to summary |
|---|---|
| public void addSrcfilelist(FileList fl) Add a list of source files.
| |
| addSrcfileset | back to summary |
|---|---|
| public void addSrcfileset(FileSet fs) Add a set of source files.
| |
| addTargetfilelist | back to summary |
|---|---|
| public void addTargetfilelist(FileList fl) Add a list of target files.
| |
| addTargetfileset | back to summary |
|---|---|
| public void addTargetfileset(FileSet fs) Add a set of target files.
| |
| createSources | back to summary |
|---|---|
| public synchronized Union createSources() Create a nested sources element.
| |
| createTargets | back to summary |
|---|---|
| public synchronized Path createTargets() Create a nested targets element.
| |
| execute | back to summary |
|---|---|
| public void execute() throws BuildException Overrides org. Execute the task.
| |
| getNewest | back to summary |
|---|---|
| private Resource getNewest(ResourceCollection rc) | |
| getOldest | back to summary |
|---|---|
| private Resource getOldest(ResourceCollection rc) | |
| getXest | back to summary |
|---|---|
| private Resource getXest(ResourceCollection rc, ResourceComparator c) | |
| logFuture | back to summary |
|---|---|
| private void logFuture(ResourceCollection rc, ResourceSelector rsel) | |
| logMissing | back to summary |
|---|---|
| private void logMissing(ResourceCollection missing, String what) | |
| logWithModificationTime | back to summary |
|---|---|
| private void logWithModificationTime(Resource r, String what) | |
| setVerbose | back to summary |
|---|---|
| public void setVerbose(boolean b) In verbose mode missing targets and sources as well as the modification times of the newest source and latest target will be logged as info. All deleted files will be logged as well.
| |
| uptodate | back to summary |
|---|---|
| private boolean uptodate(ResourceCollection src, ResourceCollection target) | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | |
| public boolean | isFilesystemOnly()
Implements org. |
| public Iterator | |
| public int | size()
Implements org. |
| fs | back to summary |
|---|---|
| private FileSet fs | |
| HideMissingBasedir | back to summary |
|---|---|
| private HideMissingBasedir(FileSet fs) | |
| basedirExists | back to summary |
|---|---|
| private boolean basedirExists() | |
| isFilesystemOnly | back to summary |
|---|---|
| public boolean isFilesystemOnly() Implements org. Doc from org. Indicate whether this ResourceCollection is composed entirely of
Resources accessible via local filesystem conventions. If true, all
resources returned from this collection should respond with a
| |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Doc from java. Returns an iterator over elements of type | |
| size | back to summary |
|---|---|
| public int size() Implements org. Doc from org. Learn the number of contained Resources.
| |
| Access | Constructor and Description |
|---|---|
| private |
| NonExistent | back to summary |
|---|---|
| private NonExistent(ResourceCollection rc) | |