Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Williams2016-02-28 20:53:21 -0500
committerDavid Williams2016-02-28 20:53:21 -0500
commitdf9679f46f0023d6ac1929d0bd8899aac5b9dcbe (patch)
treea267a4b34a84c7f18da479dd52eb6d6bb88b2d7e /scripts
parentc8ace7562f5c4b575033d63c154f2e3f1c0ae831 (diff)
downloadeclipse.platform.releng.aggregator-df9679f46f0023d6ac1929d0bd8899aac5b9dcbe.tar.gz
eclipse.platform.releng.aggregator-df9679f46f0023d6ac1929d0bd8899aac5b9dcbe.tar.xz
eclipse.platform.releng.aggregator-df9679f46f0023d6ac1929d0bd8899aac5b9dcbe.zip
Bug 488654 - rearrange some "production directories"
Diffstat (limited to 'scripts')
-rw-r--r--scripts/xsl/fix-feature-pom.xsl45
-rw-r--r--scripts/xsl/fix-pom-parent-version.xsl24
-rw-r--r--scripts/xsl/fix-pom-version.xsl24
-rw-r--r--scripts/xsl/fix-pom.xsl42
-rwxr-xr-xscripts/xsl/groupId.sh47
-rw-r--r--scripts/xsl/run-xsl.xml10
-rwxr-xr-xscripts/xsl/upVersionParents.sh42
-rwxr-xr-xscripts/xsl/xgroupId.sh31
-rwxr-xr-xscripts/xsl/xparentVersions.sh45
-rwxr-xr-xscripts/xsl/xslUpVersion.sh26
10 files changed, 0 insertions, 336 deletions
diff --git a/scripts/xsl/fix-feature-pom.xsl b/scripts/xsl/fix-feature-pom.xsl
deleted file mode 100644
index 4bc44427..00000000
--- a/scripts/xsl/fix-feature-pom.xsl
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:my="http://maven.apache.org/POM/4.0.0" exclude-result-prefixes="my xs" version="1.0">
- <!--xsl:output omit-xml-declaration="yes" indent="yes"/>
- <xsl:output indent="yes"/>
- <xsl:strip-space elements="*"/-->
- <xsl:output method="xml" encoding="UTF-8"/>
- <xsl:template name="group-id">
- <xsl:param name="pText" select="."/>
- <xsl:param name="pCount" select="0"/>
- <xsl:if test="$pCount &lt; 3">
- <xsl:value-of select="substring-before(concat($pText, '.'), '.')"/>
- <xsl:if test="$pCount &lt; 2">
- <xsl:text>.</xsl:text>
- </xsl:if>
- <xsl:call-template name="group-id">
- <xsl:with-param name="pText" select="substring-after($pText, '.')"/>
- <xsl:with-param name="pCount" select="$pCount + 1"/>
- </xsl:call-template>
- </xsl:if>
- <xsl:if test="$pCount = 3">
- <xsl:text>.feature</xsl:text>
- </xsl:if>
- </xsl:template>
- <xsl:template match="/my:project/my:groupId">
- <groupId xmlns="http://maven.apache.org/POM/4.0.0">
- <xsl:call-template name="group-id">
- <xsl:with-param name="pText" select="/my:project/my:artifactId/text()"/>
- <xsl:with-param name="pCount" select="0"/>
- </xsl:call-template>
- </groupId>
- </xsl:template>
- <xsl:template match="@*|node()">
- <xsl:copy>
- <xsl:apply-templates select="@*|node()"/>
- </xsl:copy>
- </xsl:template>
- <!--xsl:template match="node()|@*">
- <xsl:copy>
- <xsl:apply-templates select="node()|@*">
- <xsl:sort select="name()" />
- <xsl:sort select="@*" />
- </xsl:apply-templates>
- </xsl:copy>
-</xsl:template-->
-</xsl:stylesheet>
diff --git a/scripts/xsl/fix-pom-parent-version.xsl b/scripts/xsl/fix-pom-parent-version.xsl
deleted file mode 100644
index 4529cb09..00000000
--- a/scripts/xsl/fix-pom-parent-version.xsl
+++ /dev/null
@@ -1,24 +0,0 @@
-<?xml version="1.0"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:my="http://maven.apache.org/POM/4.0.0" exclude-result-prefixes="my xs" version="1.0">
- <!--xsl:output omit-xml-declaration="yes" indent="yes"/>
- <xsl:output indent="yes"/>
- <xsl:strip-space elements="*"/-->
- <xsl:output method="xml" encoding="UTF-8"/>
- <xsl:param name="new-version" select="'0.14.0-SNAPSHOT'"/>
- <xsl:template match="/my:project/my:parent/my:version">
- <xsl:element name="version" namespace="http://maven.apache.org/POM/4.0.0"><xsl:value-of select="$new-version"/></xsl:element>
- </xsl:template>
- <xsl:template match="@*|node()">
- <xsl:copy>
- <xsl:apply-templates select="@*|node()"/>
- </xsl:copy>
- </xsl:template>
- <!--xsl:template match="node()|@*">
- <xsl:copy>
- <xsl:apply-templates select="node()|@*">
- <xsl:sort select="name()" />
- <xsl:sort select="@*" />
- </xsl:apply-templates>
- </xsl:copy>
-</xsl:template-->
-</xsl:stylesheet>
diff --git a/scripts/xsl/fix-pom-version.xsl b/scripts/xsl/fix-pom-version.xsl
deleted file mode 100644
index 3a631eb6..00000000
--- a/scripts/xsl/fix-pom-version.xsl
+++ /dev/null
@@ -1,24 +0,0 @@
-<?xml version="1.0"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:my="http://maven.apache.org/POM/4.0.0" exclude-result-prefixes="my xs" version="1.0">
- <!--xsl:output omit-xml-declaration="yes" indent="yes"/>
- <xsl:output indent="yes"/>
- <xsl:strip-space elements="*"/-->
- <xsl:output method="xml" encoding="UTF-8"/>
- <xsl:param name="new-version" select="'0.14.0-SNAPSHOT'"/>
- <xsl:template match="/my:project/my:version">
- <xsl:element name="version" namespace="http://maven.apache.org/POM/4.0.0"><xsl:value-of select="$new-version"/></xsl:element>
- </xsl:template>
- <xsl:template match="@*|node()">
- <xsl:copy>
- <xsl:apply-templates select="@*|node()"/>
- </xsl:copy>
- </xsl:template>
- <!--xsl:template match="node()|@*">
- <xsl:copy>
- <xsl:apply-templates select="node()|@*">
- <xsl:sort select="name()" />
- <xsl:sort select="@*" />
- </xsl:apply-templates>
- </xsl:copy>
-</xsl:template-->
-</xsl:stylesheet>
diff --git a/scripts/xsl/fix-pom.xsl b/scripts/xsl/fix-pom.xsl
deleted file mode 100644
index 7bfd72f4..00000000
--- a/scripts/xsl/fix-pom.xsl
+++ /dev/null
@@ -1,42 +0,0 @@
-<?xml version="1.0"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:my="http://maven.apache.org/POM/4.0.0" exclude-result-prefixes="my xs" version="1.0">
- <!--xsl:output omit-xml-declaration="yes" indent="yes"/>
- <xsl:output indent="yes"/>
- <xsl:strip-space elements="*"/-->
- <xsl:output method="xml" encoding="UTF-8"/>
- <xsl:template name="group-id">
- <xsl:param name="pText" select="."/>
- <xsl:param name="pCount" select="0"/>
- <xsl:if test="$pCount &lt; 3">
- <xsl:value-of select="substring-before(concat($pText, '.'), '.')"/>
- <xsl:if test="$pCount &lt; 2">
- <xsl:text>.</xsl:text>
- </xsl:if>
- <xsl:call-template name="group-id">
- <xsl:with-param name="pText" select="substring-after($pText, '.')"/>
- <xsl:with-param name="pCount" select="$pCount + 1"/>
- </xsl:call-template>
- </xsl:if>
- </xsl:template>
- <xsl:template match="/my:project/my:groupId">
- <groupId xmlns="http://maven.apache.org/POM/4.0.0">
- <xsl:call-template name="group-id">
- <xsl:with-param name="pText" select="/my:project/my:artifactId/text()"/>
- <xsl:with-param name="pCount" select="0"/>
- </xsl:call-template>
- </groupId>
- </xsl:template>
- <xsl:template match="@*|node()">
- <xsl:copy>
- <xsl:apply-templates select="@*|node()"/>
- </xsl:copy>
- </xsl:template>
- <!--xsl:template match="node()|@*">
- <xsl:copy>
- <xsl:apply-templates select="node()|@*">
- <xsl:sort select="name()" />
- <xsl:sort select="@*" />
- </xsl:apply-templates>
- </xsl:copy>
-</xsl:template-->
-</xsl:stylesheet>
diff --git a/scripts/xsl/groupId.sh b/scripts/xsl/groupId.sh
deleted file mode 100755
index cdd08a6e..00000000
--- a/scripts/xsl/groupId.sh
+++ /dev/null
@@ -1,47 +0,0 @@
-#!/bin/bash
-
-ECLIPSE=/opt/local/e4-self/R421/eclipse/eclipse
-
-if [ $# -gt 0 ]; then
- ECLIPSE="$1" ; shift
-fi
-
-find * -name pom.xml -print0 | xargs -0 grep eclipse-plugin | cut -f1 -d: | sort -u >/tmp/t1_$$.txt
-
-for POM in $( cat /tmp/t1_$$.txt ); do
- $ECLIPSE -noSplash \
- -application org.eclipse.ant.core.antRunner -v \
- -buildfile run-xsl.xml \
- -Dfile.sheet="fix-pom.xsl" \
- -Dfile.in="$(pwd)/$POM" \
- -Dfile.out="$(pwd)/${POM}.out"
- xmllint --format "${POM}.out" >"${POM}"
- rm "${POM}.out"
-done
-
-find * -name pom.xml -print0 | xargs -0 grep eclipse-feature | cut -f1 -d: | sort -u >/tmp/t1_$$.txt
-
-for POM in $( cat /tmp/t1_$$.txt ); do
- $ECLIPSE -noSplash \
- -application org.eclipse.ant.core.antRunner -v \
- -buildfile run-xsl.xml \
- -Dfile.sheet="fix-feature-pom.xsl" \
- -Dfile.in="$(pwd)/$POM" \
- -Dfile.out="$(pwd)/${POM}.out"
- xmllint --format "${POM}.out" >"${POM}"
- rm "${POM}.out"
-done
-
-
-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
- $ECLIPSE -noSplash \
- -application org.eclipse.ant.core.antRunner -v \
- -buildfile run-xsl.xml \
- -Dfile.sheet="fix-pom.xsl" \
- -Dfile.in="$(pwd)/$POM" \
- -Dfile.out="$(pwd)/${POM}.out"
- xmllint --format "${POM}.out" >"${POM}"
- rm "${POM}.out"
-done
diff --git a/scripts/xsl/run-xsl.xml b/scripts/xsl/run-xsl.xml
deleted file mode 100644
index e7b642d7..00000000
--- a/scripts/xsl/run-xsl.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project name="Run stylesheet" default="all" basedir=".">
- <property name="file.in" value="content.xml"/>
- <property name="file.out" value="out_${file.in}"/>
- <property name="file.sheet" value="sort.xsl"/>
-
- <target name="all">
- <xslt in="${file.in}" out="${file.out}" style="${file.sheet}"/>
- </target>
-</project>
diff --git a/scripts/xsl/upVersionParents.sh b/scripts/xsl/upVersionParents.sh
deleted file mode 100755
index 5d9cc10a..00000000
--- a/scripts/xsl/upVersionParents.sh
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/bin/bash
-#
-
-
-LOG=$(pwd)/log_$( date +%Y%m%d%H%M%S ).txt
-
-exec >>$LOG 2>&1
-
-LREPO=$(pwd)/../localMavenRepo
-
-JAVA_7_HOME=${JAVA_7_HOME:-/shared/common/jdk1.7.0-latest}
-JAVA_8_HOME=${JAVA_8_HOME:-/shared/common/jdk1.8.0_x64-latest}
-export JAVA_HOME=${JAVA_HOME:-${JAVA_8_HOME}}
-
-TMP_DIR=${TMP_DIR:-$(pwd)/../tmp}
-mkdir -p $TMP_DIR
-export MAVEN_OPTS=${MAVEN_OPTS:-"-Xmx2560m -XX:MaxPermSize=256M -Djava.io.tmpdir=${TMP_DIR}"}
-export MAVEN_PATH=${MAVEN_PATH:-/opt/local/apache-maven-3.1.1/bin}
-export PATH=${JAVA_HOME}/bin:${MAVEN_PATH}:${PATH}
-
-DIR=$( dirname $0 )
-NEW_VER=4.4.0-SNAPSHOT
-if [ $# -eq 1 ]; then
- NEW_VER="$1"
-fi
-
-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
- # this doesn't update everything like I hoped
- # and fails for a small number of bundles.
- # it doesn't deal well with the children of the parent poms
- mvn -Pbuild-individual-bundles \
- versions:set \
- -DnewVersion=$NEW_VER \
- -DgenerateBackupPoms=false \
- -f $POM \
- -Dmaven.repo.local=$LREPO
-done
-
-
diff --git a/scripts/xsl/xgroupId.sh b/scripts/xsl/xgroupId.sh
deleted file mode 100755
index 9b4ac56a..00000000
--- a/scripts/xsl/xgroupId.sh
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/bash
-
-ECLIPSE=/opt/local/e4-self/R421/eclipse/eclipse
-
-if [ $# -gt 0 ]; then
- ECLIPSE="$1" ; shift
-fi
-
-find * -name pom.xml -print0 | xargs -0 grep eclipse-plugin | cut -f1 -d: | sort -u >/tmp/t1_$$.txt
-
-for POM in $( cat /tmp/t1_$$.txt ); do
- xsltproc -o "${POM}.out" fix-pom.xsl "${POM}"
- mv "${POM}.out" "${POM}"
-done
-
-find * -name pom.xml -print0 | xargs -0 grep eclipse-feature | cut -f1 -d: | sort -u >/tmp/t1_$$.txt
-
-for POM in $( cat /tmp/t1_$$.txt ); do
- xsltproc -o "${POM}.out" fix-feature-pom.xsl "${POM}"
- mv "${POM}.out" "${POM}"
-done
-
-
-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
- xsltproc -o "${POM}.out" fix-pom.xsl "${POM}"
- mv "${POM}.out" "${POM}"
-done
-
-
diff --git a/scripts/xsl/xparentVersions.sh b/scripts/xsl/xparentVersions.sh
deleted file mode 100755
index 0bbcf6bc..00000000
--- a/scripts/xsl/xparentVersions.sh
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/bin/bash
-#
-
-DIR=$( dirname $0 )
-NEW_VER=0.14.0-SNAPSHOT
-if [ $# -eq 1 ]; then
- NEW_VER="$1"
-fi
-
-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 --stringparam new-version "$NEW_VER" -o "${POM}.out" $DIR/fix-pom-version.xsl "${POM}"
- mv "${POM}.out" "${POM}"
-done
-
-find * -name pom.xml | sort -u >/tmp/t1_$$.txt
-
-for POM in $( cat /tmp/t1_$$.txt ); do
- xsltproc --stringparam new-version "$NEW_VER" -o "${POM}.out" $DIR/fix-pom-parent-version.xsl "${POM}"
- mv "${POM}.out" "${POM}"
-done
-
-find * -name pom.xml -print0 | xargs -0 grep packaging.eclipse-plugin | cut -f1 -d: | sort -u >/tmp/t1_$$.txt
-find * -name pom.xml -print0 | xargs -0 grep packaging.eclipse-feature | cut -f1 -d: | sort -u >>/tmp/t1_$$.txt
-find * -name pom.xml -print0 | xargs -0 grep packaging.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 403352 - Update all parent versions to match our build stream
-EOF
-done
-
diff --git a/scripts/xsl/xslUpVersion.sh b/scripts/xsl/xslUpVersion.sh
deleted file mode 100755
index ad1a0552..00000000
--- a/scripts/xsl/xslUpVersion.sh
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/bin/bash
-#
-
-DIR=$( dirname $0 )
-NEW_VER=4.4.0-SNAPSHOT
-if [ $# -eq 1 ]; then
- NEW_VER="$1"
-fi
-
-find * -name pom.xml -print0 >/tmp/files.txt
-
-cat /tmp/files.txt | xargs -0 grep packaging.pom..packaging | cut -f1 -d: | sort -u >/tmp/t1_$$.txt
-cat /tmp/files.txt | xargs -0 grep packaging.eclipse-repository..packaging | cut -f1 -d: | sort -u >>/tmp/t1_$$.txt
-
-for POM in $( cat /tmp/t1_$$.txt ); do
- xsltproc --stringparam new-version "$NEW_VER" -o "${POM}.out" $DIR/fix-pom-version.xsl "${POM}"
- mv "${POM}.out" "${POM}"
-done
-
-find * -name pom.xml | sort -u >/tmp/t1_$$.txt
-
-for POM in $( cat /tmp/t1_$$.txt ); do
- xsltproc --stringparam new-version "$NEW_VER" -o "${POM}.out" $DIR/fix-pom-parent-version.xsl "${POM}"
- mv "${POM}.out" "${POM}"
-done
-

Back to the top