hudson.util.jna
Class Kernel32Utils
java.lang.Object
hudson.util.jna.Kernel32Utils
public class Kernel32Utils
- extends Object
- Author:
- Kohsuke Kawaguchi
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Kernel32Utils
public Kernel32Utils()
waitForExitProcess
public static int waitForExitProcess(com.sun.jna.Pointer hProcess)
throws InterruptedException
- Given the process handle, waits for its completion and returns the exit code.
- Throws:
InterruptedException
getWin32FileAttributes
public static int getWin32FileAttributes(File file)
throws IOException
- Throws:
IOException
createSymbolicLink
public static void createSymbolicLink(File symlink,
String target,
boolean dirLink)
throws IOException
- Parameters:
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.
IOException
isJunctionOrSymlink
public static boolean isJunctionOrSymlink(File file)
throws IOException
- Throws:
IOException
Copyright © 2004-2013. All Rights Reserved.