added one more method.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2982 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2007-04-08 19:30:40 +00:00
1 parent ee63d5187c
commit 964fdabe18
1 file changed
+7
+7
View File
@@ -828,6 +828,13 @@ public final class FilePath implements Serializable {
else return Hudson.MasterComputer.localChannel;
}
/**
* Returns true if this {@link FilePath} represents a remote file.
*/
public boolean isRemote() {
return channel;
}
private void writeObject(ObjectOutputStream oos) throws IOException {
Channel target = Channel.current();