我有一个zip文件“ A.zip”。它包含一个文件夹“ B”。在此文件夹中,我有一个简单的“ a.sql”文件。我需要将其复制到目标文件夹“ Test”。我使用了以下代码,但仍然它不起作用。请让我知道我该怎么做。
<target name="unzip.ubview" description="Unzips the zipped dump file from latest build">
<echo message="Extracting zip file" />
<unzip src="${IMP_LOC}/A.zip" dest="E:/Test" overwrite="true">
<patternset>
<include name="a*.sql"/>
</patternset>
<mapper>
<globmapper from="B/*" to="*"/>
</mapper>
</unzip>
</target>
关于什么
<target name="unzip.ubview" description="Unzips the zipped dump file from latest build">
<echo message="Extracting zip file" />
<unzip src="${IMP_LOC}/A.zip" dest="E:/Test" overwrite="true">
<patternset>
<include name="B/a*.sql"/>
</patternset>
<mapper>
<globmapper from="B/*" to="*"/>
</mapper>
</unzip>
</target>
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句