Author: sylvain Date: Wed Dec 29 12:27:06 2004 New Revision: 123672 URL: http://svn.apache.org/viewcvs?view=rev&rev=123672 Log: Raise an error when patch file is inconsistend rather than just a warning Modified: cocoon/trunk/tools/src/anttasks/XConfToolTask.java
Modified: cocoon/trunk/tools/src/anttasks/XConfToolTask.java Url: http://svn.apache.org/viewcvs/cocoon/trunk/tools/src/anttasks/XConfToolTask.java?view=diff&rev=123672&p1=cocoon/trunk/tools/src/anttasks/XConfToolTask.java&r1=123671&p2=cocoon/trunk/tools/src/anttasks/XConfToolTask.java&r2=123672 ============================================================================== --- cocoon/trunk/tools/src/anttasks/XConfToolTask.java (original) +++ cocoon/trunk/tools/src/anttasks/XConfToolTask.java Wed Dec 29 12:27:06 2004 @@ -227,9 +227,8 @@ String extension = filename.lastIndexOf(".")>0?filename.substring(filename.lastIndexOf(".")+1):""; String basename = basename(filename); - if (!elem.getTagName().equals(extension)) { - log("Skipping non xconf-tool file: "+filename); - return false; + if (!elem.getTagName().equals(extension)) { + throw new BuildException("Not a valid xpatch file: "+filename); } String replacePropertiesStr = elem.getAttribute("replace-properties");