rhtyd closed pull request #2914: tools: Added '-B' flag for mvn current version 
cmd (#2910)
URL: https://github.com/apache/cloudstack/pull/2914
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/tools/build/setnextversion.sh b/tools/build/setnextversion.sh
index 3b31ea915e7..8d8037c5e5b 100755
--- a/tools/build/setnextversion.sh
+++ b/tools/build/setnextversion.sh
@@ -124,7 +124,7 @@ echo "checking out correct branch"
 git checkout $branch
 
 echo "determining current POM version"
-export currentversion=`mvn 
org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate 
-Dexpression=project.version | grep -v '\['`
+export currentversion=`mvn 
org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate 
-Dexpression=project.version -B | grep -v '\['`
 echo "found $currentversion"
 
 echo "setting new version numbers"


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to