You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Peter Vogel <pv...@arsin.com> on 2001/06/09 00:33:54 UTC
bug?
Am I just missing something here? I've tried all kinds of
permutations of <includes> and <excludes> directives but I'm
still getting two copies of almost everything in my tarball, for
example
C:\e2open\b1003\ehub>tar tzf ehub.tar.gz | grep bw30
dist/lib/bw30.jar
dist/lib/bw30.jar
The <tar> task in question:
<tar tarfile="${ant.project.name}.tar" basedir="realdist">
<tarfileset dir="realdist" mode="755">
<include name="**/*.sh"/>
<include name="**/*.csh"/>
</tarfileset>
<tarfileset dir="realdist">
<include name="**/*"/>
<exclude name="**/*.sh"/>
<exclude name="**/*.csh"/>
</tarfileset>
</tar>
Thanks!
-Peter
Re: bug?
Posted by Stefan Bodewig <bo...@apache.org>.
Peter Vogel <pv...@arsin.com> wrote:
> <tar tarfile="${ant.project.name}.tar" basedir="realdist">
The basedir is the problem here, this forms an implicit fileset with
default permissions - and it gets handled first.
Just omit the attribute.
Stefan