[FIXED JENKINS-15316] Harmless but noisy exception running builds on some Windows systems in non-English locale.

Falling back to just checking for ‘FileSystemException’ since detail message about missing required privilege may be translated.
This commit is contained in:
Jesse Glick committed 2012-10-15 14:52:04 -04:00
1 parent 3e7fcc9904
commit ced5c44323
2 files changed
+4 -2

No files matched your search

+1 -1
View File
@@ -1071,7 +1071,7 @@ public class Util {
if (x2 instanceof UnsupportedOperationException) {
return true; // no symlinks on this platform
}
if (Functions.isWindows() && String.valueOf(x2).contains("A required privilege is not held by the client.")) {
if (Functions.isWindows() && String.valueOf(x2).contains("java.nio.file.FileSystemException")) {
if (warnedSymlinks.compareAndSet(false, true)) {
LOGGER.warning("Symbolic links enabled on this platform but disabled for this user; run as administrator or use Local Security Policy > Security Settings > Local Policies > User Rights Assignment > Create symbolic links");
}