|
terp - the ANT Tasks v1.3.304 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.codemesh.terp.ant.compiler.DependencyChecker
public class DependencyChecker
A utility class that checks whether files are up-to-date based on last-modified timestamps of dependencies.
| Constructor Summary | |
|---|---|
DependencyChecker()
|
|
DependencyChecker(long diff)
|
|
| Method Summary | |
|---|---|
void |
addDependency(java.io.File target,
java.io.File... sources)
Adds one more more file dependecies to the checker. |
java.util.Set<java.io.File> |
getDependencies(java.io.File target)
|
long |
getEffectiveLastModified(java.io.File target)
Returns the effective modification time by taking the modification times of inputs into account. |
long |
getLastModified(java.io.File file)
A method reducing file system accesses by using the cached file modification time maintained by the dependency checker. |
boolean |
isUpToDate(java.io.File target)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DependencyChecker()
public DependencyChecker(long diff)
| Method Detail |
|---|
public void addDependency(java.io.File target,
java.io.File... sources)
target - the target file.sources - the source files on which target depends.public java.util.Set<java.io.File> getDependencies(java.io.File target)
public boolean isUpToDate(java.io.File target)
public long getLastModified(java.io.File file)
file - the file whose modification time we want to know.
public long getEffectiveLastModified(java.io.File target)
target - the dependent file.
|
terp - the ANT Tasks v1.3.304 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||