net.sourceforge.cruisecontrol.publishers
Class SCPPublisher
java.lang.Object
net.sourceforge.cruisecontrol.publishers.SCPPublisher
- All Implemented Interfaces:
- Publisher, java.io.Serializable
- public class SCPPublisher
- extends java.lang.Object
- implements Publisher
Used to scp a file to a remote location
- Author:
- Oren Miller
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SCPPublisher
public SCPPublisher()
setExecutableName
public void setExecutableName(java.lang.String executableName)
setSourceUser
public void setSourceUser(java.lang.String sourceUser)
setSourceHost
public void setSourceHost(java.lang.String sourceHost)
setSourceDir
public void setSourceDir(java.lang.String sourceDir)
setTargetUser
public void setTargetUser(java.lang.String targetUser)
setTargetHost
public void setTargetHost(java.lang.String targetHost)
setTargetDir
public void setTargetDir(java.lang.String targetDir)
setSSH
public void setSSH(java.lang.String ssh)
setOptions
public void setOptions(java.lang.String options)
setFile
public void setFile(java.lang.String file)
setTargetSeparator
public void setTargetSeparator(java.lang.String targetSeparator)
setSourceSeparator
public void setSourceSeparator(java.lang.String sourceSeparator)
validate
public void validate()
throws CruiseControlException
- Called after the configuration is read to make sure that all the mandatory parameters
were specified..
- Specified by:
validate
in interface Publisher
- 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
getLogFileName
protected java.lang.String getLogFileName(org.jdom.Element cruisecontrolLog)
throws CruiseControlException
- Throws:
CruiseControlException
executeCommand
protected void executeCommand(Commandline command)
throws CruiseControlException
- Throws:
CruiseControlException
createCommandline
protected Commandline createCommandline(java.lang.String file)