SandboxDistr/annotator-package/build/changeVersion.xml (61 lines of code) (raw):

<?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.version.snapshot to -SNAPSHOT or nothing sets uima.version.base to x.y.z sets uima.prev.version.snapshot sets uima.prev.version.base --> <property name="uima.version" value="${uima.version.base}-incubating${uima.version.snapshot}"/> <echo>uima.version: ${uima.version}</echo> <property name="uima.eclipse.version" value="${uima.version.base}.incubating${uima.version.snapshot}"/> <echo>uima.eclipse.version: ${uima.eclipse.version}</echo> <property name="uima.prev.version" value="${uima.prev.version.base}-incubating${uima.prev.version.snapshot}"/> <echo>uima.prev.version: ${uima.prev.version}</echo> <property name="uima.eclipse.prev.version" value="${uima.prev.version.base}.incubating${uima.prev.version.snapshot}"/> <echo>uima.eclipse.prev.version: ${uima.eclipse.prev.version}</echo> <property name="wksp" location="../../../"/> <echo>workspace location: ${wksp}</echo> <target name="all" depends= "sandbox, normal-modules, docbooks, readme"/> <!-- uimaj, normal-modules, uima-framework, eclipse-plugins, eclipse-features, eclipse-update, docbooks, readme --> <target name="sandbox"> <replace file="${wksp}/SandboxDistr/pom.xml" summary="yes"> <replacefilter token="&lt;version&gt;${uima.prev.version}&lt;/version&gt; &lt;!-- this comment is a flag for changeVersion -->" value="&lt;version&gt;${uima.version}&lt;/version&gt; &lt;!-- this comment is a flag for changeVersion -->"/> </replace> <replace file="${wksp}/SandboxDistr/annotator-package/pom.xml" summary="yes"> <replacefilter token="&lt;version&gt;${uima.prev.version}&lt;/version&gt; &lt;!-- this comment is a flag for changeVersion -->" value="&lt;version&gt;${uima.version}&lt;/version&gt; &lt;!-- this comment is a flag for changeVersion -->"/> </replace> </target> <target name="normal-modules"> <replace dir="${wksp}" includes= "BSFAnnotator/pom.xml, ConceptMapper/pom.xml, ConfigurableFeatureExtractor/pom.xml, DictionaryAnnotator/pom.xml, FsVariables/pom.xml, Lucas/pom.xml, OpenCalaisAnnotator/pom.xml, PearPackagingAntTask/pom.xml, RegularExpressionAnnotator/pom.xml, SandboxDistr/annotator-package/pom.xml, SandboxDistr/pear-builder-pom/pom.xml, SimpleServer/pom.xml, SnowballAnnotator/pom.xml, Tagger/pom.xml, TikaAnnotator/pom.xml, WhitespaceTokenizer/pom.xml - " summary="yes" token="&lt;version&gt;${uima.prev.version}&lt;/version&gt; &lt;!-- this comment is a flag for changeVersion -->" value="&lt;version&gt;${uima.version}&lt;/version&gt; &lt;!-- this comment is a flag for changeVersion -->"/> </target> <target name="readme"> <echo message="Manually update the uimaj-distr/src/main/readme/RELEASE_NOTES and RELEASE_NOTES.html"/> </target> <target name="docbooks"> <replace dir="${wksp}" includes="SandboxDocs/src/docbook/book_info.xml" summary="yes" token="&lt;releaseinfo>Version ${uima.prev.version}&lt;/releaseinfo>" value="&lt;releaseinfo>Version ${uima.version}&lt;/releaseinfo>" /> <echo message="Manually update the SandboxDocs/src/docbook/book_info.xml: &lt;pubdate>October, 2009&lt;/pubdate>" /> </target> </project>