[tor-commits] [metrics-base/master] Create a build revision containing properties file.
karsten at torproject.org
karsten at torproject.org
Thu Oct 5 12:57:36 UTC 2017
commit 6f9698a4f6a87824aa7c24082e0b13e249fb6449
Author: iwakeh <iwakeh at torproject.org>
Date: Mon Jul 3 09:15:19 2017 +0000
Create a build revision containing properties file.
Implements part of task-21414 by providing this file and addinng it to the jar.
---
java/base.xml | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/java/base.xml b/java/base.xml
index 1fc33cf..bfd19f8 100644
--- a/java/base.xml
+++ b/java/base.xml
@@ -233,6 +233,10 @@
</patternset>
<patternset id="empty" excludes="*"/>
<target name="jar" depends="compile,docs,gitrev" >
+ <propertyfile file="${classes}/build.properties" >
+ <entry key="build.revision"
+ value="${git.revision}" />
+ </propertyfile>
<property name="manifestattributes" value="${generated}/additional" />
<manifest file="${manifestattributes}" >
<attribute name="Main-Class" value="${project-main-class}" />
More information about the tor-commits
mailing list