From 3987eefc567022135f5eacd88feeeb55f611227b Mon Sep 17 00:00:00 2001 From: tkellner Date: Wed, 2 Nov 2011 19:18:26 +0000 Subject: POM Housekeeping * Whitespace unified * Avoid "SVNRevMissing" when using git svn git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@995 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- BKUWebStart/pom.xml | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 59 insertions(+), 1 deletion(-) (limited to 'BKUWebStart/pom.xml') diff --git a/BKUWebStart/pom.xml b/BKUWebStart/pom.xml index 7c6abfe5..c87282a5 100644 --- a/BKUWebStart/pom.xml +++ b/BKUWebStart/pom.xml @@ -52,7 +52,7 @@ false false - SvnRevMissing + SvnRevMissing @@ -206,6 +206,64 @@ + + + + buildnumber-git + + + .svn + + + + + + org.codehaus.groovy.maven + gmaven-plugin + 1.0 + + + generate-resources + + execute + + + + def gitSvnProc = ["sh", "-c", "git svn info | awk '/Revision:/ { print \$2 }'"].execute() + gitSvnProc.waitFor() + project.properties['gitSvnRev'] = gitSvnProc.in.text.trim() + + + + + + + org.codehaus.mojo + buildnumber-maven-plugin + + + generate-resources + + create + + + + + false + false + {0} + + ${gitSvnRev} + + + + + + -- cgit v1.2.3