How can I use Ant to create a zip containing all the files and subdirectories inside some root directory, but excluding the top-level directory itself from zip.
For example, let's say I have this file structure:
/foo splat.js /bar wheee.css
I want the zip to contain splat and wheee inside / bar, but I don't want it all to be in the 'foo' directory. In other words, unzipping this file in / honk should not create the foo directory; splat and bar should end in root / honk.
I am currently using this (extraneous details removed):
<zip destfile="${zipfile}" basedir="" includes="${distRoot}/**/*.*" />
What type of file set can replace the "includes" value for this?
source share