ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: preserve softlink using <copy>
Date Tue, 15 Apr 2003 06:48:14 GMT
On Mon, 14 Apr 2003, Zhu He <> wrote:

> Using <copy> in ANT, how to preserve but not follow a softlink?

You can't.

You can convince Ant to not follow the symlinks by setting
followsymlink to false on the nested fileset.

In Ant's CVS HEAD version (and thus in Ant 1.6) there is a new task
named <symlink>.  With the help of this task you can record the
symlinks present and try to recreate them at the new location, but I'm
not sure if/how this is going to work with relative symlinks.


View raw message