aboutsummaryrefslogtreecommitdiffstats
path: root/taskdefs
diff options
context:
space:
mode:
authorwisberg <wisberg>2002-12-18 17:04:12 +0000
committerwisberg <wisberg>2002-12-18 17:04:12 +0000
commit49c53178fe1d89b736d9c23331f0164b794e1f60 (patch)
treed2e49694d4752cfc9769ea12770cba69b16860e2 /taskdefs
parentd5b8bb776ce6ef51420467fab5573803681e6685 (diff)
downloadaspectj-49c53178fe1d89b736d9c23331f0164b794e1f60.tar.gz
aspectj-49c53178fe1d89b736d9c23331f0164b794e1f60.zip
public constructor, better message reporting on failure
Diffstat (limited to 'taskdefs')
-rw-r--r--taskdefs/src/org/aspectj/tools/ant/taskdefs/AjcTask.java2
-rw-r--r--taskdefs/testsrc/org/aspectj/tools/ant/taskdefs/AjcTaskTest.java8
2 files changed, 8 insertions, 2 deletions
diff --git a/taskdefs/src/org/aspectj/tools/ant/taskdefs/AjcTask.java b/taskdefs/src/org/aspectj/tools/ant/taskdefs/AjcTask.java
index d56f39943..b6ed3c9eb 100644
--- a/taskdefs/src/org/aspectj/tools/ant/taskdefs/AjcTask.java
+++ b/taskdefs/src/org/aspectj/tools/ant/taskdefs/AjcTask.java
@@ -118,7 +118,7 @@ public class AjcTask extends MatchingTask {
private boolean verbose;
private boolean failonerror;
- AjcTask() {
+ public AjcTask() {
reset();
}
diff --git a/taskdefs/testsrc/org/aspectj/tools/ant/taskdefs/AjcTaskTest.java b/taskdefs/testsrc/org/aspectj/tools/ant/taskdefs/AjcTaskTest.java
index 035c0546a..7f7acfe79 100644
--- a/taskdefs/testsrc/org/aspectj/tools/ant/taskdefs/AjcTaskTest.java
+++ b/taskdefs/testsrc/org/aspectj/tools/ant/taskdefs/AjcTaskTest.java
@@ -244,7 +244,13 @@ public class AjcTaskTest extends TestCase {
private void check(IMessageHolder holder, int num, IMessage.Kind kind) {
if (num != IGNORE) {
- assertEquals(num, holder.numMessages(kind, false));
+ int actual = holder.numMessages(kind, false);
+ if (num != actual) {
+ if (actual > 0) {
+ MessageUtil.print(System.err, holder, "expected " + num + " got " + actual);
+ }
+ assertEquals(num, actual);
+ }
}
}
}