提交 a016f3da 编写于 作者: K Kohsuke Kawaguchi

[FIXED JENKINS-17343]

Don't break Windows XP, fall back gracefully to no-op.
上级 8aa91223
......@@ -63,6 +63,9 @@ Upcoming changes</a>
<div id="rc" style="display:none;"><!--=BEGIN=-->
<h3><a name=v1.510>What's new in 1.510</a> <!--=DATE=--></h3>
<ul class=image>
<li class=bug>
<tt>UnsatisfiedLinkError</tt> on <tt>CreateSymbolicLinkw</tt> on Windows XP.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-17343">issue 17343</a>)
<li class=bug>
Flyweight tasks should execute on the master if there's no static
executors available.
......
......@@ -1065,6 +1065,9 @@ public class Util {
return;
}
throw e;
} catch (UnsatisfiedLinkError e) {
// not available on this Windows
return;
}
} else {
String errmsg = "";
......
......@@ -80,6 +80,10 @@ public class Kernel32Utils {
* @param target
* If relative, resolved against the location of the symlink.
* If absolute, it's absolute.
* @throws UnsatisfiedLinkError
* If the function is not exported by kernel32.
* See http://msdn.microsoft.com/en-us/library/windows/desktop/aa363866(v=vs.85).aspx
* for compatibility info.
*/
public static void createSymbolicLink(File symlink, String target, boolean dirLink) throws IOException {
if (!Kernel32.INSTANCE.CreateSymbolicLinkW(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册