blob: 3eaf0489533e940f1d81d310b5b15caa458318b8 [file] [log] [blame]
Stuart McCulloch50bcd3d2009-02-16 15:28:03 +00001#!/bin/sh
2
3VERSION=$1
4
5if [ "$VERSION" = "" ]
6then
7
8 echo "Usage: $0 <new-bundleplugin-version>"
9 exit
10
11fi
12
13cd ../pom
14
15for POM in `find .. -name .svn -prune -o -name pom.xml -print`
16do
17
18 mvn "-DprojectFile=$POM" \
19 "-Dxpath=/project/build/plugins/plugin[artifactId[.='maven-bundle-plugin']]/version" \
20 "-DnewValue=$VERSION" \
21 org.apache.maven.plugins:maven-pom-plugin:1.0-SNAPSHOT:alter-by-xpath
22
23 mvn "-DprojectFile=$POM" \
24 "-DskipXPath=/project/build/plugins/plugin[artifactId[.='maven-bundle-plugin']]/version" \
25 "-Dxpath=/project/build/plugins/plugin[artifactId[.='maven-bundle-plugin']]" \
26 "-DnewElement=version" "-DnewValue=$VERSION" \
27 org.apache.maven.plugins:maven-pom-plugin:1.0-SNAPSHOT:add-by-xpath
28
29done
30