[tor-commits] [onionoo/master] Prepare pre-release for 3.1-1.0.0.

karsten at torproject.org karsten at torproject.org
Wed Nov 23 15:29:25 UTC 2016


commit 58945c03ec91f0d1f95778b4b35170200fe6cbc1
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date:   Fri Nov 18 16:51:32 2016 +0100

    Prepare pre-release for 3.1-1.0.0.
---
 .gitignore   |  1 +
 CERT         | 18 +++++++++++++++++
 CHANGELOG.md |  5 +++++
 ChangeLog    | 12 ------------
 build.xml    | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++---------
 5 files changed, 78 insertions(+), 21 deletions(-)

diff --git a/.gitignore b/.gitignore
index ac1e6d0..b4f1197 100755
--- a/.gitignore
+++ b/.gitignore
@@ -7,4 +7,5 @@
 *~
 .classpath
 .project
+/build.properties
 
diff --git a/CERT b/CERT
new file mode 100644
index 0000000..eaeef50
--- /dev/null
+++ b/CERT
@@ -0,0 +1,18 @@
+-----BEGIN CERTIFICATE-----
+MIIDbTCCAlWgAwIBAgIEca8MxDANBgkqhkiG9w0BAQsFADBnMQswCQYDVQQGEwJVUzELMAkGA1UE
+CBMCTUExEjAQBgNVBAcTCUNhbWJyaWRnZTEdMBsGA1UEChMUVGhlIFRvciBQcm9qZWN0LCBJbmMx
+GDAWBgNVBAMTD0thcnN0ZW4gTG9lc2luZzAeFw0xNjA1MzExODIwMjlaFw0xNjA4MjkxODIwMjla
+MGcxCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJNQTESMBAGA1UEBxMJQ2FtYnJpZGdlMR0wGwYDVQQK
+ExRUaGUgVG9yIFByb2plY3QsIEluYzEYMBYGA1UEAxMPS2Fyc3RlbiBMb2VzaW5nMIIBIjANBgkq
+hkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAgJCqHFgEhyj8AI4w93YcyZEkKwn2Jw5t7bYcaLieP0wa
+Ai2xrRFROo0eofjIllPlYTFtj9jLAZf+MQ1/Sdv7SLdlpasBCS0deTGlxuMzyMP9ztkkkAeibc+F
+IXYPJArwGJiycnd+obW8b8KNrJQsnb0Se5Fdgo/PSu1rqMh/Mylv9vLqUzB4hbN4bg5+7THlTAOK
+egYyR0NEPDzi327MAvzzle27kXV9yOCQr01zXW9NeWYed6JMXCZwaMN6nTVEFiwTfAyATfPncarf
+gZ1kyAkQ6/Sw2bGMv8jHqB63Ka0/6GXHRbFgCeWU+c/1sfEMBD3ZurEjwSjWGl73E4GBswIDAQAB
+oyEwHzAdBgNVHQ4EFgQUJbu6UT97IU4utjyc4zYUrLIgzvQwDQYJKoZIhvcNAQELBQADggEBAHOF
+jMP0rNa+cKy8beEpU0VRZ1RNLb70BoFjXZvzgv92MGnojg509fYO3PgzXUZv5v50VenexZjeZ9to
+iiqw5zDelg1maVSZwKrQVgFIwXnP4+okIcPMtFjSNiF9VyhRd8OE3U/kpIBdecMVIEhCIKOaF/nq
+uBwilXAK7VwYN7hQgKbIODoX9Y3dr9QDvrILkFDEmOudmDRo+RePAKJum+/E0RuUYjOeXpFmzXOf
+5LJ/Y4hMKuLfuxoWasHOV0IRx///CNgF1L287TCyjrYUbEjWwMtFQc0NRjedhcWUzwXLpbk2unxM
+j6ElkADaczDG20ZGSgrFfU4MYb1RFeQu6yk=
+-----END CERTIFICATE-----
diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644
index 0000000..012d164
--- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1,5 @@
+# Changes in version 3.1-1.0.0 - 2016-11-??
+
+ * Major changes
+   - This is the initial release after over five years of development.
+
diff --git a/ChangeLog b/ChangeLog
deleted file mode 100644
index 533541b..0000000
--- a/ChangeLog
+++ /dev/null
@@ -1,12 +0,0 @@
-Changes in version ?.?.? - 2014-??-??
-
-  o Minor protocol changes:
-    - Add optional field "next_major_version_scheduled", changing protocol
-      version to 1.1.  Implements #12905.
-
-
-Changes in version 1.0.0 - 2014-09-16
-
-  o Major protocol changes.
-    - First assigned version number.
-
diff --git a/build.xml b/build.xml
index 935b1b1..fe527c0 100644
--- a/build.xml
+++ b/build.xml
@@ -2,7 +2,7 @@
 
   <property name="onionoo.protocol.version" value="3.1"/>
   <property name="release.version"
