You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by sc...@apache.org on 2008/03/09 21:15:29 UTC
svn commit: r635342 - in
/incubator/uima/sandbox/trunk/uima-as/uima-as-distr/src/main/build: ./
changeVersion.xml signRelease.sh versions.properties
Author: schor
Date: Sun Mar 9 13:15:11 2008
New Revision: 635342
URL: http://svn.apache.org/viewvc?rev=635342&view=rev
Log:
[UIMA-839] Create the customized build scripts for uima-as gpg signing and for changing the version
Added:
incubator/uima/sandbox/trunk/uima-as/uima-as-distr/src/main/build/
incubator/uima/sandbox/trunk/uima-as/uima-as-distr/src/main/build/changeVersion.xml
incubator/uima/sandbox/trunk/uima-as/uima-as-distr/src/main/build/signRelease.sh
incubator/uima/sandbox/trunk/uima-as/uima-as-distr/src/main/build/versions.properties
Added: incubator/uima/sandbox/trunk/uima-as/uima-as-distr/src/main/build/changeVersion.xml
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/uima-as/uima-as-distr/src/main/build/changeVersion.xml?rev=635342&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/uima-as/uima-as-distr/src/main/build/changeVersion.xml (added)
+++ incubator/uima/sandbox/trunk/uima-as/uima-as-distr/src/main/build/changeVersion.xml Sun Mar 9 13:15:11 2008
@@ -0,0 +1,127 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+
+<!-- Run this with ant to change the version number.
+ Input (new version number, previous one, and a history)
+ is kept in the file "versions.properties" - so edit
+ this file before running the script
+ -->
+
+<project name="set-version-string" basedir="." default="all">
+
+
+ <property file="versions.properties"/>
+ <!-- sets uima.as.version.snapshot to -SNAPSHOT or nothing
+ sets uima.as.version.base to x.y.z
+ sets uima.as.prev.version.snapshot
+ sets uima.as.prev.version.base
+ -->
+
+ <property name="uima.as.version" value="${uima.as.version.base}-incubating${uima.as.version.snapshot}"/>
+ <property name="uima.as.eclipse.version" value="${uima.as.version.base}.incubating${uima.as.version.snapshot}"/>
+ <property name="uima.as.prev.version" value="${uima.as.prev.version.base}-incubating${uima.as.prev.version.snapshot}"/>
+ <property name="uima.as.eclipse.prev.version" value="${uima.as.prev.version.base}.incubating${uima.as.prev.version.snapshot}"/>
+ <property name="wksp" location="../../../../"/>
+
+ <target name="all" depends=
+ "uimaj-as,
+ normal-modules,
+ eclipse-plugins,
+ eclipse-features,
+ eclipse-update,
+ docbooks,
+ readme"/>
+ <!-- uimaj, normal-modules, uima-framework,
+ eclipse-plugins, eclipse-features, eclipse-update,
+ docbooks, readme -->
+
+ <target name="uimaj-as">
+ <replace file="${wksp}/uimaj/pom.xml" summary="yes">
+ <replacefilter token="<version>${uima.as.prev.version}</version> <!-- this comment is a flag for changeVersion -->"
+ value="<version>${uima.as.version}</version> <!-- this comment is a flag for changeVersion -->"/>
+ <replacefilter token="<uimaj-release-version>${uima.as.prev.version.base}</uimaj-release-version>"
+ value="<uimaj-release-version>${uima.as.version.base}</uimaj-release-version>"/>
+ <replacefilter token="<uimaj-release-eclipse-version>${uima.as.prev.version.base}</uimaj-release-eclipse-version>"
+ value="<uimaj-release-eclipse-version>${uima.as.version.base}</uimaj-release-eclipse-version>"/>
+ <replacefilter token="<uimaj-as-release-version>${uima.as.prev.version.base}</uimaj-as-release-version>"
+ value="<uimaj-as-release-version>${uima.as.version.base}</uimaj-as-release-version>"/>
+ </replace>
+
+ <replace file="${wksp}/uimaj/eclipse-plugin-superPom/pom.xml" summary="yes">
+ <replacefilter token="<version>${uima.as.prev.version}</version> <!-- this comment is a flag for changeVersion -->"
+ value="<version>${uima.as.version}</version> <!-- this comment is a flag for changeVersion -->"/>
+ <replacefilter token="<version>${uima.eclipse.prev.version}</version> <!-- this comment is a flag for changeVersion - eclipse -->"
+ value="<version>${uima.eclipse.version}</version> <!-- this comment is a flag for changeVersion - eclipse -->"/>
+
+ </replace>
+ </target>
+
+ <target name="normal-modules">
+ <replace dir="${wksp}" includes=
+ "uimaj-as-activemq/pom.xml,
+ uimaj-as-core/pom.xml,
+ uimaj-as-jms/pom.xml
+- " summary="yes"
+ token="<version>${uima.as.prev.version}</version> <!-- this comment is a flag for changeVersion -->"
+ value="<version>${uima.as.version}</version> <!-- this comment is a flag for changeVersion -->"/>
+ </target>
+
+ <target name="eclipse-plugins">
+ <replace dir="${wksp}" includes=
+ "uimaj-ep-deployeditor/pom.xml,
+ uimaj-ep-runtime-deployeditor/pom.xml
+- " summary="yes"
+ token="<version>${uima.as.eclipse.prev.version}</version> <!-- this comment is a flag for changeVersion -->"
+ value="<version>${uima.as.eclipse.version}</version> <!-- this comment is a flag for changeVersion -->"/>
+ <replace file="${wksp}/uimaj-ep-runtime-deployeditor/pom.xml"
+ token='<Fragment-Host>org.apache.uima.runtime;bundle-version="${uima.as.prev.version.base}"</Fragment-Host>'
+ value='<Fragment-Host>org.apache.uima.runtime;bundle-version="${uima.as.version.base}"</Fragment-Host>'/>
+ </target>
+
+ <target name="eclipse-features">
+ <replace dir="${wksp}" includes=
+ "uimaj-eclipse-feature-deployeditor/feature.xml"
+ summary="yes"
+ token='version="${uima.as.eclipse.prev.version}"'
+ value='version="${uima.as.eclipse.version}"'/>
+ </target>
+
+ <target name="eclipse-update">
+ <echo message="Manually update the uimaj-eclipse-update/site.xml"/>
+ </target>
+
+ <target name="readme">
+ <echo message="Manually update the uimaj-as-distr/src/main/readme/RELEASE_NOTES and RELEASE_NOTES.html"/>
+ </target>
+
+ <target name="docbooks">
+ <replace dir="${wksp}" includes="uima-as-docbooks/src/docbook/common_book_info.xml"
+ summary="yes"
+ token="<releaseinfo>Version ${uima.as.prev.version}</releaseinfo>"
+ value="<releaseinfo>Version ${uima.as.version}</releaseinfo>" />
+ <replace dir="${wksp}" includes="uima-docbooks/src/index.html"
+ summary="yes"
+ token='<p class="releaseinfo">Version ${uima.as.prev.version}</p>'
+ value='<p class="releaseinfo">Version ${uima.as.version}</p>' />
+ <echo message="Manually update the uima-docbooks/src/docbook/common_book_info.xml: <pubdate>December, 2007</pubdate>" />
+ </target>
+
+</project>
\ No newline at end of file
Added: incubator/uima/sandbox/trunk/uima-as/uima-as-distr/src/main/build/signRelease.sh
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/uima-as/uima-as-distr/src/main/build/signRelease.sh?rev=635342&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/uima-as/uima-as-distr/src/main/build/signRelease.sh (added)
+++ incubator/uima/sandbox/trunk/uima-as/uima-as-distr/src/main/build/signRelease.sh Sun Mar 9 13:15:11 2008
@@ -0,0 +1,43 @@
+#!/bin/sh
+
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+# Bourne shell syntax, this should hopefully run on pretty much anything.
+
+usage() {
+ echo "run on Windows inside Cygwin, or on Linux"
+ echo "Usage: cd to uimaj-as-distr, then do src/main/build/signRelease.sh <version> <passphrase> (e.g., src/main/build/signRelease.sh uima-as-2.2.0-incubating-SNAPSHOT \"Your passphrase\")"
+}
+
+if [ -n "$2" ]
+then
+ release=$1
+ passphrase=$2
+else
+ usage
+ exit 1
+fi
+
+# Create PGP signatures
+for i in target/${release}*.zip; do gpg --passphrase "$passphrase" --output $i.asc --detach-sig --armor $i; done
+for i in target/${release}*.gz; do gpg --passphrase "$passphrase" --output $i.asc --detach-sig --armor $i; done
+for i in target/${release}*.bz2; do gpg --passphrase "$passphrase" --output $i.asc --detach-sig --armor $i; done
+# for eclipse update site
+for i in ../uimaj-eclipse-update-site/target/eclipse-update-site/features/org.apache.uima.*.jar; do gpg --passphrase "$passphrase" --output $i.asc --detach-sig --armor $i; done
+for i in ../uimaj-eclipse-update-site/target/eclipse-update-site/plugins/org.apache.uima.*.jar; do gpg --passphrase "$passphrase" --output $i.asc --detach-sig --armor $i; done
+for i in ../uimaj-eclipse-update-site/target/eclipse-update-site/plugins/org.apache.uima.*.jar.pack.gz; do gpg --passphrase "$passphrase" --output $i.asc --detach-sig --armor $i; done
Added: incubator/uima/sandbox/trunk/uima-as/uima-as-distr/src/main/build/versions.properties
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/uima-as/uima-as-distr/src/main/build/versions.properties?rev=635342&view=auto
==============================================================================
--- incubator/uima/sandbox/trunk/uima-as/uima-as-distr/src/main/build/versions.properties (added)
+++ incubator/uima/sandbox/trunk/uima-as/uima-as-distr/src/main/build/versions.properties Sun Mar 9 13:15:11 2008
@@ -0,0 +1,53 @@
+# ***************************************************************
+# * Licensed to the Apache Software Foundation (ASF) under one
+# * or more contributor license agreements. See the NOTICE file
+# * distributed with this work for additional information
+# * regarding copyright ownership. The ASF licenses this file
+# * to you under the Apache License, Version 2.0 (the
+# * "License"); you may not use this file except in compliance
+# * with the License. You may obtain a copy of the License at
+# *
+# * http://www.apache.org/licenses/LICENSE-2.0
+# *
+# * Unless required by applicable law or agreed to in writing,
+# * software distributed under the License is distributed on an
+# * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# * KIND, either express or implied. See the License for the
+# * specific language governing permissions and limitations
+# * under the License.
+# ***************************************************************
+
+############################################################
+# UIMA Version strings
+#
+# We keep all the version strings here, for reference,
+# but only the first set is used.
+#
+# A set consists of
+# a) what the new values should be
+# b) what the previous values were
+#
+# The previous values are used to compare against, to find
+# the string to replace.
+############################################################
+
+# set this to -SNAPSHOT to have the snapshot suffix
+# otherwise set to [nothing]
+uima.version.snapshot=-SNAPSHOT
+uima.version.base=2.2.2
+uima.version.major=2
+uima.version.minor=2
+uima.version.buildRevision=2
+uima.as.version.base=2.2.2
+uima.as.version.snapshot=-SNAPSHOT
+
+# These next values are used to construct the matching
+# strings to replace
+
+uima.prev.version.snapshot=-SNAPSHOT
+uima.prev.version.base=2.3.0
+uima.prev.version.major=2
+uima.prev.version.minor=3
+uima.prev.version.buildRevision=0
+uima.as.prev.version.base=0.7.0
+uima.as.prev.version.snapshot=
\ No newline at end of file