| <?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= |
| "uimaj, |
| normal-modules, |
| uima-framework, |
| eclipse-plugins, |
| eclipse-features, |
| eclipse-update-site, |
| docbooks, |
| readme"/> |
| <!-- uimaj, normal-modules, uima-framework, |
| eclipse-plugins, eclipse-features, eclipse-update, |
| docbooks, readme --> |
| |
| <target name="uimaj"> |
| <replace file="${wksp}/uimaj/pom.xml" summary="yes"> |
| <replacefilter token="<version>${uima.prev.version}</version> <!-- this comment is a flag for changeVersion -->" |
| value="<version>${uima.version}</version> <!-- this comment is a flag for changeVersion -->"/> |
| <replacefilter token="<uimaj-release-version>${uima.prev.version}</uimaj-release-version>" |
| value="<uimaj-release-version>${uima.version}</uimaj-release-version>"/> |
| <replacefilter token="<uimaj-release-eclipse-version>${uima.eclipse.prev.version}</uimaj-release-eclipse-version>" |
| value="<uimaj-release-eclipse-version>${uima.eclipse.version}</uimaj-release-eclipse-version>"/> |
| </replace> |
| <replace file="${wksp}/uimaj/eclipse-plugin-superPom/pom.xml" summary="yes"> |
| <replacefilter token="<version>${uima.prev.version}</version> <!-- this comment is a flag for changeVersion -->" |
| value="<version>${uima.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= |
| "jVinci/pom.xml, |
| uimaj-adapter-soap/pom.xml, |
| uimaj-adapter-vinci/pom.xml, |
| uimaj-bootstrap/pom.xml, |
| uimaj-component-test-util/pom.xml, |
| uimaj-core/pom.xml, |
| uimaj-cpe/pom.xml, |
| uimaj-distr/pom.xml, |
| uimaj-document-annotation/pom.xml, |
| uimaj-examples/pom.xml, |
| uimaj-internal-tools/pom.xml, |
| uimaj-test-util/pom.xml, |
| uimaj-tools/pom.xml, |
| PearPackagingMavenPlugin/pom.xml, |
| uimaj/distr-superPom/pom.xml |
| - " summary="yes" |
| token="<version>${uima.prev.version}</version> <!-- this comment is a flag for changeVersion -->" |
| value="<version>${uima.version}</version> <!-- this comment is a flag for changeVersion -->"/> |
| </target> |
| |
| <target name="uima-framework"> |
| <replace file="${wksp}/uimaj-core/src/main/java/org/apache/uima/impl/UIMAFramework_impl.java" summary="yes"> |
| <replacefilter token="return ${uima.prev.version.major}; // major version" |
| value="return ${uima.version.major}; // major version"/> |
| <replacefilter token="return ${uima.prev.version.minor}; // minor version" |
| value="return ${uima.version.minor}; // minor version"/> |
| <replacefilter token="return ${uima.prev.version.buildRevision}; // build revision" |
| value="return ${uima.version.buildRevision}; // build revision"/> |
| </replace> |
| </target> |
| |
| <target name="eclipse-plugins"> |
| <replace dir="${wksp}" includes= |
| "uimaj-ep-configurator/pom.xml, |
| uimaj-ep-debug/pom.xml, |
| uimaj-ep-jcasgen/pom.xml, |
| uimaj-ep-pear-packager/pom.xml, |
| uimaj-ep-runtime/pom.xml, |
| uimaj-ep-cas-editor/pom.xml, |
| uimaj-eclipse-feature-deployeditor/pom.xml, |
| uimaj-eclipse-feature-runtime/pom.xml, |
| uimaj-eclipse-feature-tools/pom.xml, |
| uimaj-eclipse-update-site/pom.xml |
| - " summary="yes" |
| token="<version>${uima.eclipse.prev.version}</version> <!-- this comment is a flag for changeVersion -->" |
| value="<version>${uima.eclipse.version}</version> <!-- this comment is a flag for changeVersion -->"/> |
| </target> |
| |
| <target name="eclipse-features"> |
| <replace dir="${wksp}" includes="uimaj-eclipse-feature-*/feature.xml" |
| summary="yes" |
| token='version="${uima.eclipse.prev.version}"' |
| value='version="${uima.eclipse.version}"'/> |
| </target> |
| |
| <target name="eclipse-update-site"> |
| <replace file="${wksp}/uimaj-eclipse-update-site/build.xml" |
| summary="yes" |
| token='version="${uima.eclipse.prev.version}"' |
| value='version="${uima.eclipse.version}"'/> |
| <replace file="${wksp}/uimaj-eclipse-update-site/site.xml" |
| summary="yes" |
| token='version="${uima.eclipse.prev.version}"' |
| value='version="${uima.eclipse.version}"'/> |
| <replace file="${wksp}/uimaj-eclipse-update-site/site.xml" |
| summary="yes" |
| token='_${uima.eclipse.prev.version}.jar' |
| value='_${uima.eclipse.version}.jar'/> |
| </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="uima-docbooks/src/docbook/common_book_info.xml" |
| summary="yes" |
| token="<releaseinfo>Version ${uima.prev.version}</releaseinfo>" |
| value="<releaseinfo>Version ${uima.version}</releaseinfo>" /> |
| <replace dir="${wksp}" includes="uima-docbooks/src/index.html" |
| summary="yes" |
| token='<p class="releaseinfo">Version ${uima.prev.version}</p>' |
| value='<p class="releaseinfo">Version ${uima.version}</p>' /> |
| <echo message="Manually update the uima-docbooks/src/docbook/common_book_info.xml: <pubdate>October, 2009</pubdate>" /> |
| <echo message='Manually update the uima-docbooks/src/index.html: <p class="pubdate">October, 2009</p>' /> |
| </target> |
| |
| </project> |