You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by mc...@apache.org on 2009/02/16 16:28:07 UTC

svn commit: r744937 - /felix/trunk/bundleplugin/upgrade_local_poms.sh

Author: mcculls
Date: Mon Feb 16 15:28:03 2009
New Revision: 744937

URL: http://svn.apache.org/viewvc?rev=744937&view=rev
Log:
Helper script to test new versions of the bundleplugin on the local Felix tree

Added:
    felix/trunk/bundleplugin/upgrade_local_poms.sh   (with props)

Added: felix/trunk/bundleplugin/upgrade_local_poms.sh
URL: http://svn.apache.org/viewvc/felix/trunk/bundleplugin/upgrade_local_poms.sh?rev=744937&view=auto
==============================================================================
--- felix/trunk/bundleplugin/upgrade_local_poms.sh (added)
+++ felix/trunk/bundleplugin/upgrade_local_poms.sh Mon Feb 16 15:28:03 2009
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+VERSION=$1
+
+if [ "$VERSION" = "" ]
+then
+
+  echo "Usage: $0 <new-bundleplugin-version>"
+  exit
+
+fi
+
+cd ../pom
+
+for POM in `find .. -name .svn -prune -o -name pom.xml -print`
+do
+
+  mvn "-DprojectFile=$POM" \
+      "-Dxpath=/project/build/plugins/plugin[artifactId[.='maven-bundle-plugin']]/version" \
+      "-DnewValue=$VERSION" \
+      org.apache.maven.plugins:maven-pom-plugin:1.0-SNAPSHOT:alter-by-xpath
+
+  mvn "-DprojectFile=$POM" \
+      "-DskipXPath=/project/build/plugins/plugin[artifactId[.='maven-bundle-plugin']]/version" \
+      "-Dxpath=/project/build/plugins/plugin[artifactId[.='maven-bundle-plugin']]" \
+      "-DnewElement=version" "-DnewValue=$VERSION" \
+      org.apache.maven.plugins:maven-pom-plugin:1.0-SNAPSHOT:add-by-xpath
+
+done
+

Propchange: felix/trunk/bundleplugin/upgrade_local_poms.sh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: felix/trunk/bundleplugin/upgrade_local_poms.sh
------------------------------------------------------------------------------
    svn:executable = *