我使用下面的任務將文件夾壓縮到一個zip文件。但是當我解壓zip文件時,我發現文件夾中的符號鏈接丟失了。Ant壓縮任務會丟失符號鏈接?
<zip destfile="${file.path}">
<fileset dir="/tmp"/>
</zip>
例如,以前的文件如下所示。
lrwxrwxrwx 1 xxxx xxxx 25 Mar 15 21:02 libboost_atomic.so -> libboost_atomic.so.1.57.0
-rwxr-xr-x 1 xxxx xxxx 9135 Feb 8 04:46 libboost_atomic.so.1.57.0
當我使用Ant壓縮文件夾並解壓縮後,它看起來像下圖。
-rw-r--r-- 1 xxxx xxxx 9135 Feb 8 04:46 libboost_atomic.so
-rw-r--r-- 1 xxxx xxxx 9135 Feb 8 04:46 libboost_atomic.so.1.57.0