ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zhu He" <...@cisco.com>
Subject preserve softlink using <copy>
Date Mon, 14 Apr 2003 19:20:41 GMT
Using <copy> in ANT, how to preserve but not follow a softlink?

For example, in {sourceDir}, I have
-dir1 (the real stuff inside)
-link1 (softlink to dir1)

How do I use <copy> to copy those 2 in the {destDir}?

I tried 
<copy>
    <fileset followsymlink="false" ...>
    .....
</copy>
the result is {destDir} has
-dir1
only.

I also tried 
<copy>
    <fileset followsymlink="true" ...>
    ....
</copy>
the result is {destDir} has
-dir1
-link1  (real copy of dir1, not the softlink, basically double the size)


I really want is
-dir1
-link1 (a softlink to dir1, not a real directory) 


thx in advance.
Zhu He



Mime
View raw message