You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@knox.apache.org by km...@apache.org on 2013/03/22 20:12:07 UTC
[4/9] git commit: Generating hashes at the time the zips are created.
Generating hashes at the time the zips are created.
Project: http://git-wip-us.apache.org/repos/asf/incubator-knox/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-knox/commit/64f1680c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-knox/tree/64f1680c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-knox/diff/64f1680c
Branch: refs/heads/master
Commit: 64f1680cdf180acd8dbd2610587c4af36d5a55dc
Parents: dc67e3f
Author: Kevin Minder <ke...@hortonworks.com>
Authored: Fri Mar 22 14:08:09 2013 -0400
Committer: Kevin Minder <ke...@hortonworks.com>
Committed: Fri Mar 22 14:08:09 2013 -0400
----------------------------------------------------------------------
build.xml | 28 +++++++++-------------------
gateway-release/assembly.xml | 1 +
gateway-release/pom.xml | 32 ++++++++++++++++++++++++++++++++
3 files changed, 42 insertions(+), 19 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/64f1680c/build.xml
----------------------------------------------------------------------
diff --git a/build.xml b/build.xml
index cbbd08d..0d3634d 100644
--- a/build.xml
+++ b/build.xml
@@ -52,12 +52,13 @@
<target name="build" depends="init" description="Build the product.">
<exec executable="${mvn.cmd}">
- <arg value="-Prelease"/>
+ <!-- <arg value="-Prelease"/> -->
<arg value="clean"/>
<arg value="package"/>
</exec>
</target>
+ <!--
<target name="archive" depends="init" description="Create the release ZIP.">
<zip destfile="target/${gateway-version}/${gateway-artifact}-${gateway-version}.zip">
<zipfileset
@@ -79,41 +80,30 @@
fullpath="${gateway-home}/bin/shell-${gateway-version}.jar"/>
</zip>
</target>
+ -->
+ <!--
<target name="release" depends="init,clean,build,archive" description="Create the release."/>
+ -->
<target name="sign" depends="init" description="Sign a previously created release.">
- <checksum algorithm="MD5" fileext=".md5">
- <fileset dir="target/${gateway-version}">
- <include name="*.zip" />
- <include name="*.jar" />
- <include name="*.tar" />
- </fileset>
- </checksum>
- <checksum algorithm="SHA1" fileext=".sha">
- <fileset dir="target/${gateway-version}">
- <include name="*.zip" />
- <include name="*.jar" />
- <include name="*.tar" />
- </fileset>
- </checksum>
- <exec executable="gpg" dir="target/${gateway-version}">
+ <exec executable="gpg" dir="target">
<arg value="--armor"/>
<arg value="--detach-sig"/>
<arg value="${gateway-artifact}-${gateway-version}.zip"/>
</exec>
- <exec executable="gpg" dir="target/${gateway-version}">
+ <exec executable="gpg" dir="target">
<arg value="--armor"/>
<arg value="--detach-sig"/>
<arg value="${gateway-artifact}-${gateway-version}-src.zip"/>
</exec>
- <exec executable="gpg" dir="target/${gateway-version}">
+ <exec executable="gpg" dir="target">
<arg value="--export"/>
<arg value="--armor"/>
<arg value="--output"/>
<arg value="KEYS"/>
</exec>
- <checksum file="target/${gateway-version}/${gateway-artifact}-${gateway-version}-src.zip" algorithm="SHA1" property="checksum" />
+ <checksum file="target/${gateway-artifact}-${gateway-version}-src.zip" algorithm="SHA1" property="checksum" />
<copy file="VOTE" tofile="target/vote.txt">
<filterchain>
<expandproperties/>
http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/64f1680c/gateway-release/assembly.xml
----------------------------------------------------------------------
diff --git a/gateway-release/assembly.xml b/gateway-release/assembly.xml
index 592651e..7e3574c 100644
--- a/gateway-release/assembly.xml
+++ b/gateway-release/assembly.xml
@@ -19,6 +19,7 @@
<id>bin</id>
<formats>
<format>zip</format>
+ <format>tar.gz</format>
</formats>
<fileSets>
<fileSet>
http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/64f1680c/gateway-release/pom.xml
----------------------------------------------------------------------
diff --git a/gateway-release/pom.xml b/gateway-release/pom.xml
index 347d9e4..3a605be 100644
--- a/gateway-release/pom.xml
+++ b/gateway-release/pom.xml
@@ -59,6 +59,38 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals><goal>run</goal></goals>
+ <configuration>
+ <tasks>
+ <checksum algorithm="MD5" fileext=".md5">
+ <fileset dir="../target">
+ <include name="*.zip" />
+ <include name="*.tar.gz" />
+ </fileset>
+ </checksum>
+ <checksum algorithm="SHA1" fileext=".sha">
+ <fileset dir="../target">
+ <include name="*.zip" />
+ <include name="*.tar.gz" />
+ </fileset>
+ </checksum>
+ </tasks>
+ </configuration>
+ </execution>
+ </executions>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.ant</groupId>
+ <artifactId>ant-nodeps</artifactId>
+ <version>1.8.1</version>
+ </dependency>
+ </dependencies>
+ </plugin>
</plugins>
</build>