Ant zip: how to remove original directory from the path -



Ant zip: how to remove original directory from the path -

i have structure

component1/database1/... component1/code/... component2/database2/... component2/code/... etc...

i want create zip has structure:

database1/... database2/... etc...

with code:

<zip destfile="db.zip" basedir="buildpath" includes="*/database*/**"> </zip>

it creates:

component1/database1/... component2/database2/...

suggestions on how rid of first directories? thanks

why don't seek copying folder construction temp folder , seek zipping it?

https://ant.apache.org/manual/tasks/copydir.html https://ant.apache.org/manual/tasks/zip.html

ant zip

Comments

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -