Author: stevel
Date: Mon Mar 6 08:55:42 2006
New Revision: 383583
URL: http://svn.apache.org/viewcvs?rev=383583&view=rev
Log:
adding better diagnostics here when loading fails, like the name of the file at fault.
Modified:
ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/XmlProperty.java
Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/XmlProperty.java
URL: http://svn.apache.org/viewcvs/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/XmlProperty.java?rev=383583&r1=383582&r2=383583&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/XmlProperty.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/XmlProperty.java Mon Mar 6 08:55:42
2006
@@ -281,14 +281,14 @@
if (sxe.getException() != null) {
x = sxe.getException();
}
- throw new BuildException(x);
+ throw new BuildException("Failed to load "+src,x);
} catch (ParserConfigurationException pce) {
// Parser with specified options can't be built
throw new BuildException(pce);
} catch (IOException ioe) {
// I/O error
- throw new BuildException(ioe);
+ throw new BuildException("Failed to load " + src,ioe);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
|