From 5a7df682cee5107c064d21a4fe1dada421aaf8de Mon Sep 17 00:00:00 2001 From: kohsuke Date: Sun, 7 Jan 2007 23:29:50 +0000 Subject: [PATCH] fixed a bug. git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1693 71c3de6d-444a-0410-be80-ed276b4c234a --- core/src/main/java/hudson/FilePath.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/hudson/FilePath.java b/core/src/main/java/hudson/FilePath.java index d217bd28a4..07a91eafa0 100644 --- a/core/src/main/java/hudson/FilePath.java +++ b/core/src/main/java/hudson/FilePath.java @@ -323,7 +323,7 @@ public final class FilePath implements Serializable { */ public FilePath createTextTempFile(final String prefix, final String suffix, final String contents, final boolean inThisDirectory) throws IOException, InterruptedException { try { - return new FilePath(this,act(new FileCallable() { + return new FilePath(channel,act(new FileCallable() { public String invoke(File dir, VirtualChannel channel) throws IOException { if(!inThisDirectory) dir = null; @@ -333,7 +333,7 @@ public final class FilePath implements Serializable { w.write(contents); w.close(); - return f.getName(); + return f.getAbsolutePath(); } })); } catch (IOException e) {