MountTableMatcher '/' change?

2005-01-18 Thread Tim Larson
Would it hurt anything to make this change in the MountTableMatcher? From: // Append a '/' at the end of the prefix // this avoids flat uri matching which would cause // exceptions in the sub sitemap! if (!prefix.endsWith("/")) { prefix = pre

DO NOT REPLY [Bug 31637] - MountTableMatcher does not work with generated mount-table

2004-10-13 Thread bugzilla
gzilla/show_bug.cgi?id=31637 MountTableMatcher does not work with generated mount-table [EMAIL PROTECTED] changed: What|Removed |Added Status|RESOLVED|CLOSED

DO NOT REPLY [Bug 31637] - MountTableMatcher does not work with generated mount-table

2004-10-11 Thread bugzilla
gzilla/show_bug.cgi?id=31637 MountTableMatcher does not work with generated mount-table --- Additional Comments From [EMAIL PROTECTED] 2004-10-11 13:11 --- Thank you very much, Sylvain! Everything now works as it should.

DO NOT REPLY [Bug 31637] - MountTableMatcher does not work with generated mount-table

2004-10-11 Thread bugzilla
gzilla/show_bug.cgi?id=31637 MountTableMatcher does not work with generated mount-table --- Additional Comments From [EMAIL PROTECTED] 2004-10-11 12:08 --- Created an attachment (id=13024) This includes the sitemaps etc. to show the bug. You will need to change some of the paths to run it.

DO NOT REPLY [Bug 31637] - MountTableMatcher does not work with generated mount-table

