diff options
author | Paul Webster | 2013-03-14 13:14:57 +0000 |
---|---|---|
committer | Paul Webster | 2013-03-14 13:14:57 +0000 |
commit | 5c222b3f038197e455f9820589b760f4d3a7c2fa (patch) | |
tree | 5b83c5ab25878cdc8a0a030787c70f7512831d4f | |
parent | 26b2ea2606541ea20693cc9f6495ab121f87ddf0 (diff) | |
download | eclipse.platform.releng.aggregator-5c222b3f038197e455f9820589b760f4d3a7c2fa.tar.gz eclipse.platform.releng.aggregator-5c222b3f038197e455f9820589b760f4d3a7c2fa.tar.xz eclipse.platform.releng.aggregator-5c222b3f038197e455f9820589b760f4d3a7c2fa.zip |
Fix for updating all build related poms
1) fix the <project> element so it has namespace
2) update all packaging: pom and eclipse-repository
3) update all poms containing a parent
4) add forceQualifierUpdate.txt to all bundles and features and test plugins
-rwxr-xr-x | scripts/xsl/xparentVersions.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/scripts/xsl/xparentVersions.sh b/scripts/xsl/xparentVersions.sh index 041d2f84d..221dd4bb7 100755 --- a/scripts/xsl/xparentVersions.sh +++ b/scripts/xsl/xparentVersions.sh @@ -3,7 +3,16 @@ DIR=$( dirname $0 ) +find * -name pom.xml -print0 | xargs -0 grep "^<project>" | cut -f1 -d: | sort -u >/tmp/t1_$$.txt + +for POM in $( cat /tmp/t1_$$.txt ); do +sed 's!<project>!<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">!g' ${POM} >/tmp/out_$$.txt +mv /tmp/out_$$.txt ${POM} +done + + find * -name pom.xml -print0 | xargs -0 grep packaging.pom..packaging | cut -f1 -d: | sort -u >/tmp/t1_$$.txt +find * -name pom.xml -print0 | xargs -0 grep packaging.eclipse-repository..packaging | cut -f1 -d: | sort -u >>/tmp/t1_$$.txt for POM in $( cat /tmp/t1_$$.txt ); do xsltproc -o "${POM}.out" $DIR/fix-pom-version.xsl "${POM}" @@ -17,3 +26,16 @@ xsltproc -o "${POM}.out" $DIR/fix-pom-parent-version.xsl "${POM}" mv "${POM}.out" "${POM}" done +find * -name pom.xml -print0 | xargs -0 grep eclipse-plugin | cut -f1 -d: | sort -u >/tmp/t1_$$.txt +find * -name pom.xml -print0 | xargs -0 grep eclipse-feature | cut -f1 -d: | sort -u >>/tmp/t1_$$.txt +find * -name pom.xml -print0 | xargs -0 grep eclipse-test-plugin | cut -f1 -d: | sort -u >>/tmp/t1_$$.txt + + +for POM in $( cat /tmp/t1_$$.txt ); do +POM_DIR=$( dirname $POM ) +cat >${POM_DIR}/forceQualifierUpdate.txt <<EOF +# To force a version qualifier update add the bug here +Bug 403237 - o.e.e4.tools cannot be build with "mvn clean install" +EOF +done + |