Closed
Description
I wanted to create Symlinks that would work on my local machine and in a VM, so I was happy to see the addition of relative symlinks.
However, I have found that the solution added in #567 does not work. The target used is relative to the root of the project folder, not relative the to the link being created.
If in this example ther is a file index.php:
<symlink link="dest" relative="true">
<fileset dir="src">
<include name="*" />
</fileset>
</symlink>
The link the is created is dest/index.php -> src/index.php
but this is wrong for a symlink, it should be dest/index.php -> ../src/index.php
.
For relative links to work the depth of the link from the project base needs to be calculated and the correct number of ../
added to the front of target. I have created an initial WIP, but this may need more work to refine possible use cases.
Metadata
Assignees
Labels
No labels