implement SFTP, SCPEXE wagons
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@154241 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
aaab7f48aa
commit
69ea99cae5
@ -146,6 +146,11 @@
|
||||
<artifactId>wagon-ssh</artifactId>
|
||||
<version>1.0-alpha-2-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>maven</groupId>
|
||||
<artifactId>wagon-ssh-external</artifactId>
|
||||
<version>1.0-alpha-2-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>maven</groupId>
|
||||
<artifactId>wagon-file</artifactId>
|
||||
|
||||
@ -36,11 +36,12 @@ import org.apache.maven.wagon.providers.file.FileWagon;
|
||||
import org.apache.maven.wagon.providers.ftp.FtpWagon;
|
||||
import org.apache.maven.wagon.providers.http.HttpWagon;
|
||||
import org.apache.maven.wagon.providers.ssh.ScpWagon;
|
||||
import org.apache.maven.wagon.providers.ssh.SftpWagon;
|
||||
import org.apache.maven.wagon.providers.sshext.ScpExternalWagon;
|
||||
import org.apache.maven.wagon.repository.Repository;
|
||||
import org.codehaus.plexus.util.FileUtils;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.net.MalformedURLException;
|
||||
import java.text.DateFormat;
|
||||
import java.text.SimpleDateFormat;
|
||||
@ -413,7 +414,6 @@ public class DefaultArtifactDeployer
|
||||
private Wagon getWagon( String protocol )
|
||||
throws MalformedURLException
|
||||
{
|
||||
// TODO: implement others (SFTP, SCPEXE)
|
||||
if ( protocol.equals( "http" ) )
|
||||
{
|
||||
return new HttpWagon();
|
||||
@ -422,6 +422,10 @@ public class DefaultArtifactDeployer
|
||||
{
|
||||
return new FtpWagon();
|
||||
}
|
||||
else if ( protocol.equals( "sftp" ) )
|
||||
{
|
||||
return new SftpWagon();
|
||||
}
|
||||
else if ( protocol.equals( "file" ) )
|
||||
{
|
||||
return new FileWagon();
|
||||
@ -430,6 +434,10 @@ public class DefaultArtifactDeployer
|
||||
{
|
||||
return new ScpWagon();
|
||||
}
|
||||
else if ( protocol.equals( "scpexe" ) )
|
||||
{
|
||||
return new ScpExternalWagon();
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new MalformedURLException( "Unknown Wagon protocol: " + protocol );
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user