cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carsten Ziegeler <cziege...@apache.org>
Subject Re: svn commit: r416308 - /cocoon/trunk/core/cocoon-core/src/test/java/org/apache/cocoon/util/WildcardMatcherHelperTestCase.java
Date Thu, 22 Jun 2006 13:11:05 GMT
Giacomo Pati wrote:

> 
> Ok, looking at those matching sample we need to define how matching is 
> suppose to work. Consider the following sample
> 
> Pattern		String
> **/*/**		foo/bar/baz/buz/
> 
> What is the result you expect for {1}, {2}, and {3} ? Possible values 
> could be:
> 
> {1}="foo"		{2}="bar"	{3}="baz/buz"
> {1}="foo/bar"		{2}="baz"	{3}="buz"
> {1}="foo/bar/baz"	{2}="buz"	{3}=""
> 
> which one do you think is the correct one?
> 
:)

I would expect the first result - shortest matching first :)
But I think, it's not that important what result the matcher delivers as
this pattern is ambiguous. It's important that unambigous patterns (like
*/**) work :)

Carsten

Mime
View raw message