From f029a06e9778e64cb336dbc3220ebb79f1a6c2f1 Mon Sep 17 00:00:00 2001 From: wisberg Date: Fri, 9 Jan 2004 09:30:21 +0000 Subject: -logXML... round-tripping fixed --- testing/src/org/aspectj/testing/xml/SoftMessage.java | 2 +- testing/src/org/aspectj/testing/xml/SoftSourceLocation.java | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'testing') diff --git a/testing/src/org/aspectj/testing/xml/SoftMessage.java b/testing/src/org/aspectj/testing/xml/SoftMessage.java index 208b155b7..8caa77828 100644 --- a/testing/src/org/aspectj/testing/xml/SoftMessage.java +++ b/testing/src/org/aspectj/testing/xml/SoftMessage.java @@ -101,7 +101,7 @@ public class SoftMessage implements IMessage { String value = message.getMessage(); if (null != value) { value = XMLWriter.attributeValue(value); - out.printAttribute("message", value); + out.printAttribute("text", value); } value = message.getDetails(); if (null != value) { diff --git a/testing/src/org/aspectj/testing/xml/SoftSourceLocation.java b/testing/src/org/aspectj/testing/xml/SoftSourceLocation.java index 7df8436a0..022342aa2 100644 --- a/testing/src/org/aspectj/testing/xml/SoftSourceLocation.java +++ b/testing/src/org/aspectj/testing/xml/SoftSourceLocation.java @@ -44,8 +44,9 @@ public class SoftSourceLocation implements ISourceLocation { out.printAttribute("line", "" + sl.getLine()); // other attributes not supported File file = sl.getSourceFile(); - if (null != file) { - out.printAttribute("file", file.getPath()); + if ((null != file) && !ISourceLocation.NO_FILE.equals(file)) { + String value = XMLWriter.attributeValue(file.getPath()); + out.printAttribute("file", value); } out.endElement(elementName); } -- cgit v1.2.3