Author: adriancole
Date: 2009-03-09 18:30:47 -0400 (Mon, 09 Mar 2009)
New Revision: 7894
Modified:
core/branches/flat/pom.xml
core/branches/flat/src/main/java/org/horizon/loader/s3/Jets3tS3Connection.java
Log:
updated to v0.7.0 jets3t
Modified: core/branches/flat/pom.xml
===================================================================
--- core/branches/flat/pom.xml 2009-03-09 22:10:53 UTC (rev 7893)
+++ core/branches/flat/pom.xml 2009-03-09 22:30:47 UTC (rev 7894)
@@ -69,7 +69,7 @@
<dependency>
<groupId>net.java.dev.jets3t</groupId>
<artifactId>jets3t</artifactId>
- <version>0.6.1</version>
+ <version>0.7.0</version>
<optional>true</optional>
</dependency>
Modified: core/branches/flat/src/main/java/org/horizon/loader/s3/Jets3tS3Connection.java
===================================================================
---
core/branches/flat/src/main/java/org/horizon/loader/s3/Jets3tS3Connection.java 2009-03-09
22:10:53 UTC (rev 7893)
+++
core/branches/flat/src/main/java/org/horizon/loader/s3/Jets3tS3Connection.java 2009-03-09
22:30:47 UTC (rev 7894)
@@ -60,13 +60,7 @@
* @see org.jets3t.service.S3Service#createBucket(String)
*/
public S3Bucket getOrCreateBucket(String bucketName) throws S3ServiceException {
- /* version 0.7.0 supports the following
- return s3Service.getOrCreateBucket(config.getBucket()); */
- if (s3Service.isBucketAccessible(bucketName)) {
- return s3Service.getBucket(bucketName);
- } else {
- return s3Service.createBucket(bucketName);
- }
+ return s3Service.getOrCreateBucket(bucketName);
}
/**
Show replies by date