From 12862a3e8ee9ade2466d09c4f724337847977c5b Mon Sep 17 00:00:00 2001 From: wisberg Date: Wed, 30 Apr 2003 02:13:21 +0000 Subject: [PATCH] Making genBuildConfig static so it can be re-used from AJDE. --- .../src/org/aspectj/ajdt/ajc/AjdtCommand.java | 5 +++-- 1 file 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")) { -- 2.39.5