* files in a source directory or any required modules or any
* libraries or if any libraries or required modules are missing
*/
- public static boolean outOfDate(Result result, boolean recalculate) {
+ public static boolean outOfDate(Result result) {
File outputFile = result.getOutputFile();
if (!(outputFile.exists() && outputFile.canRead())) {
return true;
}
}
// required modules
- final Kind kind = result.getKind();
Result[] reqs = result.getRequired();
for (int i = 0; i < reqs.length; i++) {
Result requiredResult = reqs[i];
return outputFile;
}
- public void rebuilding() {
- outOfDate = true;
- outOfDateSet = true;
- if (outputFile.exists()) {
- outputFile.delete();
- if (outputFile.exists()) {
- throw new Error("unable to delete existing " + outputFile);
- }
- }
- }
-
public void clearOutOfDate() {
outOfDateSet = false;
outOfDate = false;
}
- public boolean outOfDate(boolean recalculate) {
- if (recalculate) {
- clearOutOfDate();
- }
+ public boolean outOfDate() {
if (!outOfDateSet) {
- outOfDate = Module.outOfDate(this, recalculate);
+ outOfDate = Module.outOfDate(this);
outOfDateSet = true;
}
return outOfDate;