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/05/07 15:53:15 UTC

svn commit: r654107 - in /incubator/uima/uimaj/trunk/uimaj-eclipse-update-site: ./ features/

Author: schor
Date: Wed May  7 06:53:15 2008
New Revision: 654107

URL: http://svn.apache.org/viewvc?rev=654107&view=rev
Log:
[UIMA-1025] do Eclipse update site for uima base 2.2.2.

Added:
    incubator/uima/uimaj/trunk/uimaj-eclipse-update-site/signEclipseUpdateSite.sh   (with props)
    incubator/uima/uimaj/trunk/uimaj-eclipse-update-site/verifySigsEclipseUpdateSite.sh   (with props)
Removed:
    incubator/uima/uimaj/trunk/uimaj-eclipse-update-site/features/org.apache.uima.as.deployeditor_2.2.2.incubating.jar
Modified:
    incubator/uima/uimaj/trunk/uimaj-eclipse-update-site/build.xml
    incubator/uima/uimaj/trunk/uimaj-eclipse-update-site/features/org.apache.uima.runtime_2.2.2.incubating.jar
    incubator/uima/uimaj/trunk/uimaj-eclipse-update-site/features/org.apache.uima.tools_2.2.2.incubating.jar
    incubator/uima/uimaj/trunk/uimaj-eclipse-update-site/site.xml

Modified: incubator/uima/uimaj/trunk/uimaj-eclipse-update-site/build.xml
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uimaj-eclipse-update-site/build.xml?rev=654107&r1=654106&r2=654107&view=diff
==============================================================================
--- incubator/uima/uimaj/trunk/uimaj-eclipse-update-site/build.xml (original)
+++ incubator/uima/uimaj/trunk/uimaj-eclipse-update-site/build.xml Wed May  7 06:53:15 2008
@@ -19,17 +19,30 @@
    under the License.    
 -->
 
-<!-- This script can be run "stand alone" for testing, but
-     normally is called from the uimaj-distr POM when assembly:assembly
-     goal is being run 
+<!-- This script is run from ant and builds a new update site.
+     Parameters:
+       a target naming the feature set to build
+       a release number (e.g. 2.2.2) to be used in the generated jars
+         and to speicfy the jar version 
+       
+       The jars are obtained from the local maven repo.  
      -->
 
 <!-- set the basedir value to point to the top level of the project -->
 
 <project name="build update site" default="all" basedir=".">
 	
-	<!-- will be overridden by maven caller -->
-	<property name="project.version" value="2.2.2.incubating-SNAPSHOT"/>
+	<!-- set this to the version being built -->
+	<property name="project.version.base" value="2.2.2"/>
+  
+  <!-- uncomment one or more of these lines to indicate
+       the new feature sets being added with this build -->
+	
+	<!--property name="feature.uima-as" value=""/-->
+	<property name="feature.uima-base" value="" />
+	
+	
+	<property name="project.full.eclipse.version" value="${project.version.base}.incubating"/>
  
   <condition property="eclipse.home" value="${uima-maven-build-eclipse-home}">
     <not><equals arg1="${uima-maven-build-eclipse-home}" arg2="$${uima-maven-build-eclipse-home}"/></not>
@@ -44,10 +57,9 @@
 	
 	<property name="eclipse.home" location="${uima-maven-build-eclipse-home}"/>
 
-	<!-- note: jar signing not done here, but rather as part of uimaj-distr POM processing -->
-  <target name="all" depends="init, 
-  	build-runtime, 
-  	build-tools, 
+	<target name="all" depends="init, 
+  	build-uima-base,
+		build-uima-as, 
   	pack-jars,
   	copy-features,
   	build-digest,
@@ -86,15 +98,15 @@
 		<attribute name="org-name"/>
 		<attribute name="project-name"/>
 		<sequential>
-			<copy todir="work/features/@{org-name}_${project.version}">
+			<copy todir="work/features/@{org-name}_${project.full.eclipse.version}">
 			   <fileset dir="../@{project-name}" includes="feature.xml feature.properties"/>
 			</copy>
-			<copy todir="work/features/@{org-name}_${project.version}/META-INF">
+			<copy todir="work/features/@{org-name}_${project.full.eclipse.version}/META-INF">
 				<fileset dir="../uimaj-distr/src/main/readme"
 		             includes="LICENSE NOTICE DISCLAIMER"/>
 		  </copy>
-			<jar destfile="target/eclipse-update-site/features/@{org-name}_${project.version}.jar"
-			  basedir="work/features/@{org-name}_${project.version}"/>
+			<jar destfile="target/eclipse-update-site/features/@{org-name}_${project.full.eclipse.version}.jar"
+			  basedir="work/features/@{org-name}_${project.full.eclipse.version}"/>
 		</sequential>
   </macrodef>
 	
@@ -102,23 +114,23 @@
 		<attribute name="project-name"/>
 		<attribute name="org-name"/>
 		<sequential>
-			<copy todir="target/eclipse-update-site/plugins"
-			      file="../@{project-name}/target/@{org-name}_${project.version}.jar"/>
+			<copy tofile="target/eclipse-update-site/plugins/@{org-name}_${project.full.eclipse.version}.jar"
+			      file="${envVar.HOMEPATH}/.m2/repository/org/apache/uima/@{project-name}/${project.full.eclipse.version}/@{project-name}-${project.full.eclipse.version}.jar"/>
 	  </sequential>
 	</macrodef>
 	
-  <target name="build-runtime">
+	<target name="build-uima-base" if="feature.uima-base">
   	<makeFeatureJar project-name="uimaj-eclipse-feature-runtime" org-name="org.apache.uima.runtime"/>
     <makePluginJar  project-name="uimaj-ep-runtime"              org-name="org.apache.uima.runtime"/>  	
-  </target>
-
-  <target name="build-tools">
-  	<makeFeatureJar project-name="uimaj-eclipse-feature-tools" org-name="org.apache.uima.tools" />
+ 
+		<makeFeatureJar project-name="uimaj-eclipse-feature-tools" org-name="org.apache.uima.tools" />
   	<makePluginJar  project-name="uimaj-ep-jcasgen"            org-name="org.apache.uima.jcas.jcasgenp"/>
     <makePluginJar  project-name="uimaj-ep-debug"              org-name="org.apache.uima.debug"/>
     <makePluginJar  project-name="uimaj-ep-pear-packager"      org-name="org.apache.uima.pear"/>
     <makePluginJar  project-name="uimaj-ep-configurator"       org-name="org.apache.uima.desceditor"/>
-  	
+  </target>
+	
+	<target name="build-uima-as" if="feature.uima-as">
   	<makeFeatureJar project-name="uimaj-eclipse-feature-deployeditor" org-name="org.apache.uima.as.deployeditor" />
   	<makePluginJar  project-name="uimaj-ep-deployeditor"         org-name="org.apache.uima.deployeditor"/>
     <makePluginJar  project-name="uimaj-ep-runtime-deployeditor" org-name="org.apache.uima.runtime-deployeditor"/>	
@@ -170,11 +182,4 @@
 		<delete dir="features" includes="*-SNAPSHOT.jar"/>
 	</target>
 	
-	<!--target name="move-to-uimaj-distr-target">
-		<delete dir="../uimaj-distr/target/eclipse-update-site" quiet="true"/>
-		<mkdir dir="../uimaj-distr/target/eclipse-update-site"/>
-		<copy todir="../uimaj-distr/target/eclipse-update-site">
-			<fileset dir="target/eclipse-update-site"/>
-	  </copy>
-	</target-->
 </project>

Modified: incubator/uima/uimaj/trunk/uimaj-eclipse-update-site/features/org.apache.uima.runtime_2.2.2.incubating.jar
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uimaj-eclipse-update-site/features/org.apache.uima.runtime_2.2.2.incubating.jar?rev=654107&r1=654106&r2=654107&view=diff
==============================================================================
Binary files - no diff available.

Modified: incubator/uima/uimaj/trunk/uimaj-eclipse-update-site/features/org.apache.uima.tools_2.2.2.incubating.jar
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uimaj-eclipse-update-site/features/org.apache.uima.tools_2.2.2.incubating.jar?rev=654107&r1=654106&r2=654107&view=diff
==============================================================================
Binary files - no diff available.

Added: incubator/uima/uimaj/trunk/uimaj-eclipse-update-site/signEclipseUpdateSite.sh
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uimaj-eclipse-update-site/signEclipseUpdateSite.sh?rev=654107&view=auto
==============================================================================
--- incubator/uima/uimaj/trunk/uimaj-eclipse-update-site/signEclipseUpdateSite.sh (added)
+++ incubator/uima/uimaj/trunk/uimaj-eclipse-update-site/signEclipseUpdateSite.sh Wed May  7 06:53:15 2008
@@ -0,0 +1,44 @@
+#!/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 "Usage: cd to the uimaj-eclipse-update-site project, then signEclipseUpdateSite.sh <passphrase> (e.g., signEclipseUpdateSite.sh \"Your passphrase\")"
+}
+
+if [ -n "$1" ]
+then
+  passphrase=$1
+else
+  usage
+  exit 1
+fi
+
+# Create PGP signatures
+for i in target/eclipse-update-site/features/org.apache.uima.*.incubating.jar; do gpg --passphrase "$passphrase" --output $i.asc --detach-sig --armor $i; done
+for i in  target/eclipse-update-site/plugins/org.apache.uima.*.incubating.jar;  do gpg --passphrase "$passphrase" --output $i.asc --detach-sig --armor $i; done
+
+# Create MD5 checksums
+for i in target/eclipse-update-site/features/org.apache.uima.*.incubating.jar; do md5sum --binary $i > $i.md5; done
+for i in  target/eclipse-update-site/plugins/org.apache.uima.*.incubating.jar;  do md5sum --binary $i > $i.md5; done
+
+# Create SHA1 checksums
+for i in target/eclipse-update-site/features/org.apache.uima.*.incubating.jar; do sha1sum --binary $i > $i.sha1; done
+for i in  target/eclipse-update-site/plugins/org.apache.uima.*.incubating.jar;  do sha1sum --binary $i > $i.sha1; done

