ant unzip concat zip,向zip的一個文件中添加一段字符串,再壓縮回去


  <unzip src="./RemoteDroidServer_v1.4.zip"
  dest="./temp">
  解壓到temp文件夾
  </unzip>
<concat destfile="./temp/config.ini" append="true">${line.separator}[email protected]/workspace/configuration</concat>
  添加字符串
  <zip destfile="./RemoteDroidServer.zip">
     <fileset dir="./temp" />

   </zip>

         再壓縮

  <delete includeEmptyDirs="true">
     <fileset dir="./temp"/>

   </delete>


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章