net.sourceforge.cruisecontrol.publishers
Class SCPPublisher

java.lang.Object
  extended bynet.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

Constructor Summary
SCPPublisher()
           
 
Method Summary
protected  Commandline createCommandline(java.lang.String file)
           
protected  void executeCommand(Commandline command)
           
protected  java.lang.String getLogFileName(org.jdom.Element cruisecontrolLog)
           
 void publish(org.jdom.Element cruisecontrolLog)
          Define the publishing.
 void setExecutableName(java.lang.String executableName)
           
 void setFile(java.lang.String file)
           
 void setOptions(java.lang.String options)
           
 void setSourceDir(java.lang.String sourceDir)
           
 void setSourceHost(java.lang.String sourceHost)
           
 void setSourceSeparator(java.lang.String sourceSeparator)
           
 void setSourceUser(java.lang.String sourceUser)
           
 void setSSH(java.lang.String ssh)
           
 void setTargetDir(java.lang.String targetDir)
           
 void setTargetHost(java.lang.String targetHost)
           
 void setTargetSeparator(java.lang.String targetSeparator)
           
 void setTargetUser(java.lang.String targetUser)
           
 void validate()
          Called after the configuration is read to make sure that all the mandatory parameters were specified..
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SCPPublisher

public SCPPublisher()
Method Detail

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)