public class Kernel32Utils extends Object
Constructor and Description |
---|
Kernel32Utils() |
Modifier and Type | Method and Description |
---|---|
static void |
createSymbolicLink(File symlink,
String target,
boolean dirLink)
Deprecated.
|
static File |
getTempDir() |
static int |
getWin32FileAttributes(File file)
Deprecated.
Use
Files.readAttributes(java.nio.file.Path, java.lang.Class<A>, java.nio.file.LinkOption...) with
DosFileAttributes and reflective calls to
WindowsFileAttributes if necessary. |
static boolean |
isJunctionOrSymlink(File file)
Deprecated.
Use
Util.isSymlink(java.io.File) to detect symbolic links and junctions instead. |
static int |
waitForExitProcess(com.sun.jna.Pointer hProcess)
Given the process handle, waits for its completion and returns the exit code.
|
public static int waitForExitProcess(com.sun.jna.Pointer hProcess) throws InterruptedException
InterruptedException
@Deprecated public static int getWin32FileAttributes(File file) throws IOException
Files.readAttributes(java.nio.file.Path, java.lang.Class<A>, java.nio.file.LinkOption...)
with
DosFileAttributes
and reflective calls to
WindowsFileAttributes if necessary.IOException
@Deprecated public static void createSymbolicLink(File symlink, String target, boolean dirLink) throws IOException
Util.createSymlink(java.io.File, java.lang.String, java.lang.String, hudson.model.TaskListener)
instead.target
- If relative, resolved against the location of the symlink.
If absolute, it's absolute.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
@Deprecated public static boolean isJunctionOrSymlink(File file) throws IOException
Util.isSymlink(java.io.File)
to detect symbolic links and junctions instead.IOException
public static File getTempDir()
Copyright © 2004–2021. All rights reserved.