sylvain 02/02/01 06:57:27 Modified: src/scratchpad/src/org/apache/cocoon/treeprocessor/sitemap MatchNodeBuilder.java Log: Allow empty <map:match> : this can be used to block some URIs (like **.xmap) Revision Changes Path 1.3 +1 -7 xml-cocoon2/src/scratchpad/src/org/apache/cocoon/treeprocessor/sitemap/MatchNodeBuilder.java Index: MatchNodeBuilder.java =================================================================== RCS file: /home/cvs/xml-cocoon2/src/scratchpad/src/org/apache/cocoon/treeprocessor/sitemap/MatchNodeBuilder.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- MatchNodeBuilder.java 15 Jan 2002 11:10:54 -0000 1.2 +++ MatchNodeBuilder.java 1 Feb 2002 14:57:27 -0000 1.3 @@ -27,7 +27,7 @@ /** * * @author <a href="mailto:[EMAIL PROTECTED]">Sylvain Wallez</a> - * @version CVS $Revision: 1.2 $ $Date: 2002/01/15 11:10:54 $ + * @version CVS $Revision: 1.3 $ $Date: 2002/02/01 14:57:27 $ */ public class MatchNodeBuilder extends AbstractParentProcessingNodeBuilder @@ -74,12 +74,6 @@ // Get all children ProcessingNode[] children = buildChildNodes(config); - if (children.length == 0) { - String msg = "There must be at least one child in match at " + config.getLocation(); - getLogger().error(msg); - throw new ConfigurationException(msg); - } - node.setChildren(children); return node;
---------------------------------------------------------------------- In case of troubles, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]