mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-14 20:42:21 +00:00
Move Windows util code into test sources
Signed-off-by: Matt Sicker <boards@gmail.com>
This commit is contained in:
1 parent
b747845f16
commit
a489cc4ee7
6 files changed
+53
-44
No files matched your search
@@ -26,6 +26,7 @@ package hudson;
|
||||
import hudson.FilePath.TarCompression;
|
||||
import hudson.model.TaskListener;
|
||||
import hudson.os.PosixAPI;
|
||||
import hudson.os.WindowsUtil;
|
||||
import hudson.remoting.VirtualChannel;
|
||||
import hudson.util.NullStream;
|
||||
import hudson.util.StreamTaskListener;
|
||||
@@ -836,7 +837,7 @@ public class FilePathTest {
|
||||
Path targetDir = temp.newFolder("targetDir").toPath();
|
||||
Path targetContents = Files.createFile(targetDir.resolve("contents.txt"));
|
||||
Path toDelete = temp.newFolder("toDelete").toPath();
|
||||
File junction = Util.createJunction(toDelete.resolve("junction").toFile(), targetDir.toFile());
|
||||
File junction = WindowsUtil.createJunction(toDelete.resolve("junction").toFile(), targetDir.toFile());
|
||||
Files.createFile(toDelete.resolve("foo"));
|
||||
Files.createFile(toDelete.resolve("bar"));
|
||||
FilePath f = new FilePath(toDelete.toFile());
|
||||
|
||||
Reference in new issue
Block a user