org.apache.tools.ant.taskdefs.optional.netClass FTPTaskMirrorImpl.FTPDirectoryScanner.AntFTPRootFile
- java.lang.Object
- org.apache.tools.ant.taskdefs.optional.net.FTPTaskMirrorImpl.FTPDirectoryScanner.AntFTPFile
- org.apache.tools.ant.taskdefs.optional.net.FTPTaskMirrorImpl.FTPDirectoryScanner.AntFTPRootFile
- Enclosing class:
- FTPTaskMirrorImpl.FTPDirectoryScanner
protected class FTPTaskMirrorImpl.FTPDirectoryScanner.AntFTPRootFile extends FTPTaskMirrorImpl.FTPDirectoryScanner.AntFTPFilespecial class to represent the remote directory itself
- Since:
- Ant 1.6
Constructor Summary
Constructors Constructor and Description AntFTPRootFile(org.apache.commons.net.ftp.FTPClient aclient, java.lang.String remotedir)constructor
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.StringgetAbsolutePath()find the absolute pathjava.lang.StringgetRelativePath()find out the relative path to root
Methods inherited from class org.apache.tools.ant.taskdefs.optional.net.FTPTaskMirrorImpl.FTPDirectoryScanner.AntFTPFile
exists, getClient, getCurpwd, getCurpwdPlusFileSep, getFastRelativePath, getFile, getLink, getName, isDirectory, isSymbolicLink, isTraverseSymlinks, setCurpwd, toString
Constructor Detail
AntFTPRootFile
public AntFTPRootFile(org.apache.commons.net.ftp.FTPClient aclient, java.lang.String remotedir)constructor
- Parameters:
aclient- FTP clientremotedir- remote directory
Method Detail
getAbsolutePath
public java.lang.String getAbsolutePath()find the absolute path
- Overrides:
getAbsolutePathin classFTPTaskMirrorImpl.FTPDirectoryScanner.AntFTPFile- Returns:
- absolute path
getRelativePath
public java.lang.String getRelativePath() throws BuildException, java.io.IOExceptionfind out the relative path to root
- Overrides:
getRelativePathin classFTPTaskMirrorImpl.FTPDirectoryScanner.AntFTPFile- Returns:
- empty string
- Throws:
BuildException- actually neverjava.io.IOException- actually never