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

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -