Permalink
Browse files

deploy to repo with hashes

  • Loading branch information...
albertlatacz committed Apr 22, 2013
1 parent 6e5f8f3 commit 8ef43c2338d1cd0d74a17816863809c7edfb7779
Showing with 30 additions and 13 deletions.
  1. +1 −0 .gitignore
  2. +13 −12 build.xml
  3. +16 −1 build/macros.xml
View
@@ -2,6 +2,7 @@ build/artifacts
lib/build
lib/optional
lib/runtime
+lib/packaged
.idea
.DS_Store
target
View
@@ -18,6 +18,7 @@
<property name="release.name" value="${ant.project.name}-${release.version}"/>
<property name="release.jar" value="${release.name}.jar"/>
<property name="release.pom" value="${release.name}.pom"/>
+ <property name="release.pom.path" value="${artifacts}/${release.pom}"/>
<property name="release.manifest" value="MANIFEST.MF"/>
<property name="release.src" value="${release.name}-sources.jar"/>
<property name="release.jar.path" value="${artifacts}/${release.jar}"/>
@@ -140,18 +141,18 @@
</target>
<target name="deploy" if="${deploy}">
- <deploy-s3 source="${release.plugin.zip.path}"
- destination="s3://albertlatacz.published/javarepl/intellij-plugin/javarepl-intellij-${release.version}.zip"/>
- <deploy-s3 source="${release.plugin.zip.path}"
- destination="s3://albertlatacz.published/javarepl/intellij-plugin/javarepl-intellij.zip"/>
- <deploy-s3 source="${release.jar.path}"
- destination="s3://albertlatacz.published/javarepl/javarepl-${release.version}.jar"/>
- <deploy-s3 source="${release.jar.path}" destination="s3://albertlatacz.published/javarepl/javarepl.jar"/>
-
- <deploy-s3 source="${release.jar.path}"
- destination="s3://albertlatacz.repo/javarepl/javarepl/${release.version}/javarepl-${release.version}.jar"/>
- <deploy-s3 source="${artifacts}/${release.pom}"
- destination="s3://albertlatacz.repo/javarepl/javarepl/${release.version}/javarepl-${release.version}.pom"/>
+ <deploy-to-s3 source="${release.plugin.zip.path}"
+ destination="s3://albertlatacz.published/javarepl/intellij-plugin/javarepl-intellij-${release.version}.zip"/>
+ <deploy-to-s3 source="${release.plugin.zip.path}"
+ destination="s3://albertlatacz.published/javarepl/intellij-plugin/javarepl-intellij.zip"/>
+ <deploy-to-s3 source="${release.jar.path}"
+ destination="s3://albertlatacz.published/javarepl/javarepl-${release.version}.jar"/>
+ <deploy-to-s3 source="${release.jar.path}" destination="s3://albertlatacz.published/javarepl/javarepl.jar"/>
+
+ <deploy-to-s3-maven-repository source="${release.jar.path}"
+ destination="s3://albertlatacz.repo/javarepl/javarepl/${release.version}/javarepl-${release.version}.jar"/>
+ <deploy-to-s3-maven-repository source="${release.pom.path}"
+ destination="s3://albertlatacz.repo/javarepl/javarepl/${release.version}/javarepl-${release.version}.pom"/>
</target>
View
@@ -111,7 +111,7 @@
</macrodef>
- <macrodef name="deploy-s3">
+ <macrodef name="deploy-to-s3">
<attribute name="source"/>
<attribute name="destination"/>
@@ -133,4 +133,19 @@
</sequential>
</macrodef>
+ <macrodef name="deploy-to-s3-maven-repository">
+ <attribute name="source"/>
+ <attribute name="destination"/>
+
+ <sequential>
+ <deploy-to-s3 source="@{source}" destination="@{destination}"/>
+
+ <checksum file="@{source}" algorithm="sha1"/>
+ <deploy-to-s3 source="@{source}.sha1" destination="@{destination}.sha1"/>
+
+ <checksum file="@{source}" algorithm="md5"/>
+ <deploy-to-s3 source="@{source}.md5" destination="@{destination}.md5"/>
+ </sequential>
+ </macrodef>
+
</project>

0 comments on commit 8ef43c2

Please sign in to comment.