aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authoraclement <aclement>2006-07-24 11:05:49 +0000
committeraclement <aclement>2006-07-24 11:05:49 +0000
commitbeaeab3dbf69175b3f08c30bb6ae82aa6b4eb728 (patch)
tree26c99fd1ff42af254ffc19d4c03c4adaf6a87a7f /tests
parent97b3ae73a8d18db916f0fa10189d658003eb068c (diff)
downloadaspectj-beaeab3dbf69175b3f08c30bb6ae82aa6b4eb728.tar.gz
aspectj-beaeab3dbf69175b3f08c30bb6ae82aa6b4eb728.zip
pr145689 - telling AJDT through the progress monitor (rather than a debug interface) whether the build was full or incremental.
Diffstat (limited to 'tests')
-rw-r--r--tests/src/org/aspectj/systemtest/incremental/tools/AjdeInteractionTestbed.java11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/src/org/aspectj/systemtest/incremental/tools/AjdeInteractionTestbed.java b/tests/src/org/aspectj/systemtest/incremental/tools/AjdeInteractionTestbed.java
index 4d0cb5ac7..d50e340fb 100644
--- a/tests/src/org/aspectj/systemtest/incremental/tools/AjdeInteractionTestbed.java
+++ b/tests/src/org/aspectj/systemtest/incremental/tools/AjdeInteractionTestbed.java
@@ -272,6 +272,8 @@ public class AjdeInteractionTestbed extends TestCase {
public boolean wasFullBuild() {
+ // alternatives: statelistener is debug interface, progressmonitor is new proper interface (see pr145689)
+// return MyBuildProgressMonitor.wasFullBuild();
return MyStateListener.wasFullBuild();
}
@@ -543,6 +545,7 @@ public class AjdeInteractionTestbed extends TestCase {
public static void reset() {
_instance.finished = false;
+ _instance.wasFullBuild=true;
_instance.compiledFiles.clear();
_instance.wovenClasses.clear();
}
@@ -559,6 +562,7 @@ public class AjdeInteractionTestbed extends TestCase {
private long starttime = 0;
private long totaltimetaken = 0;
private boolean finished = false;
+ private boolean wasFullBuild = true;
public void start(String configFile) {
starttime = System.currentTimeMillis();
@@ -593,9 +597,10 @@ public class AjdeInteractionTestbed extends TestCase {
return 100;
}
- public void finish() {
+ public void finish(boolean b) {
log("BuildProgressMonitor.finish()");
_instance.finished=true;
+ _instance.wasFullBuild = b;
_instance.totaltimetaken=(System.currentTimeMillis()-starttime);
}
@@ -607,6 +612,10 @@ public class AjdeInteractionTestbed extends TestCase {
if (VERBOSE) System.out.println(s);
}
+ public static boolean wasFullBuild() {
+ return _instance.wasFullBuild;
+ }
+
}