diff options
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r-- | org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/AjdtCommand.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/AjdtCommand.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/AjdtCommand.java index 147e7277b..128a4a917 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/AjdtCommand.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/AjdtCommand.java @@ -115,7 +115,7 @@ public class AjdtCommand implements ICommand { } /** @throws AbortException on error after handling message */ - AjBuildConfig genBuildConfig(String[] args, CountingMessageHandler handler) { + public static AjBuildConfig genBuildConfig(String[] args, CountingMessageHandler handler) { BuildArgParser parser = new BuildArgParser(); AjBuildConfig config = parser.genBuildConfig(args, handler); String message = parser.getOtherMessages(true); @@ -125,11 +125,12 @@ public class AjdtCommand implements ICommand { IMessage m = new Message(message, kind, null, null); handler.handleMessage(m); } + return config; } /** @return IMessage.WARNING unless message contains error or info */ - protected IMessage.Kind inferKind(String message) { // XXX dubious + protected static IMessage.Kind inferKind(String message) { // XXX dubious if (-1 == message.indexOf("error")) { return IMessage.ERROR; } else if (-1 == message.indexOf("info")) { |