summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraclement <aclement>2005-04-13 11:45:27 +0000
committeraclement <aclement>2005-04-13 11:45:27 +0000
commitb81d25a13abfb9a0a5a5eddff79b1a36d982a036 (patch)
tree62b1bf694f0d976a1629fddb5a110451f1ebedae
parentd8665133116ce54e90c0e33ddd83d54fbbbbec40 (diff)
downloadaspectj-b81d25a13abfb9a0a5a5eddff79b1a36d982a036.tar.gz
aspectj-b81d25a13abfb9a0a5a5eddff79b1a36d982a036.zip
See pr90806 - change to harness so fast machines don't fail incremental tests.
-rw-r--r--org.aspectj.ajdt.core/testsrc/org/aspectj/tools/ajc/Ajc.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/org.aspectj.ajdt.core/testsrc/org/aspectj/tools/ajc/Ajc.java b/org.aspectj.ajdt.core/testsrc/org/aspectj/tools/ajc/Ajc.java
index c3f35770e..b2193d1b5 100644
--- a/org.aspectj.ajdt.core/testsrc/org/aspectj/tools/ajc/Ajc.java
+++ b/org.aspectj.ajdt.core/testsrc/org/aspectj/tools/ajc/Ajc.java
@@ -166,6 +166,10 @@ public class Ajc {
args = adjustToSandbox(args,!isIncremental);
MessageHandler holder = new MessageHandler();
main.setHolder(holder);
+ if (incrementalStage==10 && hasSpecifiedIncremental(args)) {
+ // important to sleep after preparing the sandbox on first incremental stage (see notes in pr90806)
+ try { Thread.sleep(1000); } catch (Exception e) {}
+ }
if (isIncremental) {
controller.doIncremental(holder);
} else {
@@ -191,6 +195,14 @@ public class Ajc {
return result;
}
+ private boolean hasSpecifiedIncremental(String[] args) {
+ if (args==null) return false;
+ for (int i = 0; i < args.length; i++) {
+ if (args[i].equals("-incremental")) return true;
+ }
+ return false;
+ }
+
/**
* After compiling for the first time with compile(), if the -incremental option was specified
* you can do as many subsequent incremental compiles as you like by calling this method.