Permalink
Browse files

Refactor to work on official AWS APIs

The code now builds on top of the official AWS APIs[1] instead of JetS3t. In
addition, the code is highly tested should not have any Sonar violations.

[1]: http://aws.amazon.com/sdkforjava/
  • Loading branch information...
1 parent 5d4fbee commit c380aa8e6cb4d29344c23ba3430875ce942941bf @nebhale nebhale committed Dec 7, 2011
Showing with 2,684 additions and 1,149 deletions.
  1. +11 −1 .settings/org.eclipse.jdt.core.prefs
  2. +3 −3 .settings/org.eclipse.jdt.ui.prefs
  3. +7 −3 pom.xml
  4. +109 −144 src/main/java/org/springframework/build/aws/maven/AbstractWagon.java
  5. +40 −0 src/main/java/org/springframework/build/aws/maven/AuthenticationInfoAWSCredentials.java
  6. +57 −0 src/main/java/org/springframework/build/aws/maven/IoUtils.java
  7. +38 −0 src/main/java/org/springframework/build/aws/maven/NullProtectingProxyInfoProvider.java
  8. +56 −0 src/main/java/org/springframework/build/aws/maven/S3Utils.java
  9. +38 −106 src/main/java/org/springframework/build/aws/maven/SessionListenerSupport.java
  10. +150 −137 src/main/java/org/springframework/build/aws/maven/SimpleStorageServiceWagon.java
  11. +114 −0 src/main/java/org/springframework/build/aws/maven/StandardSessionListenerSupport.java
  12. +91 −0 src/main/java/org/springframework/build/aws/maven/StandardTransferListenerSupport.java
  13. +40 −0 src/main/java/org/springframework/build/aws/maven/StandardTransferProgress.java
  14. +41 −90 src/main/java/org/springframework/build/aws/maven/TransferListenerSupport.java
  15. +11 −28 src/main/java/org/springframework/build/aws/maven/TransferProgress.java
  16. +9 −17 src/main/java/org/springframework/build/aws/maven/TransferProgressFileInputStream.java
  17. +9 −17 src/main/java/org/springframework/build/aws/maven/TransferProgressFileOutputStream.java
  18. +1 −1 src/main/resources/logback.xml
  19. +0 −602 src/main/resources/mime.types
  20. +560 −0 src/test/java/org/springframework/build/aws/maven/AbstraktWagonTests.java
  21. +44 −0 src/test/java/org/springframework/build/aws/maven/AuthenticationInfoAwsCredentialsTests.java
  22. +55 −0 src/test/java/org/springframework/build/aws/maven/NullProtectingProxyInfoProviderTests.java
  23. +82 −0 src/test/java/org/springframework/build/aws/maven/S3UtilsTests.java
  24. +250 −0 src/test/java/org/springframework/build/aws/maven/SimpleStorageServiceWagonIntegrationTests.java
  25. +102 −0 src/test/java/org/springframework/build/aws/maven/StandardSessionListenerSupportTests.java
  26. +95 −0 src/test/java/org/springframework/build/aws/maven/StandardTransferListenerSupportTests.java
  27. +41 −0 src/test/java/org/springframework/build/aws/maven/StubTransferProgress.java
  28. +87 −0 src/test/java/org/springframework/build/aws/maven/TransferProgressFileInputStreamTests.java
  29. +94 −0 src/test/java/org/springframework/build/aws/maven/TransferProgressFileOuputStreamTests.java
  30. +46 −0 src/test/java/org/springframework/build/aws/maven/TransferProgressTests.java
  31. +91 −0 src/test/java/org/springframework/build/aws/maven/matchers/ListObjectsRequestMatcher.java
  32. +45 −0 src/test/java/org/springframework/build/aws/maven/matchers/Matchers.java
  33. +112 −0 src/test/java/org/springframework/build/aws/maven/matchers/PutObjectRequestMatcher.java
  34. +72 −0 src/test/java/org/springframework/build/aws/maven/matchers/SessionEventMatcher.java
  35. +82 −0 src/test/java/org/springframework/build/aws/maven/matchers/TransferEventMatcher.java
  36. +1 −0 src/test/resources/test.txt
@@ -1,4 +1,4 @@
-#Tue Jul 19 16:43:48 BST 2011
+#Tue Dec 06 13:12:42 GMT 2011
eclipse.preferences.version=1
org.eclipse.jdt.core.codeComplete.argumentPrefixes=
org.eclipse.jdt.core.codeComplete.argumentSuffixes=
@@ -53,6 +53,7 @@ org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=disabled
org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=protected
org.eclipse.jdt.core.compiler.problem.missingJavadocTagDescription=all_standard_tags
org.eclipse.jdt.core.compiler.problem.missingJavadocTags=warning
+org.eclipse.jdt.core.compiler.problem.missingJavadocTagsMethodTypeParameters=disabled
org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled
org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=protected
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=warning
@@ -115,12 +116,14 @@ org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0
org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80
org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=0
org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16
org.eclipse.jdt.core.formatter.blank_lines_after_imports=1
org.eclipse.jdt.core.formatter.blank_lines_after_package=1
org.eclipse.jdt.core.formatter.blank_lines_before_field=1
@@ -158,6 +161,7 @@ org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=do not inse
org.eclipse.jdt.core.formatter.comment.line_length=120
org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true
org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true
+org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false
org.eclipse.jdt.core.formatter.compact_else_if=true
org.eclipse.jdt.core.formatter.continuation_indentation=1
org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=1
@@ -249,12 +253,14 @@ org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invoca
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert
org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
@@ -278,6 +284,7 @@ org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invoc
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
@@ -333,6 +340,7 @@ org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invoc
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert
org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
@@ -342,6 +350,7 @@ org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=inser
org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
@@ -368,4 +377,5 @@ org.eclipse.jdt.core.formatter.tabulation.size=4
org.eclipse.jdt.core.formatter.use_on_off_tags=false
org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
+org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true
org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true

Large diffs are not rendered by default.

Oops, something went wrong.
View
10 pom.xml
@@ -18,9 +18,6 @@
<logback.version>1.0.0</logback.version>
<mockito.version>1.8.5</mockito.version>
<slf4j.version>1.6.4</slf4j.version>
-
- <httpclient.version>3.1</httpclient.version>
- <jets3t.version>0.8.0</jets3t.version>
<wagon.version>2.1</wagon.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -59,6 +56,7 @@
<groupId>junit</groupId>
<artifactId>junit-dep</artifactId>
<version>${junit.version}</version>
+ <scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.maven.wagon</groupId>
@@ -67,6 +65,12 @@
<scope>provided</scope>
</dependency>
<dependency>
+ <groupId>org.mockito</groupId>
+ <artifactId>mockito-core</artifactId>
+ <version>${mockito.version}</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<version>${slf4j.version}</version>
Oops, something went wrong.

0 comments on commit c380aa8

Please sign in to comment.