jenkinsci/jenkins — pull request #528 by photoionized (2012-07-24 18:22:19+00:00)
Title: Fix Windows Symlink Detection

On Windows platforms hudson.Util.isSymlink code does not properly detect symlinks or directory junctions. One major problem that this causes is jenkins following symlinks created during the build process when deleting the previous workspace on a new build. This is a problem when symlinks exist to files outside of the main workspace directory, as this modifies the underlying system by attempting to delete the symlinked folders/files rather than the symlinks themselves. This commit fixes symlink detection by using jna on Windows.