I have several zip files that I need to unzip within Ant. All zip files are in the same directory and have the same internal directory and file structure.
Therefore, I use the following fragment to decompress all zip files in the directory, but each zip file does not contain the parent folder in the root, so each subsequent zip file is unpacked and overwrites the previous files.
<unzip dest="C:/Program Files/Samsung/Samsung TV Apps SDK/Apps">
<fileset dir=".">
<include name="**/*.zip"/>
</fileset>
</unzip>
Is there a better way to unzip a group of files and create a directory to unzip them based on the name of the zip file?
So if zip files:
1.zip
2.zip
3.zip
then the contents of each of them will be extracted to:
1/
2/
3/
thank
Steve source
share