another option is to have an attribute on the zip task to cause all files to be added at the top-level - similar to flatter in the copy task.

Ant supports multiple filesets for its zip task I noticed.

Ian
Gert Driesen wrote:

Umesh,

Currently, the zip task only supports a single filset.

Please submit a feature request for this
(http://sourceforge.net/projects/nant/) if you'd like to see support for
multiple filesets added to a future release.

Thanks,

Gert
----- Original Message ----- From: "Mahajan, Umesh" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 25, 2003 12:19 AM
Subject: [Nant-users] Zip task - Multiple filesets





I want to include multiple filesets in a zip file. It's taking only the
first fileset.
How do I tell to use multiple filesets (that have different base
directories) ?

<zip zipfile="${rootdir}/build.zip">
<verbose/>
<fileset basedir="${build_dir}\bin" >
<includes name="*.dll"/>
</fileset>
<fileset basedir="${build_dir}\Doc">
<includes name="*.xml"/>
</fileset>
</zip>
This example is only putting "*.dll" in the zip file (first fileset)


Potentially, I could use : <zip zipfile="${rootdir}/build.zip"> <verbose/> <fileset basedir="${build_dir}" > <includes name="bin/*.dll"/> <includes name="doc/*.xml"/> </fileset> </zip>

But, it adds reference to "doc/" and "bin/"  in the zip file that I don't
want. I want all the files to go right at the root level.

I'm sure, there must be a solution, but I can't find it in the
documentation.

Thanks,

- Umesh







-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users




--
Ian MacLean, Developer, ActiveState, a division of Sophos
http://www.ActiveState.com





------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to