2004-10-11 Thread bugzilla
gzilla/show_bug.cgi?id=31637 MountTableMatcher does not work with generated mount-table [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RE

DO NOT REPLY [Bug 31637] - MountTableMatcher does not work with generated mount-table

2004-10-11 Thread bugzilla
gzilla/show_bug.cgi?id=31637 MountTableMatcher does not work with generated mount-table [EMAIL PROTECTED] changed: What|Removed |Added Priority|Other

DO NOT REPLY [Bug 31637] New: - MountTableMatcher does not work with generated mount-table

2004-10-11 Thread bugzilla
gzilla/show_bug.cgi?id=31637 MountTableMatcher does not work with generated mount-table Summary: MountTableMatcher does not work with generated mount- table Product: Cocoon 2 Version: 2.1.5 Platform: PC OS/Version: Wind

RE: MountTableMatcher ending slash

2004-05-27 Thread Carsten Ziegeler
Sylvain Wallez wrote: > > > ?? The use of the mount table doesn't change the > semantics, and if the mount occurs, there's no turning back > to the parent sitemap. > > >The change claims: > > // Append a '/' at the end of the prefix > > // this avoids flat uri matching which would cause >

Re: MountTableMatcher ending slash

2004-05-26 Thread Sylvain Wallez
Tim Larson wrote: http://marc.theaimsgroup.com/?l=xml-cocoon-cvs&m=107831750602134&w=2 src/java/org/apache/cocoon/matching/MountTableMatcher.java Log: Add an ending slash to the prefix I just realized this change caused a loss of functionality that I was planning to use. A mount-table is a pass-th

MountTableMatcher ending slash

2004-05-26 Thread Tim Larson
http://marc.theaimsgroup.com/?l=xml-cocoon-cvs&m=107831750602134&w=2 src/java/org/apache/cocoon/matching/MountTableMatcher.java Log: Add an ending slash to the prefix I just realized this change caused a loss of functionality that I was planning to use. A mount-table is a pass-through construct:

Starting CTP (was: Re: MountTableMatcher)

2003-11-25 Thread Unico Hommes
Giacomo Pati wrote: > > Unico Hommes wrote: > > > > I started on a Maven plugin > > for cocoon some time ago exactly for this reason. But unfortunately > > haven't been able to work on it lately. Maybe something for CTP if > > that would prove to take off. > > We already have such Maven p

Re: XConfPath task (was Re: MountTableMatcher)

2003-11-21 Thread Vadim Gritsenko
Upayavira wrote: Vadim Gritsenko wrote: Geoff Howard wrote: Upayavira wrote: ... We could: (1) Remove the replace-properties attribute, and replace properties automatically in the content, and in the top level attributes. (2) Leave the replace-properties attribute, and only replace propertie

Re: XConfPath task (was Re: MountTableMatcher)

2003-11-21 Thread Upayavira
Jeremy Quinn wrote: On 21 Nov 2003, at 15:04, Geoff Howard wrote: Vadim Gritsenko wrote: Geoff Howard wrote: Upayavira wrote: ... We could: (1) Remove the replace-properties attribute, and replace properties automatically in the content, and in the top level attributes. (2) Leave the replac

Re: XConfPath task (was Re: MountTableMatcher)

2003-11-21 Thread Jeremy Quinn
On 21 Nov 2003, at 15:04, Geoff Howard wrote: Vadim Gritsenko wrote: Geoff Howard wrote: Upayavira wrote: ... We could: (1) Remove the replace-properties attribute, and replace properties automatically in the content, and in the top level attributes. (2) Leave the replace-properties attribute,

Re: XConfPath task (was Re: MountTableMatcher)

2003-11-21 Thread Geoff Howard
Vadim Gritsenko wrote: Geoff Howard wrote: Upayavira wrote: ... We could: (1) Remove the replace-properties attribute, and replace properties automatically in the content, and in the top level attributes. (2) Leave the replace-properties attribute, and only replace properties in the top level

Re: XConfPath task (was Re: MountTableMatcher)

2003-11-21 Thread Upayavira
Vadim Gritsenko wrote: Geoff Howard wrote: Upayavira wrote: Jeremy Quinn wrote: On 19 Nov 2003, at 18:37, Upayavira wrote: ... Thanks Upayavira Did you read the bit earlier about the scheme having a flaw because of no variable substitution in the tag's attributes? No I didn't. How diff

Re: XConfPath task (was Re: MountTableMatcher)

2003-11-21 Thread Vadim Gritsenko
Geoff Howard wrote: Upayavira wrote: Jeremy Quinn wrote: On 19 Nov 2003, at 18:37, Upayavira wrote: ... Thanks Upayavira Did you read the bit earlier about the scheme having a flaw because of no variable substitution in the tag's attributes? No I didn't. How difficult would it be to add

Re: XConfPath task (was Re: MountTableMatcher)

2003-11-21 Thread Geoff Howard
Upayavira wrote: Jeremy Quinn wrote: On 19 Nov 2003, at 18:37, Upayavira wrote: ... Thanks Upayavira Did you read the bit earlier about the scheme having a flaw because of no variable substitution in the tag's attributes? No I didn't. How difficult would it be to add this? Coding-wise, pretty

Re: XConfPath task (was Re: MountTableMatcher)

2003-11-21 Thread Jeremy Quinn
On 20 Nov 2003, at 09:59, Upayavira wrote: Jeremy Quinn wrote: On 19 Nov 2003, at 18:37, Upayavira wrote: Jeremy, Splendid article. Stuff I've been thinking about a lot recently too. Just one useful quote from the Ant manual: With this, you can get at ${env.COCOON_HOME}, etc. Thanks Upay

RE: MountTableMatcher

2003-11-20 Thread Unico Hommes
Jeremy Quinn wrote: > > On 19 Nov 2003, at 18:37, Upayavira wrote: > > > Jeremy, > > > > Splendid article. Stuff I've been thinking about a lot recently too. > > > > Just one useful quote from the Ant manual: > > > > > > > > > > > > With this, you can get at ${env.COCOON_HOME}, etc. > > Tha

XConfPath task (was Re: MountTableMatcher)

2003-11-20 Thread Upayavira
Jeremy Quinn wrote: On 19 Nov 2003, at 18:37, Upayavira wrote: Jeremy, Splendid article. Stuff I've been thinking about a lot recently too. Just one useful quote from the Ant manual: With this, you can get at ${env.COCOON_HOME}, etc. Thanks Upayavira Did you read the bit earlier about th

Re: MountTableMatcher

2003-11-20 Thread Jeremy Quinn
On 19 Nov 2003, at 18:37, Upayavira wrote: Jeremy, Splendid article. Stuff I've been thinking about a lot recently too. Just one useful quote from the Ant manual: With this, you can get at ${env.COCOON_HOME}, etc. Thanks Upayavira Did you read the bit earlier about the scheme having a flaw

RE: MountTableMatcher

2003-11-20 Thread Unico Hommes
Giacomo Pati wrote > > Unico Hommes wrote: > > Nice article! > > > > We do basically the same thing. Note that with > MountTableMatcher you > > no longer need to patch the cocoon root sitemap. > > Why people often say so? There is no need to patch the

Re: MountTableMatcher

2003-11-20 Thread Giacomo Pati
Unico Hommes wrote: Nice article! We do basically the same thing. Note that with MountTableMatcher you no longer need to patch the cocoon root sitemap. Why people often say so? There is no need to patch the root sitemap anyway as it is simply trying to mount whatever comes in as request URL

Re: MountTableMatcher

2003-11-19 Thread Upayavira
Jeremy, Splendid article. Stuff I've been thinking about a lot recently too. Just one useful quote from the Ant manual: With this, you can get at ${env.COCOON_HOME}, etc. Regards, Upayavira Jeremy Quinn wrote: On 17 Nov 2003, at 23:03, Geoff Howard wrote: Interesting. I'd rather integrate

Re: MountTableMatcher

2003-11-19 Thread Jeremy Quinn
On 19 Nov 2003, at 17:17, Sylvain Wallez wrote: Jeremy Quinn wrote: We do basically the same thing. Note that with MountTableMatcher you no longer need to patch the cocoon root sitemap. It was a toss-up between patching the root sitemap, or patching the mount-table.xml ;) Do you need to

