aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core
diff options
context:
space:
mode:
authorwisberg <wisberg>2003-04-30 02:13:21 +0000
committerwisberg <wisberg>2003-04-30 02:13:21 +0000
commit12862a3e8ee9ade2466d09c4f724337847977c5b (patch)
treeb754ba62c368abdd28eba02005757de84ebc95c3 /org.aspectj.ajdt.core
parent29a878c9db483fd638805526a980f4e0a28b849c (diff)
downloadaspectj-12862a3e8ee9ade2466d09c4f724337847977c5b.tar.gz
aspectj-12862a3e8ee9ade2466d09c4f724337847977c5b.zip
Making genBuildConfig static so it can be re-used from AJDE.
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/AjdtCommand.java5
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")) {