Permalink
Browse files

don't prepend the bucket name to the file's path

  • Loading branch information...
1 parent 37346cf commit 747b785050183ced42531bd3f1e0d2e52a74fc52 @cemerick cemerick committed Feb 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/org/springframework/aws/maven/PrivateS3Wagon.java
@@ -88,7 +88,7 @@ private String getDestinationPath(String destination) {
@Override
protected void putResource(File source, String destination, TransferProgress progress) throws S3ServiceException, IOException {
buildDestinationPath(getDestinationPath(destination));
- S3Object object = new S3Object(this.bucket + destination);
+ S3Object object = new S3Object(this.basedir + destination);
object.setAcl(AccessControlList.REST_CANNED_PRIVATE);
object.setDataInputFile(source);
object.setContentLength(source.length());

0 comments on commit 747b785

Please sign in to comment.