net.sourceforge.cruisecontrol.publishers
Class FTPPublisher
java.lang.Object
net.sourceforge.cruisecontrol.util.AbstractFTPClass
net.sourceforge.cruisecontrol.publishers.FTPPublisher
- All Implemented Interfaces:
- Publisher, java.io.Serializable
- public class FTPPublisher
- extends AbstractFTPClass
- implements Publisher
Publishes the XML log file and the published artifacts via FTP to
a remote host. The ArtifactsPublisher must be listed before this
task in order to publish the artifacts.
- Author:
- Matt Albrecht
- See Also:
- Serialized Form
Method Summary |
void |
publish(org.jdom.Element cruisecontrolLog)
Define the publishing. |
void |
setDeleteArtifacts(boolean shouldDelete)
|
void |
setDestDir(java.lang.String dir)
The remote directory to put the artifacts into. |
void |
setSrcDir(java.lang.String dir)
|
void |
validate()
Called after the configuration is read to make sure that all the mandatory parameters
were specified.. |
Methods inherited from class net.sourceforge.cruisecontrol.util.AbstractFTPClass |
closeFTP, makeDir, makeDirs, makeDirsForFile, openFTP, resolveFile, sendFile, sendFileToFTPPath, sendStream, setBinary, setPassive, setTargetDir, setTargetHost, setTargetPasswd, setTargetPort, setTargetSeparator, setTargetUser |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FTPPublisher
public FTPPublisher()
setDestDir
public void setDestDir(java.lang.String dir)
- The remote directory to put the artifacts into.
setSrcDir
public void setSrcDir(java.lang.String dir)
setDeleteArtifacts
public void setDeleteArtifacts(boolean shouldDelete)
validate
public void validate()
throws CruiseControlException
- Description copied from interface:
Publisher
- Called after the configuration is read to make sure that all the mandatory parameters
were specified..
- Specified by:
validate
in interface Publisher
- Overrides:
validate
in class AbstractFTPClass
- Throws:
CruiseControlException
- if there was a configuration error.
publish
public void publish(org.jdom.Element cruisecontrolLog)
throws CruiseControlException
- Description copied from interface:
Publisher
- Define the publishing.
- Specified by:
publish
in interface Publisher
- Parameters:
cruisecontrolLog
- JDOM Element representation of the main cruisecontrol build log
- Throws:
CruiseControlException