-            value="${onionoo.protocol.version}-1.0.0-dev"/>
+            value="${onionoo.protocol.version}-0.9.0-dev"/>
   <property name="descriptorversion" value="1.5.0"/>
   <property name="jetty.version" value="8.1.16.v20140903" />
   <property name="javasources" value="src/main/java"/>
@@ -24,6 +24,9 @@
   <property name="onionoo.jarfile"
             value="${dist}/onionoo-${release.version}.jar"/>
   <property name="source-and-target-java-version" value="1.7" />
+  <property name="release.tarball"
+            value="${dist}/onionoo-${release.version}.tar.gz" />
+  <property file="build.properties" />
 
   <patternset id="runtime" >
     <include name="descriptor-${descriptorversion}.jar"/>
@@ -202,6 +205,11 @@
 
   <target name="war"
           depends="compile">
+    <exec executable="git" outputproperty="git.revision">
+      <arg value="rev-parse" />
+      <arg value="--short" />
+      <arg value="HEAD" />
+    </exec>
     <war destfile="${warfile}"
          webxml="${resources}/web.xml">
       <fileset dir="${resources}/web"/>
@@ -218,10 +226,8 @@
           </zips>
         </archives>
       </restrict>
-      <fileset dir="${classes}"
-               includes="**/*"
-               excludes="**/Test*.class"/>
       <fileset dir="${resources}" includes="jetty.xml" />
+      <exclude name="**/Test*.class"/>
       <zipfileset dir="${resources}"
                   prefix=""
                   includes="logback.xml"/>
@@ -234,7 +240,7 @@
         <attribute name="Created-By" value="The Tor Project" />
         <attribute name="Implementation-Title" value="Onionoo Server"/>
         <attribute name="Implementation-Version"
-                   value="${release.version}"/>
+                   value="${release.version}-${git.revision}"/>
         <attribute name="Onionoo-Protocol-Version"
                    value="${onionoo.protocol.version}" />
         <attribute name="Main-Class"
@@ -244,6 +250,11 @@
   </target>
 
   <target name="jar" depends="compile">
+    <exec executable="git" outputproperty="git.revision">
+      <arg value="rev-parse" />
+      <arg value="--short" />
+      <arg value="HEAD" />
+    </exec>
     <jar destfile="${onionoo.jarfile}"
          basedir="${classes}">
       <restrict>
@@ -258,15 +269,13 @@
           </zips>
         </archives>
       </restrict>
-      <fileset dir="${classes}"
-               excludes="org/torproject/onionoo/server/" />
       <fileset dir="${resources}" includes="logback.xml" />
       <exclude name="**/Test*.class"/>
       <manifest>
         <attribute name="Created-By" value="The Tor Project" />
         <attribute name="Implementation-Title" value="Onionoo Server"/>
         <attribute name="Implementation-Version"
-                   value="${release.version}"/>
+                   value="${release.version}-${git.revision}"/>
         <attribute name="Onionoo-Protocol-Version"
                    value="${onionoo.protocol.version}" />
         <attribute name="Main-Class"
@@ -275,7 +284,43 @@
     </jar>
   </target>
 
-  <target name="dist" depends="test, war, jar"/>
+  <target name="signjar" depends="jar,war">
+    <signjar alias="${jarsigner.alias}"
+             storepass="${jarsigner.storepass}"
+             sigalg="SHA256withRSA"
+             digestalg="SHA-256"
+             tsaurl="http://timestamp.digicert.com">
+      <path>
+        <pathelement path="${onionoo.jarfile}"/>
+        <pathelement path="${warfile}"/>
+      </path>
+    </signjar>
+  </target>
+
+  <target name="tar" depends="signjar">
+    <tar destfile="${release.tarball}" compression="gzip">
+      <tarfileset dir="." prefix="onionoo-${release.version}">
+        <include name="${onionoo.jarfile}"/>
+        <include name="${warfile}"/>
+        <include name="build.xml" />
+        <include name="LICENSE" />
+        <include name="INSTALL" />
+        <include name="DESIGN" />
+        <include name="CERT" />
+        <include name="*.md" />
+      </tarfileset>
+      <tarfileset dir="${javasources}"
+                  prefix="onionoo-${release.version}/${javasources}" />
+      <tarfileset dir="${resources}"
+                  prefix="onionoo-${release.version}/${resources}" />
+      <tarfileset dir="${testsources}"
+                  prefix="onionoo-${release.version}/${testsources}" />
+      <tarfileset dir="${testresources}"
+                  prefix="onionoo-${release.version}/${testresources}" />
+      <tarfileset dir="${libs}"
+                  prefix="onionoo-${release.version}/${libs}" />
+    </tar>
+  </target>
 
   <taskdef classpathref="cobertura.classpath" resource="tasks.properties" />
   <target name="coverage" depends="compile,compile-tests">





More information about the tor-commits mailing list