aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core
diff options
context:
space:
mode:
authoraclement <aclement>2010-08-26 15:26:41 +0000
committeraclement <aclement>2010-08-26 15:26:41 +0000
commit7bcd31c7d5866f396446e1d9b997f105ebc4d16f (patch)
tree4954e3adc22dc8ca28c6471d7b9e34c5bc666cc4 /org.aspectj.ajdt.core
parente0e1330c6e01a878d365bff112f1c6505c7e6ebd (diff)
downloadaspectj-7bcd31c7d5866f396446e1d9b997f105ebc4d16f.tar.gz
aspectj-7bcd31c7d5866f396446e1d9b997f105ebc4d16f.zip
319315: aspectj.multithreaded system property to force it ON
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/tools/ajc/Main.java12
1 files changed, 10 insertions, 2 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/tools/ajc/Main.java b/org.aspectj.ajdt.core/src/org/aspectj/tools/ajc/Main.java
index cf7503e7e..d39a6a06c 100644
--- a/org.aspectj.ajdt.core/src/org/aspectj/tools/ajc/Main.java
+++ b/org.aspectj.ajdt.core/src/org/aspectj/tools/ajc/Main.java
@@ -24,6 +24,7 @@ import org.aspectj.ajdt.internal.core.builder.AjBuildManager;
import org.aspectj.bridge.AbortException;
import org.aspectj.bridge.ICommand;
import org.aspectj.bridge.IMessage;
+import org.aspectj.bridge.IMessage.Kind;
import org.aspectj.bridge.IMessageHandler;
import org.aspectj.bridge.IMessageHolder;
import org.aspectj.bridge.ISourceLocation;
@@ -32,7 +33,6 @@ import org.aspectj.bridge.MessageHandler;
import org.aspectj.bridge.MessageUtil;
import org.aspectj.bridge.ReflectionFactory;
import org.aspectj.bridge.Version;
-import org.aspectj.bridge.IMessage.Kind;
import org.aspectj.bridge.context.CompilationAndWeavingContext;
import org.aspectj.util.FileUtil;
import org.aspectj.util.LangUtil;
@@ -188,6 +188,14 @@ public class Main {
controller = new CommandController();
commandName = ReflectionFactory.ECLIPSE;
CompilationAndWeavingContext.setMultiThreaded(false);
+ try {
+ String value = System.getProperty("aspectj.multithreaded");
+ if (value != null && value.equalsIgnoreCase("true")) {
+ CompilationAndWeavingContext.setMultiThreaded(true);
+ }
+ } catch (Exception e) {
+ // silent
+ }
ourHandler = new MessageHandler(true);
}
@@ -655,7 +663,7 @@ public class Main {
super(verbose);
this.logStream = logStream;
}
-
+
protected PrintStream getStreamFor(IMessage.Kind kind) {
if (IMessage.WARNING.isSameOrLessThan(kind)) {
return logStream;