FTP, FILE deployers work. ssh(scp) on the way

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113524 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
michal committed 2003-06-19 22:02:37 +00:00
1 parent db6e173b60
commit c441b0427a
6 files changed
+95 -46

No files matched your search

@@ -64,11 +64,10 @@ import org.apache.maven.deploy.deployers.SshDeployer;
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.1 2003/06/17 22:06:00 michal Exp $
* @version $Id: DeployTool.java,v 1.2 2003/06/19 22:02:37 michal Exp $
*/
public class DeployTool
{
@@ -80,6 +79,12 @@ public class DeployTool
String url = request.getUrl();
Deployer deployer = null;
if (url == null || url.length() == 1)
{
throw new DeployException(
"No URL provided for repsoitory: "
+ request.getRepositoryAlias());
}
if (url.startsWith("http://"))
{
deployer = new HttpDeployer();