-
Notifications
You must be signed in to change notification settings - Fork 50
Closed
Description
We have many symlinks pointing to huge directories within our project. Because this archiver follows symlinks on Windows machines, the build stalls when eg. copying standard resources.
I have found the bug at AbstractArchiver.java
:
private boolean isSymlinkSupported()
{
return Os.isFamily( Os.FAMILY_UNIX ) && Java7Reflector.isAtLeastJava7();
}
This should be changed to something like
return (Os.isFamily( Os.FAMILY_UNIX ) || Os.isFamily( Os.FAMILY_WINDOWS )) && Java7Reflector.isAtLeastJava7();
And the next strange thing is the usage of this method:
collection.setFollowingSymLinks( !isSymlinkSupported() );When the OS does not support symlinks then the collection should follow them?