summaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core/src
diff options
context:
space:
mode:
authoraclement <aclement>2010-04-16 15:18:11 +0000
committeraclement <aclement>2010-04-16 15:18:11 +0000
commitb21eb05a252a83b5a920430d733bed1b4dc97d52 (patch)
treefe9ede10536f9886ad9f0ba3cc3c90f63e9b65c7 /org.aspectj.ajdt.core/src
parent71e9eb0193883c01669eaa9c874330381899b54b (diff)
downloadaspectj-b21eb05a252a83b5a920430d733bed1b4dc97d52.tar.gz
aspectj-b21eb05a252a83b5a920430d733bed1b4dc97d52.zip
309402
Diffstat (limited to 'org.aspectj.ajdt.core/src')
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/tools/ajc/Main.java10
1 files changed, 9 insertions, 1 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 d5568dc13..0905ff1c0 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
@@ -170,6 +170,8 @@ public class Main {
/** ReflectionFactory identifier for command (compiler) */
protected String commandName;
+ protected ICommand command;
+
/** client-set message sink */
private IMessageHolder clientHolder;
@@ -198,6 +200,10 @@ public class Main {
this.controller = controller;
}
+ public void setCommand(ICommand command) {
+ this.command = command;
+ }
+
/**
* Run without throwing exceptions but optionally using System.exit(..). This sets up a message handler which emits messages
* immediately, so report(boolean, IMessageHandler) only reports total number of errors or warnings.
@@ -346,7 +352,9 @@ public class Main {
if (0 < holder.numMessages(IMessage.ERROR, true)) {
return;
}
- ICommand command = ReflectionFactory.makeCommand(commandName, holder);
+ if (command == null) {
+ command = ReflectionFactory.makeCommand(commandName, holder);
+ }
if (0 < holder.numMessages(IMessage.ERROR, true)) {
return;
}