ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jon Stevens <latch...@gmail.com>
Subject Re: Union + Tar
Date Fri, 25 Jun 2010 20:55:43 GMT
Ok, how do I do the same thing with the war task lib directory?

<war>
   <lib>
        need to put a reference to my union in here.
   </lib>
</war>

jon


On Fri, Jun 25, 2010 at 9:47 AM, Jon Stevens <latchkey@gmail.com> wrote:

> sweet. works like a charm (even though it is a bit non-intuitive). mind if
> i submit a diff to the tar documentation page with this example?
>
> jon
>
>
> On Thu, Jun 24, 2010 at 9:10 PM, Stefan Bodewig <bodewig@apache.org>wrote:
>
>> On 2010-06-25, Jon Stevens wrote:
>>
>> > Now, I'd like to reference that Union within a <tarfileset>... something
>> > like this:
>>
>> >         <tar destfile="${target.dir}/${project.name}.tgz"
>> compression="gzip"
>> > longfile="gnu">
>> >             <tarfileset prefix="lib">
>> >                 <resources refid="all.classpath" />
>> >             </tarfileset>
>> >         </tar>
>>
>> > I'm getting this error (ant 1.8.1):
>>
>> > only single argument resource collections are supported as archives
>>
>> To <tarfileset> a nested resource defines the tar archive to read
>> TarResources from.
>>
>> IIUC this is not what you want, you are using tarfileset because of the
>> prefix attribute, right?  If so, use <mappedresources> instead.
>>
>>         <tar destfile="${target.dir}/${project.name}.tgz"
>>              compression="gzip" longfile="gnu">
>>              <mappedresources>
>>                 <resources refid="all.classpath" />
>>                 <globmapper from="*" to="lib/*"/>
>>             </mappedresources>
>>         </tar>
>>
>> Stefan
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
>> For additional commands, e-mail: dev-help@ant.apache.org
>>
>>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message