aboutsummaryrefslogtreecommitdiffstats
path: root/build/src
diff options
context:
space:
mode:
authorwisberg <wisberg>2005-06-15 06:00:07 +0000
committerwisberg <wisberg>2005-06-15 06:00:07 +0000
commit2406446eed5861ead4eb86a0f8f359083418dfef (patch)
treebd1a2e2f79b75fc34405bbd462d8812bb49ad807 /build/src
parent14b501c3673050c17c5df9ab54b85193f0fe4313 (diff)
downloadaspectj-2406446eed5861ead4eb86a0f8f359083418dfef.tar.gz
aspectj-2406446eed5861ead4eb86a0f8f359083418dfef.zip
out-of-date check working.
Diffstat (limited to 'build/src')
-rw-r--r--build/src/org/aspectj/internal/tools/build/Module.java3
-rw-r--r--build/src/org/aspectj/internal/tools/build/Result.java18
2 files changed, 3 insertions, 18 deletions
diff --git a/build/src/org/aspectj/internal/tools/build/Module.java b/build/src/org/aspectj/internal/tools/build/Module.java
index d37b8bed4..2c59a5d61 100644
--- a/build/src/org/aspectj/internal/tools/build/Module.java
+++ b/build/src/org/aspectj/internal/tools/build/Module.java
@@ -244,7 +244,7 @@ public class Module {
* 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;
@@ -261,7 +261,6 @@ public class Module {
}
}
// required modules
- final Kind kind = result.getKind();
Result[] reqs = result.getRequired();
for (int i = 0; i < reqs.length; i++) {
Result requiredResult = reqs[i];
diff --git a/build/src/org/aspectj/internal/tools/build/Result.java b/build/src/org/aspectj/internal/tools/build/Result.java
index 3efd095bb..ebf61394d 100644
--- a/build/src/org/aspectj/internal/tools/build/Result.java
+++ b/build/src/org/aspectj/internal/tools/build/Result.java
@@ -204,28 +204,14 @@ public class Result {
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;