I have a deployment script where I move a directory to another directory. In this directory I have a symlink relative to a parent folder like this:
abc -> ../dir/file
dir/file
is also in the directory which gets deployed.
I move the directory with the following lines of xml:
<move todir="${deploy.dir}">
<fileset dir="${to.deploy}">
<include name="**/*" />
</fileset>
</move>
Everything gets moved but not the symlinks. The stay in the ${deploy.dir}
. Why? Maybe Ant does not know how to set the new symlink (the new location)?
How can you fix this? Delete the symlink and use the symlink
target to make a new one?