summaryrefslogtreecommitdiff
path: root/BKUAppletExt
diff options
context:
space:
mode:
authorTobias Kellner <tobias.kellner@iaik.tugraz.at>2015-02-04 02:47:20 (GMT)
committerTobias Kellner <tobias.kellner@iaik.tugraz.at>2015-02-04 02:49:11 (GMT)
commit2186b257c74c4c93889ed69e6ff457ca830d3b88 (patch)
tree4bc1362c9faf5f5c104efa53ef6f603547547058 /BKUAppletExt
parentbd94c347ef90b3297135b8303fef3e43858959c6 (diff)
downloadmocca-2186b257c74c4c93889ed69e6ff457ca830d3b88.zip
mocca-2186b257c74c4c93889ed69e6ff457ca830d3b88.tar.gz
mocca-2186b257c74c4c93889ed69e6ff457ca830d3b88.tar.bz2
Use git hash instead of svn revision for version
Diffstat (limited to 'BKUAppletExt')
-rw-r--r--BKUAppletExt/pom.xml10
1 files changed, 3 insertions, 7 deletions
diff --git a/BKUAppletExt/pom.xml b/BKUAppletExt/pom.xml
index 121fd1a..6aae52b 100644
--- a/BKUAppletExt/pom.xml
+++ b/BKUAppletExt/pom.xml
@@ -232,8 +232,7 @@
<profile>
<!--
This profile is here for triggering when another scm than svn is
- used (for example git). Try to get the associated svn revision
- from git-svn.
+ used (for example git). Get the git commit hash.
-->
<id>buildnumber-git</id>
<activation>
@@ -261,12 +260,9 @@
shell = "cmd"
param = "/c"
}
- def gitSvnProc = [shell, param, "git svn info | grep Revision:"].execute()
+ def gitSvnProc = [shell, param, "git rev-parse --short HEAD"].execute()
gitSvnProc.waitFor()
- def svnref = "unknown"
- def out = gitSvnProc.in.text.split(" ")
- if (out.size() == 2)
- svnref = out[1].trim()
+ def svnref = gitSvnProc.in.text.trim()
project.properties['gitSvnRev'] = svnref
</source>
</configuration>