ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yves Willems" <>
Subject tar with tarfileset
Date Wed, 29 Mar 2006 12:13:22 GMT
Hi all,


I want to make a tar file holding just 3 files, but prefixed with a certain
directory name.

I created the following target:


<target name="make.tar">

        <tar tarfile="my.tar" basedir="${basedir}">

            <tarfileset dir="${basedir}" prefix="/anyprefix">

                <include name="lfile1"/>

                <include name="file2"/>

                <include name="file3"/>





However when I run this thing it adds recursively ALL files under the
basedir directory to my tar file.

What am I doing wrong?


(I'm running 1.6.5)



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