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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]