【发布时间】:2016-05-31 14:57:18
【问题描述】:
我需要使用 Apache Ant 任务获取 ZIP 文件中的文件名列表,而无需先解压缩。它也应该独立于操作系统,例如:如果 My.zip 包含:
dir1/path/to/file1.html
dir1/path/to/file2.jpg
dir1/another/path/file3.txt
dir2/some/path/to/file4.png
dir2/file5.doc
Ant 任务应该返回上面的列表以及相对路径 + 文件名。
【问题讨论】: