ghoward 2003/06/05 14:06:17
Modified: tools/src/anttasks XConfToolTask.java
Log:
fix logical condition when unless-path is not specified.
Revision Changes Path
1.7 +2 -2 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.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- XConfToolTask.java 5 Jun 2003 02:55:51 -0000 1.6
+++ XConfToolTask.java 5 Jun 2003 21:06:17 -0000 1.7
@@ -248,7 +248,7 @@
// Test that 'root' node satisfies 'component' insertion criteria
String testPath =
component.getDocumentElement().getAttribute("unless-path");
- if (testPath == null) {
+ if (testPath == null || testPath.length()==0) {
// only look for old "unless" attr if unless-path is not present
testPath = component.getDocumentElement().getAttribute("unless");
}