fixed a bug.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1693 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2007-01-07 23:29:50 +00:00
1 parent a7cc8ed961
commit 5a7df682ce
1 file changed
+2 -2
+2 -2
View File
@@ -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<String>() {
return new FilePath(channel,act(new FileCallable<String>() {
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) {