ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Tar/Tarfileset broken on Ant 1.3 ?
Date Mon, 06 Aug 2001 16:08:39 GMT
There are bugs in Ant 1.3's tarfilest, but what you see is expected
behavior:

>  <tar tarfile="${dist}/http-proxy.tar">
>    <tarfileset dir="${build}/http.proxy" mode="755" username="0" group="0">
>      <include name="${build}/http.proxy/**/*.sh"/>
>    </tarfileset>
>    <tarfileset dir="${build}/http.proxy" mode="644" username="0" group="0">
>      <include name="{build}/http.proxy/**/*.jar"/>
>    </tarfileset>
>  </tar>

The include pattern is supposed to be relative to the dir attribute -
Ant doesn't find any files and therefore assumes the archive is
up-to-date.

Make that

 <tar tarfile="${dist}/http-proxy.tar">
   <tarfileset dir="${build}/http.proxy" mode="755" username="0" group="0">
     <include name="**/*.sh"/>
   </tarfileset>
   <tarfileset dir="${build}/http.proxy" mode="644" username="0" group="0">
     <include name="**/*.jar"/>
   </tarfileset>
 </tar>

Stefan

Mime
View raw message