org.apache.tools.ant.taskdefs.optional.net

Class FTP.FTPDirectoryScanner.AntFTPRootFile

Enclosing Class:
FTP.FTPDirectoryScanner

protected class FTP.FTPDirectoryScanner.AntFTPRootFile
extends FTP.FTPDirectoryScanner.AntFTPFile

special class to represent the remote directory itself
Since:
Ant 1.6

Constructor Summary

AntFTPRootFile(FTPClient aclient, String remotedir)
constructor

Method Summary

String
getAbsolutePath()
find the absolute path
String
getRelativePath()
find out the relative path to root

Methods inherited from class org.apache.tools.ant.taskdefs.optional.net.FTP.FTPDirectoryScanner.AntFTPFile

exists, getAbsolutePath, getClient, getCurpwd, getFastRelativePath, getFile, getLink, getName, getRelativePath, isDirectory, isSymbolicLink, isTraverseSymlinks, setCurpwd, toString

Constructor Details

AntFTPRootFile

public AntFTPRootFile(FTPClient aclient,
                      String remotedir)
constructor
Parameters:
aclient - FTP client
remotedir - remote directory

Method Details

getAbsolutePath

public String getAbsolutePath()
find the absolute path
Overrides:
getAbsolutePath in interface FTP.FTPDirectoryScanner.AntFTPFile
Returns:
absolute path

getRelativePath

public String getRelativePath()
            throws BuildException,
                   IOException
find out the relative path to root
Overrides:
getRelativePath in interface FTP.FTPDirectoryScanner.AntFTPFile
Returns:
empty string
Throws:
BuildException - actually never