summaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorwisberg <wisberg>2003-05-14 05:06:21 +0000
committerwisberg <wisberg>2003-05-14 05:06:21 +0000
commit5ab90271776b49219905ab2c3a4b8a7be487b3a7 (patch)
treea6cd5a95ffd08f53c7a242ba872a9d251c2c1d26 /testing
parent1a31bc480c60a757e7a8d5b3370bca2829af9be5 (diff)
downloadaspectj-5ab90271776b49219905ab2c3a4b8a7be487b3a7.tar.gz
aspectj-5ab90271776b49219905ab2c3a4b8a7be487b3a7.zip
- supporting parent badInput in XML
- supporting new AjcMessageHandler interfaces
Diffstat (limited to 'testing')
-rw-r--r--testing/src/org/aspectj/testing/harness/bridge/IncCompilerRun.java29
1 files changed, 4 insertions, 25 deletions
diff --git a/testing/src/org/aspectj/testing/harness/bridge/IncCompilerRun.java b/testing/src/org/aspectj/testing/harness/bridge/IncCompilerRun.java
index 3c8d4a032..dc2e858bc 100644
--- a/testing/src/org/aspectj/testing/harness/bridge/IncCompilerRun.java
+++ b/testing/src/org/aspectj/testing/harness/bridge/IncCompilerRun.java
@@ -202,10 +202,7 @@ public class IncCompilerRun implements IAjcRun {
return false; // setup failed
}
}
- List errors = spec.getMessages(IMessage.ERROR);
- List warnings = spec.getMessages(IMessage.WARNING);
- List expectRecompiled = Collections.EMPTY_LIST;
- AjcMessageHandler handler = new AjcMessageHandler(errors, warnings, expectRecompiled);
+ AjcMessageHandler handler = new AjcMessageHandler(spec.getMessages());
boolean handlerResult = false;
boolean commandResult = false;
boolean result = false;
@@ -263,21 +260,6 @@ public class IncCompilerRun implements IAjcRun {
// return "IncCompilerRun(" + spec + ")"; // XXX
}
-// /** @see IXmlWritable#writeXml(XMLWriter) */
-// public void writeXml(XMLWriter out) {
-// String elementName = "inc-compile";
-// String tagAttr = out.makeAttribute("tag", spec.tag);
-// List messages = spec.getMessages();
-// int nMessages = messages.size();
-// if (0 == nMessages) {
-// out.printElement(elementName, tagAttr);
-// } else {
-// out.startElement(elementName, tagAttr, true);
-// SoftMessage.writeXml(out, messages);
-// out.endElement(elementName);
-// }
-// }
-//
/**
* initializer/factory for IncCompilerRun.
*/
@@ -292,11 +274,11 @@ public class IncCompilerRun implements IAjcRun {
/**
* skip description, skip sourceLocation,
* do keywords, skip options, do paths as classes, do comment,
- * skip staging (always true),
+ * skip staging (always true), skip badInput (irrelevant)
* do dirChanges, do messages but skip children.
*/
private static final XMLNames NAMES = new XMLNames(XMLNames.DEFAULT,
- "", "", null, "", "classes", null, "", false, false, true);
+ "", "", null, "", "classes", null, "", "", false, false, true);
/** identifies files this run owns, so {name}.{tag}.java maps to {name}.java */
String tag;
@@ -357,10 +339,7 @@ public class IncCompilerRun implements IAjcRun {
if (!LangUtil.isEmpty(dirChanges)) {
DirChanges.Spec.writeXml(out, dirChanges);
}
- List messages = getMessages();
- if (0 < messages.size()) {
- SoftMessage.writeXml(out, messages);
- }
+ SoftMessage.writeXml(out, getMessages());
out.endElement(xmlElementName);
}