ANT directory “ziping”

I spent lot of time today to find how to zip an eclipse directory with ANT WHILE KEEPING the root directory in the archive, thus when unziping, clients get only one directory called eclipse containing all eclipse’s stuff.

Here’s my directories structure:

  • buildfolder
    • eclipse
      • configuration
        • config.ini
      • eclipse

Here is the ant code to zip the eclipse directory into a zip called containing the eclipse directory as root:

 <zip destfile="">
   <zipfileset dir="buildfolder">
      <include name="eclipse/**/**" />


One thought on “ANT directory “ziping”

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s