ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r442851 - /ant/antlibs/antunit/trunk/src/main/org/apache/ant/antunit/AssertTask.java
Date Wed, 13 Sep 2006 05:26:21 GMT
Author: bodewig
Date: Tue Sep 12 22:26:20 2006
New Revision: 442851

URL: http://svn.apache.org/viewvc?view=rev&rev=442851
Log:
Add location information

Modified:
    ant/antlibs/antunit/trunk/src/main/org/apache/ant/antunit/AssertTask.java

Modified: ant/antlibs/antunit/trunk/src/main/org/apache/ant/antunit/AssertTask.java
URL: http://svn.apache.org/viewvc/ant/antlibs/antunit/trunk/src/main/org/apache/ant/antunit/AssertTask.java?view=diff&rev=442851&r1=442850&r2=442851
==============================================================================
--- ant/antlibs/antunit/trunk/src/main/org/apache/ant/antunit/AssertTask.java (original)
+++ ant/antlibs/antunit/trunk/src/main/org/apache/ant/antunit/AssertTask.java Tue Sep 12 22:26:20
2006
@@ -66,13 +66,14 @@
         int count = countConditions();
         if (count > 1) {
             throw new BuildException("You must not specify more than one "
-                                     + "condition");
+                                     + "condition", getLocation());
         }
         if (count < 1) {
-            throw new BuildException("You must specify a condition");
+            throw new BuildException("You must specify a condition",
+                                     getLocation());
         }
         if (!((Condition) getConditions().nextElement()).eval()) {
-            throw new AssertionFailedException(message);
+            throw new AssertionFailedException(message, getLocation());
         }
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message