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="&lt;version&gt;${uima.as.prev.version}&lt;/version&gt; &lt;!-- this comment is a flag for changeVersion -->"
+                     value="&lt;version&gt;${uima.as.version}&lt;/version&gt; &lt;!-- this comment is a flag for changeVersion -->"/>
+      <replacefilter token="&lt;uimaj-release-version&gt;${uima.as.prev.version.base}&lt;/uimaj-release-version&gt;"
+                     value="&lt;uimaj-release-version&gt;${uima.as.version.base}&lt;/uimaj-release-version&gt;"/>
+      <replacefilter token="&lt;uimaj-release-eclipse-version&gt;${uima.as.prev.version.base}&lt;/uimaj-release-eclipse-version&gt;"
+                     value="&lt;uimaj-release-eclipse-version&gt;${uima.as.version.base}&lt;/uimaj-release-eclipse-version&gt;"/>
+      <replacefilter token="&lt;uimaj-as-release-version&gt;${uima.as.prev.version.base}&lt;/uimaj-as-release-version&gt;"
+                     value="&lt;uimaj-as-release-version&gt;${uima.as.version.base}&lt;/uimaj-as-release-version&gt;"/>    
+    </replace>
+    
+    <replace file="${wksp}/uimaj/eclipse-plugin-superPom/pom.xml" summary="yes">
+       <replacefilter token="&lt;version&gt;${uima.as.prev.version}&lt;/version&gt; &lt;!-- this comment is a flag for changeVersion -->"
+                     value="&lt;version&gt;${uima.as.version}&lt;/version&gt; &lt;!-- this comment is a flag for changeVersion -->"/>
+       <replacefilter token="&lt;version&gt;${uima.eclipse.prev.version}&lt;/version&gt; &lt;!-- this comment is a flag for changeVersion - eclipse -->"
+                     value="&lt;version&gt;${uima.eclipse.version}&lt;/version&gt; &lt;!-- 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="&lt;version&gt;${uima.as.prev.version}&lt;/version&gt; &lt;!-- this comment is a flag for changeVersion -->"
+      value="&lt;version&gt;${uima.as.version}&lt;/version&gt; &lt;!-- 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="&lt;version&gt;${uima.as.eclipse.prev.version}&lt;/version&gt; &lt;!-- this comment is a flag for changeVersion -->"
+      value="&lt;version&gt;${uima.as.eclipse.version}&lt;/version&gt; &lt;!-- this comment is a flag for changeVersion -->"/>    
+    <replace file="${wksp}/uimaj-ep-runtime-deployeditor/pom.xml"
+      token='&lt;Fragment-Host>org.apache.uima.runtime;bundle-version="${uima.as.prev.version.base}"&lt;/Fragment-Host>'
+      value='&lt;Fragment-Host>org.apache.uima.runtime;bundle-version="${uima.as.version.base}"&lt;/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="&lt;releaseinfo>Version ${uima.as.prev.version}&lt;/releaseinfo>"
+      value="&lt;releaseinfo>Version ${uima.as.version}&lt;/releaseinfo>" />
+    <replace dir="${wksp}" includes="uima-docbooks/src/index.html"
+      summary="yes"
+      token='&lt;p class="releaseinfo">Version ${uima.as.prev.version}&lt;/p>'
+      value='&lt;p class="releaseinfo">Version ${uima.as.version}&lt;/p>' />    
+    <echo message="Manually update the uima-docbooks/src/docbook/common_book_info.xml: &lt;pubdate>December, 2007&lt;/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