ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremy Kuhnash <>
Subject Re: Mapping files into a JAR, seemingly impossible.
Date Mon, 29 Jul 2002 20:04:05 GMT
Should I create a proposal on how to fix (internally in the tasks) and mail 
it off to the developer list?

Jeremy Kuhnash

At 11:41 AM 7/29/2002 -0400, you wrote:
>         I have a task that I need to do that I can't quite nail down. I 
> am beginning to wonder if there is an easy way to do it in Ant at all, 
> outside of exec'ing some 5 line perl script....
>         I want to essentially write something like this:
><jar update="${update_val}"
>         destfile="${}/resources.${environment}.jar" >
>         <mapper type="glob"  from="*.${environment}" to="*"/>
>         Of course, the jar task doesn't support mappers as a nested 
> parameter so ....
>         The logic behind what I want to do is pretty simple: create a jar 
> that contains files that are stripped of their ${environment} trailing ...
>         An example: Say I have a directory 
> ROOT/WEB-INF/conf/  I want to create a JAR that 
> has _only_ this file, renamed as 
> ROOT/WEB-INF/conf/    - that's it!
>Thanks for any input. The only other route I considered going was copying 
>files with the mapper, then adding those to the JAR but I don't see a way 
>to create a FileSet for the JAR out of the mapping set.
>I don't know .. am I missing something here?
>Thanks in Advance,
>Jeremy Kuhnash
>To unsubscribe, e-mail:   <>
>For additional commands, e-mail: <>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message