Added SCP deloyer.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113537 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
f1ac6b0815
commit
cd372b2d5f
5 files changed
+568
-161
No files matched your search
@@ -61,13 +61,14 @@ import org.apache.maven.deploy.deployers.FileDeployer;
|
||||
import org.apache.maven.deploy.deployers.FtpDeployer;
|
||||
import org.apache.maven.deploy.deployers.HttpDeployer;
|
||||
import org.apache.maven.deploy.deployers.SFtpDeployer;
|
||||
import org.apache.maven.deploy.deployers.ScpDeployer;
|
||||
import org.apache.maven.deploy.exceptions.DeployException;
|
||||
import org.apache.maven.deploy.exceptions.UnsupportedProtocolDeployException;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author <a href="michal.maczka@dimatics.com">Michal Maczka</a>
|
||||
* @version $Id: DeployTool.java,v 1.3 2003/06/24 22:22:55 michal Exp $
|
||||
* @version $Id: DeployTool.java,v 1.4 2003/06/25 12:33:11 michal Exp $
|
||||
*/
|
||||
public class DeployTool
|
||||
{
|
||||
@@ -100,6 +101,10 @@ public class DeployTool
|
||||
{
|
||||
deployer = new SFtpDeployer();
|
||||
}
|
||||
if (url.startsWith(ScpDeployer.PROTOCOL))
|
||||
{
|
||||
deployer = new ScpDeployer();
|
||||
}
|
||||
if (deployer == null)
|
||||
{
|
||||
throw new UnsupportedProtocolDeployException(url);
|
||||
|
||||
Reference in new issue
Block a user