stephan 2004/03/10 05:33:03
Modified: tools/src/anttasks XConfToolTask.java
Log:
Don't break the build, if a patch couldn't applied.
Revision Changes Path
1.17 +4 -5 cocoon-2.1/tools/src/anttasks/XConfToolTask.java
Index: XConfToolTask.java
===================================================================
RCS file: /home/cvs/cocoon-2.1/tools/src/anttasks/XConfToolTask.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- XConfToolTask.java 8 Mar 2004 07:57:06 -0000 1.16
+++ XConfToolTask.java 10 Mar 2004 13:33:03 -0000 1.17
@@ -228,10 +228,9 @@
NodeList nodes = XPathAPI.selectNodeList(configuration, xpath);
if (nodes.getLength() !=1 ) {
- log("Error in: "+file);
- throw new IOException("XPath (" + xpath +
- ") returned not one node, but "+
- nodes.getLength() + " nodes");
+ log("Error in: "+file+" , returned not
one node, but "+
+ nodes.getLength() + " nodes");
+ return false;
}
Node root = nodes.item(0);