Title: 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

Reply via email to