summaryrefslogtreecommitdiffstats
path: root/testing/newsrc
diff options
context:
space:
mode:
authormwebster <mwebster>2006-08-16 09:57:32 +0000
committermwebster <mwebster>2006-08-16 09:57:32 +0000
commitf37ab9ecfd9e34a7957eafba8e7bf577710ac18b (patch)
treecdc23129ee058680a35e64fda11d21f85ab4d4b3 /testing/newsrc
parent3b517caf402c6d7c52d4bcbdc86c7528ab828ec9 (diff)
downloadaspectj-f37ab9ecfd9e34a7957eafba8e7bf577710ac18b.tar.gz
aspectj-f37ab9ecfd9e34a7957eafba8e7bf577710ac18b.zip
Bug 153907 "Facilitate LTW testing in a custom ClassLoader hierarchy" (fix build break and improve diagnostics)
Diffstat (limited to 'testing/newsrc')
-rw-r--r--testing/newsrc/org/aspectj/testing/AntSpec.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/testing/newsrc/org/aspectj/testing/AntSpec.java b/testing/newsrc/org/aspectj/testing/AntSpec.java
index 8ea86cdb5..da83578fa 100644
--- a/testing/newsrc/org/aspectj/testing/AntSpec.java
+++ b/testing/newsrc/org/aspectj/testing/AntSpec.java
@@ -73,6 +73,7 @@ public class AntSpec implements ITestStep {
Project p = new Project();
final StringBuffer stdout = new StringBuffer();
final StringBuffer stderr = new StringBuffer();
+ final StringBuffer verboseLog = new StringBuffer();
try {
// read the Ant file
p.init();
@@ -101,7 +102,13 @@ public class AntSpec implements ITestStep {
public void buildFinished(BuildEvent event) {
super.buildFinished(event);
if (event.getException() != null) {
- AjcTestCase.fail(failMessage + "failure " + event.getException());
+ StringBuffer message = new StringBuffer();
+ message.append(event.getException().toString()).append("\n");
+ message.append(verboseLog);
+ message.append(stdout);
+ message.append(stderr);
+// AjcTestCase.fail(failMessage + "failure " + event.getException());
+ AjcTestCase.fail(message.toString());
}
}
public void targetFinished(BuildEvent event) {
@@ -122,6 +129,9 @@ public class AntSpec implements ITestStep {
case Project.MSG_WARN:
stderr.append(event.getMessage()).append('\n');
break;
+ case Project.MSG_VERBOSE:
+ verboseLog.append(event.getMessage()).append('\n');
+ break;
}
}
};