[JENKINS-9118]

Tar/untar now correctly supports symlinks.
This commit is contained in:
Kohsuke Kawaguchi committed 2012-03-09 18:26:22 -08:00
1 parent 48daab0f0b
commit d184d53b24
6 files changed
+118 -4

No files matched your search

+9 -1
View File
@@ -1022,6 +1022,14 @@ public class Util {
}
}
/**
* @deprecated as of 1.456
* Use {@link #resolveSymlink(File)}
*/
public static String resolveSymlink(File link, TaskListener listener) throws InterruptedException, IOException {
return resolveSymlink(link);
}
/**
* Resolves symlink, if the given file is a symlink. Otherwise return null.
* <p>
@@ -1030,7 +1038,7 @@ public class Util {
* @param listener
* If we rely on an external command to resolve symlink, this is it.
*/
public static String resolveSymlink(File link, TaskListener listener) throws InterruptedException, IOException {
public static String resolveSymlink(File link) throws InterruptedException, IOException {
if(Functions.isWindows()) return null;
String filename = link.getAbsolutePath();