I have a zip file with the following structure
apache-tomcat-6.0.26.zip apache-tomcat-6.0.26/webapps/manager
I want to copy just the manager folder into another dir
I tried
<copy todir="${tomcat.webapp.dir}/manager/" includeEmptyDirs="true">
<zipfileset src="${tomcat.zip.file}/" >
<patternset>
<include name="apache-tomcat-${tomcat.version}/webapps/manager" />
</patternset>
</zipfileset>
</copy>
The output manager folder contains the following structure apache-tomcat-6.0.26/webapps/manager. I just need the manager folder and its content not its parents.
Tried changing the to but get an error msg that the folder is not an archieve