You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Antoine Levy-Lambert <an...@gmx.de> on 2005/09/28 21:02:26 UTC
Re: Zipfileset problem. Help!
Hello,
run your build with ant -debug to figure out exactly which directories
are scanned by ant.
the second zipfileset might be better rewritten
<zipfileset dir="reports/daily/install" includes="**" />
meaning :
I want all the files located under reports/daily/install
what you wrote
<zipfileset dir="reports/daily/install" includes="**/install" />
means :
I want to have all the folders called install located under
reports/daily/install, which does not sound likely.
Cheers,
Antoine
S I wrote:
> Hi
>
> I'm trying to create a zip file of a parent folder with many
> subfolders with many different file types in each subfolder. However,
> I'm only interested in the *.rdl files in each subfolder and one
> subdir under the parent folder to be included in the final zip file.
> I want the .rdl files to sit at the root of the zip file w/o exporting
> their subfolder names. But I'm not successful. This is the way I
> have written the Ant script now:
>
> <zip destfile="reports.zip">
> <zipfileset dir="reports/daily" includes="**/*.rdl" prefix="/" />
> <zipfileset dir="reports/daily/install" includes="**/install" />
> </zip>
>
> Where reports/ is the grand parent right on my drive C:, daily is the
> parent folder, and there are about 50 subfolders under daily. I'm on
> WinXP desktop by the way.
>
> Doesn't matter whether I set prefix to space or slash, the .rdl parent
> folders under daily are still included but reports/daily itself is not
> appended. And as for the 2nd zipfileset, **/install doesn't work.
>
> Thanks
>
> Steven
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org