2010/6/29 SZEDER Gábor <[email protected]>:
> Hi Stefan,
>
> thanks for your reply.
>
> On Tue, Jun 29, 2010 at 01:51:59PM +0200, Stefan Bodewig wrote:
>> On 2010-06-29, Stefan Bodewig wrote:
>>
>> >>>> <zipfileset includes="**/*.class">
>> >>>> <fileset dir="lib/main" includes="**/*.jar"/>
>> >>>> </zipfileset>
>>
>> > It looks as if the example wanted to use zipgroupfileset instead of
>> > zipfileset.
>>
>> No, that wouldn't work either. <zipgroupfileset> cannot filter its
>> contents.
>>
>> <restrict>
>> <name name="**/*.class"/>
>> <archives>
>> <zips>
>> <fileset dir="lib/main" includes="**/*.jar"/>
>> </zips>
>> </archives>
>> </restrict>
Ah, Yes, my test code only had one jar file in lib/main!
>>
>> is a correct way to do what the example promises,
>
> Yes, this works here, too.
>
>> as would be
>>
>> <restrict>
>> <name name="**/*.class"/>
>> <zipgroupfileset dir="lib/main" includes="**/*.jar"/>
>> </restrict>
>
> But this does not work, because "restrict doesn't support the nested
> "zipgroupfileset" element."
>
>
> Interesting sidenote:
> Your first variant takes "Total time: 19 seconds", while the following
> snipplet only takes "Total time: 3 seconds" on the same set of files
> to produce a jar file with the same contents.
Wow, that is slow!,
Peter
>
> <unjar dest="${unjardir}" overwrite="false">
> <fileset dir="${lib}" includes="**/*.jar"/>
> </unjar>
> <jar jarfile="${testjar}">
> <fileset dir="${unjardir}" includes="**/*.class"/>
> </jar>
>
>
> Best,
> Gábor
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]