Re: MountTableMatcher

2003-11-19 Thread Sylvain Wallez
Jeremy Quinn wrote: We do basically the same thing. Note that with MountTableMatcher you no longer need to patch the cocoon root sitemap. It was a toss-up between patching the root sitemap, or patching the mount-table.xml ;) Do you need to patch mount-table.xml? This file is not stored in

Re: MountTableMatcher

2003-11-19 Thread Geoff Howard
Unico Hommes wrote: It is too bad that Ant does not itself support a pluggable architecture. Now you end up replicating such a build environment in every new project. If something changes in cocoon that impacts the build system you need to update all those separate instances. I started on a Maven

Re: MountTableMatcher

2003-11-19 Thread Jeremy Quinn
On 19 Nov 2003, at 16:19, Unico Hommes wrote: Nice article! Thanks Unico ! We do basically the same thing. Note that with MountTableMatcher you no longer need to patch the cocoon root sitemap. It was a toss-up between patching the root sitemap, or patching the mount-table.xml ;) Basically I

RE: MountTableMatcher

2003-11-19 Thread Unico Hommes
Nice article! We do basically the same thing. Note that with MountTableMatcher you no longer need to patch the cocoon root sitemap. It is too bad that Ant does not itself support a pluggable architecture. Now you end up replicating such a build environment in every new project. If something

Re: MountTableMatcher

2003-11-19 Thread Jeremy Quinn
On 17 Nov 2003, at 23:03, Geoff Howard wrote: Interesting. I'd rather integrate my build into Cocoon's, rather than the other way around, and now I can see that all I've got to do is stick files into a confpatch folder, which is really great. Sure, but some people prefer to integrate Cocoon in

Re: MountTableMatcher

2003-11-17 Thread Geoff Howard
Upayavira wrote: Geoff Howard wrote: ... I haven't looked at the issues involved with the MountTableMatcher, but I've been wanting this ability in the Ant task for a while. Well, you've got it now! Beyond that, if you and others feel that the sitemap patch is overkill, I&#x

Re: MountTableMatcher

2003-11-17 Thread Upayavira
Sylvain Wallez wrote: ... Ok, I understand your use case, and I realize that I underestimated the unsefulness of xconftask outside of Cocoon's build environment. So let's keep it there, and sorry for ranting :-/ Thank you, you're welcome! Oh, and thank you for your MountTableMa

Re: MountTableMatcher

2003-11-17 Thread Upayavira
Geoff Howard wrote: ... I haven't looked at the issues involved with the MountTableMatcher, but I've been wanting this ability in the Ant task for a while. Well, you've got it now! Beyond that, if you and others feel that the sitemap patch is overkill, I'm happy to remove i

Re: MountTableMatcher

2003-11-17 Thread Sylvain Wallez
Upayavira wrote: Sylvain Wallez wrote: Sorry to jump in late (just saw your "I commited it!" message), but what's the need for this? I see the potential for your matcher going further than you seemed to envision. My patch is aimed to allow the user to choose the location of the mount-tabl

Re: MountTableMatcher

2003-11-17 Thread Geoff Howard
eature in itself, which I think should stay. I haven't looked at the issues involved with the MountTableMatcher, but I've been wanting this ability in the Ant task for a while. Beyond that, if you and others feel that the sitemap patch is overkill, I'm happy to remove it and

Re: MountTableMatcher

2003-11-17 Thread Upayavira
Sylvain Wallez wrote: Upayavira wrote: Sylvain Wallez wrote: Carsten Ziegeler wrote: The main samples sitemap now uses a mount table located at the root of the Cocoon directory. It is not present by default (and ignored silently), but a "mount-table.xml.sample" is provided that just needs to

Re: MountTableMatcher

