You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Carsten Ziegeler <cz...@s-und-n.de> on 2004/05/01 12:51:33 UTC
RE: modifying attributes with xpatch
Just added to the CVS.
The task is not written were well; it could be improved in
some places. But it does its job very well.
If you have any suggestions or patches to improve it, just
send them :)
Carsten
> -----Original Message-----
> From: Ralph Goers [mailto:Ralph.Goers@digitalinsight.com]
> Sent: Friday, April 30, 2004 4:31 PM
> To: 'dev@cocoon.apache.org'
> Subject: RE: modifying attributes with xpatch
>
> I've uploaded my patch to XConfToolTask to allow multiple
> attributes to be changed.
>
> I think you should check in your poolSetter ant task. It
> might not be exactly what I want or need but it looks pretty
> good and I might decide to use it.
>
> The one thing I like about XConfToolTask is that it's
> instructions are in an external file. I've added logic to
> maven.xml to just apply whatever patch files are there for
> sitemap.xmap or cocoon.xconf. That makes it pretty easy to
> add new patches and maven.xml stays fairly simple.
>
> Ralph
>
> -----Original Message-----
> From: Carsten Ziegeler [mailto:cziegeler@s-und-n.de]
> Sent: Thursday, April 29, 2004 11:28 PM
> To: dev@cocoon.apache.org
> Subject: RE: modifying attributes with xpatch
>
> I have an additional ant task that uses the following syntax:
>
> <poolSetter file="${webapp.dir}/WEB-INF/cocoon.xconf"
> isSitemap="false"
> poolMin="16" poolMax="32" poolGrow="4"
> element="session-manager
> authentication-manager xslt-processor xml-parser
> xml-serializer xml-deserializer"/>
> <poolSetter file="${webapp.dir}/sitemap.xmap" isSitemap="true"
> poolMin="16" poolMax="32" poolGrow="4"
> element="generator:file"/>
>
> It can set pool sizes for components in a sitemap and in the
> cocoon.xconf.
> If it is of general interest I can commit the source.
>
> Carsten
>
> > -----Original Message-----
> > From: Upayavira [mailto:uv@upaya.co.uk]
> > Sent: Friday, April 30, 2004 8:19 AM
> > To: dev@cocoon.apache.org
> > Subject: Re: modifying attributes with xpatch
> >
> > Ralph Goers wrote:
> >
> > > We are copying the sitemap from the cocoon build into
> ours and then
> > > using xpatch to modify it. However, we need to change the
> > pool sizes
> > > for the various components. I'd like to modify xpatch so
> > that it can
> > > modify multiple attributes in one patch file instead of having to
> > > provide a separate file for each attribute. It would also
> > be "nicer"
> > > to allow multiple patches (like changing all the pool
> > sizes) in a file.
> > >
> > >
> > >
> > > I have no problem modifying xpatch if I can get some
> > suggestions on a
> > > good syntax to specify this.
> > >
> > >
> > >
> > Why don't you suggest a syntax here? I'd be fine with this change.
> >
> > Upayavira
> >
>