felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mccu...@apache.org
Subject svn commit: r744937 - /felix/trunk/bundleplugin/upgrade_local_poms.sh
Date Mon, 16 Feb 2009 15:28:07 GMT
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 = *



Mime
View raw message