Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Ant unzip タスクの後でファイル階層からアーカイブ名を除外するにはどうすればよいですか?
たとえば、ant がフォルダーC:\tempで unzip タスクを実行すると、アーカイブ アーカイブからすべてのファイルが必要になりますが、代わりにC:\temp\t\file.tmp.
C:\temp
C:\temp\t\file.tmp
アーカイブ内のベース ディレクトリを効果的に除外できますか?
マッパーを使用して、宛先ディレクトリでのファイルの外観を指定します。
<unzip src="t.zip" dest="temp"> <globmapper from="t/*" to="*"/> </unzip>