From: wisberg Date: Wed, 30 Apr 2003 02:13:21 +0000 (+0000) Subject: Making genBuildConfig static so it can be re-used from AJDE. X-Git-Tag: V1_1_0_RC2~127 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=12862a3e8ee9ade2466d09c4f724337847977c5b;p=aspectj.git Making genBuildConfig static so it can be re-used from AJDE. --- 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")) {