2003-11-17 Thread Sylvain Wallez
Upayavira wrote: Sylvain Wallez wrote: Carsten Ziegeler wrote: The main samples sitemap now uses a mount table located at the root of the Cocoon directory. It is not present by default (and ignored silently), but a "mount-table.xml.sample" is provided that just needs to be copied to "mount-ta

Re: MountTableMatcher

2003-11-17 Thread Upayavira
I've just committed a change so that the mount-table matcher now gets its file from the build.properties file (or local.build.properties). The only bit I wasn't satisfied with is the process of locating where to patch. I would rather put a node into the sitemap, and replace that, but there isn

Re: MountTableMatcher

2003-11-17 Thread Upayavira
Vadim Gritsenko wrote: Upayavira wrote: After this bit of code turned up, I couldn't resist giving it a go. I now have a XConfToolTask that will replace properties if replace-properties in the top level element is set to true. Is it required, this top level element's attribute? Ant itself doe

Re: MountTableMatcher

2003-11-17 Thread Vadim Gritsenko
Upayavira wrote: After this bit of code turned up, I couldn't resist giving it a go. I now have a XConfToolTask that will replace properties if replace-properties in the top level element is set to true. Is it required, this top level element's attribute? Ant itself does not have it, and alwa

Re: MountTableMatcher

2003-11-17 Thread Upayavira
After this bit of code turned up, I couldn't resist giving it a go. I now have a XConfToolTask that will replace properties if replace-properties in the top level element is set to true. All I've now got to do is work out how to get the task to act on the root sitemap in all circumstances. So,

Re: MountTableMatcher

2003-11-17 Thread Upayavira
Just had an offer of the following code over at ant-dev, which should do it nicely (came with an 'untested' disclaimer though). public void replaceProperties(Node n) throws DOMException { switch (n.getNodeType()) { case Node.ATTR_NODE: case Node.CDATA_SECTION_NODE: case Node.TE

Re: MountTableMatcher

2003-11-17 Thread Upayavira
Geoff Howard wrote: No, XPatch doesn't handle properties expansion now. I looked briefly at how to add support for this and didn't get it worked out. I don't know Ant internals much at all - maybe someone more familiar would know better. I've just asked on ant-dev, and was told: String org.a

Re: MountTableMatcher

2003-11-17 Thread Geoff Howard
Upayavira wrote: Geoff Howard wrote: Upayavira wrote: Sylvain Wallez wrote: Carsten Ziegeler wrote: The main samples sitemap now uses a mount table located at the root of the Cocoon directory. It is not present by default (and ignored silently), but a "mount-table.xml.sample" is provided th

Re: MountTableMatcher

2003-11-17 Thread Upayavira
Geoff Howard wrote: Upayavira wrote: Sylvain Wallez wrote: Carsten Ziegeler wrote: The main samples sitemap now uses a mount table located at the root of the Cocoon directory. It is not present by default (and ignored silently), but a "mount-table.xml.sample" is provided that just needs to b

Re: MountTableMatcher

2003-11-15 Thread Geoff Howard
Upayavira wrote: Sylvain Wallez wrote: Carsten Ziegeler wrote: The main samples sitemap now uses a mount table located at the root of the Cocoon directory. It is not present by default (and ignored silently), but a "mount-table.xml.sample" is provided that just needs to be copied to "mount-tab

Re: MountTableMatcher

2003-11-15 Thread Upayavira
Sylvain Wallez wrote: Carsten Ziegeler wrote: The main samples sitemap now uses a mount table located at the root of the Cocoon directory. It is not present by default (and ignored silently), but a "mount-table.xml.sample" is provided that just needs to be copied to "mount-table.xml". Just one

Re: MountTableMatcher

2003-11-14 Thread Sylvain Wallez
Carsten Ziegeler wrote: Sylvain Wallez wrote: I wrote a little goodie that hopefully will be very helpful to all of us: the MountTableMatcher. This is a matcher that manages a "mount table", allowing to add subsitemaps to a Cocoon application without modifying the main sitemap.

RE: MountTableMatcher

2003-11-14 Thread Carsten Ziegeler
Sylvain Wallez wrote: > > I wrote a little goodie that hopefully will be very helpful to all of > us: the MountTableMatcher. This is a matcher that manages a "mount > table", allowing to add subsitemaps to a Cocoon application without > modifying the main sitemap. &g

MountTableMatcher

2003-11-13 Thread Sylvain Wallez
I all, I wrote a little goodie that hopefully will be very helpful to all of us: the MountTableMatcher. This is a matcher that manages a "mount table", allowing to add subsitemaps to a Cocoon application without modifying the main sitemap. This is especially useful for two purpo