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 2017/09/29 18:11:26 UTC
svn commit: r1810143 - in
/uima/build/trunk/uima-eclipse-update-site-slicing: ./ pom.xml readme.txt
subsiteSlicing.xml
Author: schor
Date: Fri Sep 29 18:11:26 2017
New Revision: 1810143
URL: http://svn.apache.org/viewvc?rev=1810143&view=rev
Log:
[UIMA-5594]
Added:
uima/build/trunk/uima-eclipse-update-site-slicing/pom.xml
uima/build/trunk/uima-eclipse-update-site-slicing/readme.txt
uima/build/trunk/uima-eclipse-update-site-slicing/subsiteSlicing.xml
Modified:
uima/build/trunk/uima-eclipse-update-site-slicing/ (props changed)
Propchange: uima/build/trunk/uima-eclipse-update-site-slicing/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Fri Sep 29 18:11:26 2017
@@ -0,0 +1,3 @@
+.settings
+target
+.project
Added: uima/build/trunk/uima-eclipse-update-site-slicing/pom.xml
URL: http://svn.apache.org/viewvc/uima/build/trunk/uima-eclipse-update-site-slicing/pom.xml?rev=1810143&view=auto
==============================================================================
--- uima/build/trunk/uima-eclipse-update-site-slicing/pom.xml (added)
+++ uima/build/trunk/uima-eclipse-update-site-slicing/pom.xml Fri Sep 29 18:11:26 2017
@@ -0,0 +1,162 @@
+<?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.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache.uima</groupId>
+ <artifactId>parent-pom</artifactId>
+ <version>10</version>
+ <relativePath>../parent-pom</relativePath>
+ </parent>
+
+ <artifactId>uima-eclipse-update-site-maintenance</artifactId>
+ <packaging>pom</packaging>
+ <version>1-SNAPSHOT</version>
+
+ <name>Apache UIMA Eclipse: ${project.artifactId}</name>
+ <description>UIMA Eclipse update site maintenance</description>
+ <url>${uimaWebsiteUrl}</url>
+
+ <scm>
+ <connection>
+ scm:svn:http://svn.apache.org/repos/asf/uima/build/trunk/uima-eclipse-update-site-maintenance
+ </connection>
+ <developerConnection>
+ scm:svn:https://svn.apache.org/repos/asf/uima/build/trunk/uima-eclipse-update-site-maintenance
+ </developerConnection>
+ <url>
+ http://svn.apache.org/viewvc/uima/build/trunk/uima-eclipse-update-site-maintenance
+ </url>
+ </scm>
+
+ <properties>
+ <uimaScmRoot>uimaj</uimaScmRoot>
+ <uimaScmProject>${project.artifactId}</uimaScmProject>
+ <eclipseUpdateSite>${project.build.directory}/eclipse-update-site</eclipseUpdateSite>
+ <eclipseUpdateSlice>${eclipseUpdateSite}/${subsite}</eclipseUpdateSlice>
+
+ </properties>
+
+
+ <!-- ============================================= -->
+ <!-- Slice off most recent version subsite -->
+ <!-- Needs 1 parameter: -->
+ <!-- -Dsubsite=... -->
+ <!-- name of the subsite: uimaj, ruta, etc.-->
+ <!-- example -->
+ <!-- -Dsubsite=uimaj -->
+ <!-- ============================================= -->
+
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>SliceSubsite</id>
+ <phase>test</phase>
+ <configuration>
+ <target>
+ <taskdef name="if" classname="net.sf.antcontrib.logic.IfTask" />
+
+ <!-- if the property uima-maven-build-eclipse-home is set, use it, otherwise don't -->
+ <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>
+ </condition>
+
+ <property environment="envVar" />
+ <condition property="eclipse.home" value="${envVar.ECLIPSE_HOME}">
+ <isset property="envVar.ECLIPSE_HOME" />
+ </condition>
+
+ <fail unless="eclipse.home" message="********** Please set up and use an ant property eclipse.home set to an Eclipse installation at level 3.3 or later, e.g. c:/eclipses/3.3/eclipse" />
+
+ <!-- We run an internal Ant this way in order to have the Ant impl have the special defined tasks for p2 -->
+
+ <java jar="${eclipse-equinox-launcher}" fork="true" failonerror="true" maxmemory="256m">
+ <arg line="-application org.eclipse.ant.core.antRunner" />
+ <arg line="-f subsiteSlicing.xml" />
+ <arg line="-verbose" />
+ <arg line="-Dsubsite=${subsite}"/>
+ </java>
+
+ <!-- ============================================== -->
+ <!-- If apache-release, do checksums and gpg sign -->
+ <!-- ============================================== -->
+
+ <if>
+ <equals arg1="${isApacheRelease}" arg2="true" />
+ <then>
+ <echo message="Generating checksums for all jars" />
+ <checksum algorithm="sha1" format="MD5SUM">
+ <fileset dir="${eclipseUpdateSlice}">
+ <include name="**/*.jar.pack.gz" />
+ <include name="**/*.jar" />
+ </fileset>
+ </checksum>
+ <checksum algorithm="md5" format="MD5SUM">
+ <fileset dir="${eclipseUpdateSlice}">
+ <include name="**/*.jar.pack.gz" />
+ <include name="**/*.jar" />
+ </fileset>
+ </checksum>
+
+ <echo message="Generating gpg signatures for all jars" />
+ <!-- gpg fails if sig file already exists, so delete it if it exists -->
+ <delete>
+ <fileset dir="${eclipseUpdateSlice}" includes="**/*.asc" />
+ </delete>
+ <apply executable="gpg" dir="${eclipseUpdateSlice}">
+ <arg value="--detach-sign" />
+ <arg value="--armor" />
+ <!-- batch flag needed to avoid gpg hang up -->
+ <arg value="--batch" />
+ <fileset dir="${eclipseUpdateSlice}">
+ <include name="**/*.jar" />
+ <include name="**/*.jar.pack.gz" />
+ </fileset>
+ </apply>
+
+ </then>
+ <else>
+ <echo message=""/>
+ <echo message="********************************************"/>
+ <echo message="No signing done; don't upload these results!"/>
+ <echo message=" Run with -Papache-release to do signing."/>
+ <echo message="********************************************"/>
+ <echo message=""/>
+ </else>
+ </if>
+
+ </target>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
\ No newline at end of file
Added: uima/build/trunk/uima-eclipse-update-site-slicing/readme.txt
URL: http://svn.apache.org/viewvc/uima/build/trunk/uima-eclipse-update-site-slicing/readme.txt?rev=1810143&view=auto
==============================================================================
--- uima/build/trunk/uima-eclipse-update-site-slicing/readme.txt (added)
+++ uima/build/trunk/uima-eclipse-update-site-slicing/readme.txt Fri Sep 29 18:11:26 2017
@@ -0,0 +1,25 @@
+Use this maven project (maven build with a test target) to
+take a UIMA subsite and "slice off" just the lastest version of the feature groups.
+
+Source: the original in dist.apache.org's svn for release of a UIMA Eclipse plugin subsite.
+Destination: this project's target/eclipse-update-site/<subsite-name>
+
+Subsites are for
+ - UIMAJ SDK uimaj, and uimaj-v3-pre-production
+ - RUTA ruta
+ - UIMA-AS uima-as
+
+The slicing operation needs to regenerate the gpg signatures, so it will ask for your signing key.
+This is only done if you include the apache-release profile.
+
+
+How to run
+----------
+
+1) update the subsiteSlicing.xml to specify the slicing details - names of the features,
+ expressed as installable unit names - you need to format these like the example there
+ ending in .feature.group.
+
+2) mvn test -Dsubsite=xxxxx -Papache-release
+ - change property subsite to "uimaj", "ruta", "uimaj-v3-pre-production", etc.
+
Added: uima/build/trunk/uima-eclipse-update-site-slicing/subsiteSlicing.xml
URL: http://svn.apache.org/viewvc/uima/build/trunk/uima-eclipse-update-site-slicing/subsiteSlicing.xml?rev=1810143&view=auto
==============================================================================
--- uima/build/trunk/uima-eclipse-update-site-slicing/subsiteSlicing.xml (added)
+++ uima/build/trunk/uima-eclipse-update-site-slicing/subsiteSlicing.xml Fri Sep 29 18:11:26 2017
@@ -0,0 +1,55 @@
+<?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.
+-->
+<project name="subsiteSlicing" basedir="." default="subsiteSlicing">
+ <target name="subsiteSlicing">
+ <property name="eclipseUpdateSlice" value="target/eclipse-update-site/${subsite}"/>
+
+ <echo>starting Eclipse update site slicing for ${subsite}</echo>
+
+ <!-- ============================================== -->
+ <!-- maintenance to slice out most recent version -->
+ <!-- -->
+ <!-- change iu's below to the feature groups -->
+ <!-- appropriate to your subsite -->
+ <!-- -->
+ <!-- Specifying iu's with no version selects -->
+ <!-- the most recent version -->
+ <!-- -->
+ <!-- You can specify specific versions if -->
+ <!-- desired -->
+ <!-- ============================================== -->
+
+ <delete dir="${eclipseUpdateSlice}" quiet="false"/>
+
+ <!-- don't use raw='false' because all it does is change timestamps and uuids -->
+ <p2.mirror source="https://dist.apache.org/repos/dist/release/uima/eclipse-update-site/${subsite}" verbose='true'>
+ <destination location="${eclipseUpdateSlice}"/>
+ <slicingoptions followStrict='true' includeOptional='false' includeNonGreedy='false'/>
+
+ <!-- insert the name of all features -->
+ <iu id='org.apache.uima.runtime.feature.group'/>
+ <iu id='org.apache.uima.tools.feature.group'/>
+
+ </p2.mirror>
+
+ <delete dir="${eclipseUpdateSlice}/.blobstore" quiet="false"/>
+ <echo>done</echo>
+ </target>
+</project>
\ No newline at end of file