Propchange: incubator/uima/uimaj/trunk/uimaj-eclipse-update-site/signEclipseUpdateSite.sh
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/uima/uimaj/trunk/uimaj-eclipse-update-site/site.xml
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uimaj-eclipse-update-site/site.xml?rev=654107&r1=654106&r2=654107&view=diff
==============================================================================
--- incubator/uima/uimaj/trunk/uimaj-eclipse-update-site/site.xml (original)
+++ incubator/uima/uimaj/trunk/uimaj-eclipse-update-site/site.xml Wed May  7 06:53:15 2008
@@ -24,17 +24,17 @@
       Eclipse update site for Apache UIMA.
    </description>
    
-   <!-- keep old features listed here - to permit the update site to provide the older features -->
    <feature url="features/org.apache.uima.tools_2.2.2.incubating.jar" id="org.apache.uima.tools" version="2.2.2.incubating">
       <category name="uima-tooling-and-runtimes"/>
    </feature>
    <feature url="features/org.apache.uima.runtime_2.2.2.incubating.jar" id="org.apache.uima.runtime" version="2.2.2.incubating">
       <category name="uima-tooling-and-runtimes"/>
    </feature>
-   <feature url="features/org.apache.uima.as.deployeditor_2.2.2.incubating.jar" id="org.apache.uima.as.deployeditor" version="2.2.2.incubating">
+   <!--feature url="features/org.apache.uima.as.deployeditor_2.2.2.incubating.jar" id="org.apache.uima.as.deployeditor" version="2.2.2.incubating">
       <category name="uima-as-tooling-and-runtimes"/>
-   </feature>
+   </feature-->
    
+   <!-- keep old features listed here - to permit the update site to provide the older features -->
    <feature url="features/org.apache.uima.tools_2.2.1.incubating.jar" id="org.apache.uima.tools" version="2.2.1.incubating">
       <category name="uima-tooling-and-runtimes"/>
    </feature>
@@ -43,5 +43,5 @@
    </feature>
    
    <category-def name="uima-tooling-and-runtimes" label="Apache UIMA Eclipse tooling and runtime support"/>
-   <category-def name="uima-as-tooling-and-runtimes" label="Apache UIMA-AS (Asynchronous Scaleout) Eclipse tooling and runtime support"/>
+   <!--category-def name="uima-as-tooling-and-runtimes" label="Apache UIMA-AS (Asynchronous Scaleout) Eclipse tooling and runtime support"/-->
 </site>

Added: incubator/uima/uimaj/trunk/uimaj-eclipse-update-site/verifySigsEclipseUpdateSite.sh
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uimaj-eclipse-update-site/verifySigsEclipseUpdateSite.sh?rev=654107&view=auto
==============================================================================
--- incubator/uima/uimaj/trunk/uimaj-eclipse-update-site/verifySigsEclipseUpdateSite.sh (added)
+++ incubator/uima/uimaj/trunk/uimaj-eclipse-update-site/verifySigsEclipseUpdateSite.sh Wed May  7 06:53:15 2008
@@ -0,0 +1,38 @@
+#!/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.
+
+# On windows, run this inside cygwin
+# Bourne shell syntax, this should hopefully run on pretty much anything.
+
+usage() {
+  echo "Usage: cd to eclipseUpdateSite, then verifySigsEclipseUpdateSite.sh )"
+}
+
+# Verify PGP signatures
+for i in target/eclipse-update-site/features/org.apache.uima.*.jar; do gpg --verify $i.asc; done
+for i in target/eclipse-update-site/plugins/org.apache.uima.*.jar;  do gpg --verify $i.asc; done
+
+# Verify MD5 checksums
+for i in target/eclipse-update-site/features/org.apache.uima.*.jar; do md5sum --check $i.md5; done
+for i in target/eclipse-update-site/plugins/org.apache.uima.*.jar;  do md5sum --check $i.md5; done
+
+# Verify SHA1 checksums
+for i in target/eclipse-update-site/features/org.apache.uima.*.jar; do sha1sum --check $i.sha1; done
+for i in target/eclipse-update-site/plugins/org.apache.uima.*.jar;  do sha1sum --check $i.sha1; done
+

Propchange: incubator/uima/uimaj/trunk/uimaj-eclipse-update-site/verifySigsEclipseUpdateSite.sh
------------------------------------------------------------------------------
    svn:eol-style = native