Changed SCP Deployer to SFTP deployer. I am done with functionality
(except of Http Deployer) Now I will test it deeper and assure that everything works. git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113536 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
a460147e30
commit
f1ac6b0815
9 files changed
+167
-140
No files matched your search
@@ -60,14 +60,14 @@ import org.apache.maven.deploy.deployers.Deployer;
|
||||
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.SshDeployer;
|
||||
import org.apache.maven.deploy.deployers.SFtpDeployer;
|
||||
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.2 2003/06/19 22:02:37 michal Exp $
|
||||
* @version $Id: DeployTool.java,v 1.3 2003/06/24 22:22:55 michal Exp $
|
||||
*/
|
||||
public class DeployTool
|
||||
{
|
||||
@@ -75,7 +75,6 @@ public class DeployTool
|
||||
|
||||
public void performUpload(DeployRequest request) throws DeployException
|
||||
{
|
||||
|
||||
String url = request.getUrl();
|
||||
Deployer deployer = null;
|
||||
|
||||
@@ -85,23 +84,22 @@ public class DeployTool
|
||||
"No URL provided for repsoitory: "
|
||||
+ request.getRepositoryAlias());
|
||||
}
|
||||
if (url.startsWith("http://"))
|
||||
if (url.startsWith(HttpDeployer.PROTOCOL))
|
||||
{
|
||||
deployer = new HttpDeployer();
|
||||
}
|
||||
|
||||
if (url.startsWith("file://"))
|
||||
if (url.startsWith(FileDeployer.PROTOCOL))
|
||||
{
|
||||
deployer = new FileDeployer();
|
||||
}
|
||||
if (url.startsWith("ssh://"))
|
||||
{
|
||||
deployer = new SshDeployer();
|
||||
}
|
||||
if (url.startsWith("ftp://"))
|
||||
if (url.startsWith(FtpDeployer.PROTOCOL))
|
||||
{
|
||||
deployer = new FtpDeployer();
|
||||
}
|
||||
if (url.startsWith(SFtpDeployer.PROTOCOL))
|
||||
{
|
||||
deployer = new SFtpDeployer();
|
||||
}
|
||||
if (deployer == null)
|
||||
{
|
||||
throw new UnsupportedProtocolDeployException(url);
|
||||
|
||||
Reference in new issue
Block a user