You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Klaus Bertram <k....@kbsm.de> on 2004/03/17 15:38:58 UTC
[PATCH] small Patch for blocks-build.xsl
Hi all,
I make a small patch for the blocks-build.xls at the jar build section.
So now it is possible to generate jars form package name in the gump block.
This is so small that i don t make a bugzilla patch.
Klaus
here is the diff
Index: blocks-build.xsl
===================================================================
RCS file: /home/cvspublic/cocoon-2.1/tools/src/blocks-build.xsl,v
retrieving revision 1.52
diff -w -b -r1.52 blocks-build.xsl
432c432
< <include name="org/**"/>
---
> <include name="{substring-before(package/text(),'.')}/**"/>
Re: [PATCH] small Patch for blocks-build.xsl
Posted by Klaus Bertram <k....@kbsm.de>.
Joerg Heinicke wrote:
> On 18.03.2004 09:45, Klaus Bertram wrote:
>
>>> Wouldn't it be better to use "{translate(package/text(), '.', '/')}/**"?
>>
>>
>> translate() ? where comes it from
>
>
> It's XPath: http://www.w3.org/TR/xpath#function-translate.
>
> Joerg
>
thanks good to know ;)
Klaus
Re: [PATCH] small Patch for blocks-build.xsl
Posted by Joerg Heinicke <jo...@gmx.de>.
On 18.03.2004 09:45, Klaus Bertram wrote:
>> Wouldn't it be better to use "{translate(package/text(), '.', '/')}/**"?
>
> translate() ? where comes it from
It's XPath: http://www.w3.org/TR/xpath#function-translate.
Joerg
Re: [PATCH] small Patch for blocks-build.xsl
Posted by Klaus Bertram <k....@kbsm.de>.
Joerg Heinicke wrote:
> On 17.03.2004 15:38, Klaus Bertram wrote:
>
>> Hi all,
>>
>> I make a small patch for the blocks-build.xls at the jar build section.
>> So now it is possible to generate jars form package name in the gump
>> block.
>> This is so small that i don t make a bugzilla patch.
>
>
> Are you using gump for building your own block?
yes, i copy the orig to a new and add my block
then i use the local.build.properties and change gump.xml to my filename
Ok it would be nice to have a local.gump.xml which was called after the
gump.xml ;)
>
>> here is the diff
>
>
> In this case it was easy to find, but please provide a "diff -u" the
> next time. Thanks.
up's sorry :(
>
>> Index: blocks-build.xsl
>> ===================================================================
>> RCS file: /home/cvspublic/cocoon-2.1/tools/src/blocks-build.xsl,v
>> retrieving revision 1.52
>> diff -w -b -r1.52 blocks-build.xsl
>> 432c432
>> < <include name="org/**"/>
>> ---
>> > <include
>> name="{substring-before(package/text(),'.')}/**"/>
>
>
> Wouldn't it be better to use "{translate(package/text(), '.', '/')}/**"?
>
> Joerg
>
translate() ? where comes it from
Klaus
Re: [PATCH] small Patch for blocks-build.xsl
Posted by Joerg Heinicke <jo...@gmx.de>.
On 17.03.2004 15:38, Klaus Bertram wrote:
> Hi all,
>
> I make a small patch for the blocks-build.xls at the jar build section.
> So now it is possible to generate jars form package name in the gump block.
> This is so small that i don t make a bugzilla patch.
Are you using gump for building your own block?
> here is the diff
In this case it was easy to find, but please provide a "diff -u" the
next time. Thanks.
> Index: blocks-build.xsl
> ===================================================================
> RCS file: /home/cvspublic/cocoon-2.1/tools/src/blocks-build.xsl,v
> retrieving revision 1.52
> diff -w -b -r1.52 blocks-build.xsl
> 432c432
> < <include name="org/**"/>
> ---
> > <include
> name="{substring-before(package/text(),'.')}/**"/>
Wouldn't it be better to use "{translate(package/text(), '.', '/')}/**"?
Joerg