Here is my ant apply task:
<apply executable="${7z.exec}" failonerror="true">
<arg value="x"/>
<fileset dir="${distdir}">
<include name="**/*.zip"/>
</fileset>
</apply>
7z.exec is an absolute path to the 7z.exe executable. How can I tell 7zip to deposit the unzipped files into the same folder as the .zip?
You need to use the 7z
-oswitch for the eXtract command and an Ant mapper to get just the path to the zip. The Antapplytask has a targetfile element that allows you extra flexibility in composing the command line for the task. Leads to something like: