~ubuntu-branches/ubuntu/saucy/wagon2/saucy-proposed

« back to all changes in this revision

Viewing changes to wagon-providers/wagon-ssh-common/src/main/java/org/apache/maven/wagon/providers/ssh/ScpHelper.java

  • Committer: Package Import Robot
  • Author(s): Emmanuel Bourg
  • Date: 2013-05-16 01:37:59 UTC
  • mfrom: (5.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20130516013759-ek5jut1lbarviycf
Tags: 2.4-1
* New upstream release
  - Removed the patch for CVE-2013-0253 fixed in version 2.4
  - Refreshed the patches
  - Added the required build dependency on libplexus-component-metadata-java
  - Added Maven rules to ignore bnd and plexus-maven-plugin
  - Added a patch to fix a type cast issue in ScmWagon.java
* Fix the watch file to report the most recent versions
* Use the upstream tarball instead of a svn tag to fetch the orig source
* debian/copyright: Fixed a typo in the Format URI

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
import java.util.zip.ZipEntry;
46
46
import java.util.zip.ZipOutputStream;
47
47
 
 
48
/**
 
49
 * Scp helper for general algorithms on ssh server.
 
50
 * See {@link #putDirectory(Wagon, File, String) putDirectory(...)} for more info on bulk directory upload. 
 
51
 */
48
52
public class ScpHelper
49
53
{
50
54
    public static final char PATH_SEPARATOR = '/';
198
202
        return path;
199
203
    }
200
204
 
 
205
    /**
 
206
     * Put a whole directory content, by transferring a unique zip file and uncompressing it
 
207
     * on the target ssh server with <code>unzip</code> command.
 
208
     */
201
209
    public void putDirectory( Wagon wagon, File sourceDirectory, String destinationDirectory )
202
210
        throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
203
211
    {