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 2010/12/02 18:15:43 UTC

svn commit: r1041470 - in /uima/uimaj/trunk: uimaj-eclipse-feature-runtime/ uimaj-eclipse-feature-tools/ uimaj-eclipse-feature-tools/src/ uimaj-eclipse-feature-tools/src/main/ uimaj-eclipse-feature-tools/src/main/resources/

Author: schor
Date: Thu Dec  2 17:15:43 2010
New Revision: 1041470

URL: http://svn.apache.org/viewvc?rev=1041470&view=rev
Log:
[UIMA-1959] add marker files to use common build pom for Eclipse feature projects. Move feature.xml to src/main/resources, and use resources plugin to copy to top level where Eclipse needs this, with filtering.  mark feature.xml at top level as svn ignore - it's now a generated file.

Added:
    uima/uimaj/trunk/uimaj-eclipse-feature-runtime/marker-file-identifying-eclipse-feature
    uima/uimaj/trunk/uimaj-eclipse-feature-tools/marker-file-identifying-eclipse-feature
    uima/uimaj/trunk/uimaj-eclipse-feature-tools/src/
    uima/uimaj/trunk/uimaj-eclipse-feature-tools/src/main/
    uima/uimaj/trunk/uimaj-eclipse-feature-tools/src/main/resources/
    uima/uimaj/trunk/uimaj-eclipse-feature-tools/src/main/resources/feature.xml
Modified:
    uima/uimaj/trunk/uimaj-eclipse-feature-runtime/   (props changed)
    uima/uimaj/trunk/uimaj-eclipse-feature-runtime/feature.properties
    uima/uimaj/trunk/uimaj-eclipse-feature-runtime/pom.xml
    uima/uimaj/trunk/uimaj-eclipse-feature-tools/   (props changed)
    uima/uimaj/trunk/uimaj-eclipse-feature-tools/feature.properties
    uima/uimaj/trunk/uimaj-eclipse-feature-tools/pom.xml

Propchange: uima/uimaj/trunk/uimaj-eclipse-feature-runtime/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Thu Dec  2 17:15:43 2010
@@ -4,3 +4,4 @@ src
 .settings
 .classpath
 .project
+feature.xml

Modified: uima/uimaj/trunk/uimaj-eclipse-feature-runtime/feature.properties
URL: http://svn.apache.org/viewvc/uima/uimaj/trunk/uimaj-eclipse-feature-runtime/feature.properties?rev=1041470&r1=1041469&r2=1041470&view=diff
==============================================================================
--- uima/uimaj/trunk/uimaj-eclipse-feature-runtime/feature.properties (original)
+++ uima/uimaj/trunk/uimaj-eclipse-feature-runtime/feature.properties Thu Dec  2 17:15:43 2010
@@ -17,4 +17,9 @@
 #	 * under the License.
 #	 ***************************************************************
 
-# do not delete this file - it is required for optimized site generation
\ No newline at end of file
+# do not delete this file - it is required for optimized site generation
+# feature.properties
+# contains externalized strings for feature.xml
+# "%foo" in feature.xml corresponds to the key "foo" in this file
+# java.io.Properties file (ISO 8859-1 with "\" escapes)
+# This file should be translated.
\ No newline at end of file

Added: uima/uimaj/trunk/uimaj-eclipse-feature-runtime/marker-file-identifying-eclipse-feature
URL: http://svn.apache.org/viewvc/uima/uimaj/trunk/uimaj-eclipse-feature-runtime/marker-file-identifying-eclipse-feature?rev=1041470&view=auto
==============================================================================
    (empty)

Modified: uima/uimaj/trunk/uimaj-eclipse-feature-runtime/pom.xml
URL: http://svn.apache.org/viewvc/uima/uimaj/trunk/uimaj-eclipse-feature-runtime/pom.xml?rev=1041470&r1=1041469&r2=1041470&view=diff
==============================================================================
--- uima/uimaj/trunk/uimaj-eclipse-feature-runtime/pom.xml (original)
+++ uima/uimaj/trunk/uimaj-eclipse-feature-runtime/pom.xml Thu Dec  2 17:15:43 2010
@@ -28,8 +28,8 @@
   </parent>
     
   <artifactId>uimaj-eclipse-feature-runtime</artifactId>
-  <packaging>jar</packaging>
   <version>2.3.1-SNAPSHOT</version>
+  
   <name>UIMA Eclipse: ${project.artifactId}</name>
   <description>UIMA Eclipse Plugin Feature that
     has the base UIMA runtime, referred to by other plugins that
@@ -62,10 +62,11 @@
 
   <build>
     <!-- parsedVersion set in parent-pom by builder-helper -->
-    <finalName>org.apache.uima.runtime_${parsedVersion.osgiVersion}</finalName>
+    <finalName>${project.artifactId}_${parsedVersion.osgiVersion}</finalName>
+    <!-- turn on filtering for these resources -->         
     <resources>
       <resource>
-        <directory>.</directory>
+        <directory>${basedir}</directory>
         <includes>
           <include>feature.properties</include>
           <include>feature.xml</include>
@@ -73,5 +74,31 @@
         <filtering>true</filtering>
       </resource>
     </resources>
+    
+    <plugins>
+      <!-- filter the feature.xml to have the right version info 
+           for Eclipse at the top level-->
+      <plugin>
+        <artifactId>maven-resources-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>filter feature.xml</id>
+            <!-- run before process-resources, which uses this result -->
+            <phase>generate-resources</phase>
+            <goals><goal>copy-resources</goal></goals>
+            <configuration>
+              <outputDirectory>${basedir}</outputDirectory>
+              <resources>
+                <resource>
+                  <directory>src/main/resources</directory>
+                  <includes><include>feature.xml</include></includes>
+                  <filtering>true</filtering>
+                </resource>
+              </resources> 
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
   </build>
 </project>
\ No newline at end of file

Propchange: uima/uimaj/trunk/uimaj-eclipse-feature-tools/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Thu Dec  2 17:15:43 2010
@@ -3,3 +3,4 @@ target
 .settings
 .classpath
 .project
+feature.xml

Modified: uima/uimaj/trunk/uimaj-eclipse-feature-tools/feature.properties
URL: http://svn.apache.org/viewvc/uima/uimaj/trunk/uimaj-eclipse-feature-tools/feature.properties?rev=1041470&r1=1041469&r2=1041470&view=diff
==============================================================================
--- uima/uimaj/trunk/uimaj-eclipse-feature-tools/feature.properties (original)
+++ uima/uimaj/trunk/uimaj-eclipse-feature-tools/feature.properties Thu Dec  2 17:15:43 2010
@@ -17,4 +17,9 @@
 #	 * under the License.
 #	 ***************************************************************
 
-# do not delete this file - it is required for optimized site generation
\ No newline at end of file
+# do not delete this file - it is required for optimized site generation
+# feature.properties
+# contains externalized strings for feature.xml
+# "%foo" in feature.xml corresponds to the key "foo" in this file
+# java.io.Properties file (ISO 8859-1 with "\" escapes)
+# This file should be translated.
\ No newline at end of file

Added: uima/uimaj/trunk/uimaj-eclipse-feature-tools/marker-file-identifying-eclipse-feature
URL: http://svn.apache.org/viewvc/uima/uimaj/trunk/uimaj-eclipse-feature-tools/marker-file-identifying-eclipse-feature?rev=1041470&view=auto
==============================================================================
    (empty)

Modified: uima/uimaj/trunk/uimaj-eclipse-feature-tools/pom.xml
URL: http://svn.apache.org/viewvc/uima/uimaj/trunk/uimaj-eclipse-feature-tools/pom.xml?rev=1041470&r1=1041469&r2=1041470&view=diff
==============================================================================
--- uima/uimaj/trunk/uimaj-eclipse-feature-tools/pom.xml (original)
+++ uima/uimaj/trunk/uimaj-eclipse-feature-tools/pom.xml Thu Dec  2 17:15:43 2010
@@ -60,10 +60,11 @@
 
   <build>
     <!-- parsedVersion set in parent-pom by builder-helper -->    
-    <finalName>org.apache.uima.tools_${parsedVersion.osgiVersion}</finalName>
+    <finalName>${project.artifactId}_${parsedVersion.osgiVersion}</finalName>
+    <!-- turn on filtering for these resources -->         
     <resources>
       <resource>
-        <directory>.</directory>
+        <directory>${basedir}</directory>
         <includes>
           <include>feature.properties</include>
           <include>feature.xml</include>
@@ -71,5 +72,31 @@
         <filtering>true</filtering>
       </resource>
     </resources>
+    
+    <plugins>
+      <!-- filter the feature.xml to have the right version info 
+           for Eclipse at the top level-->
+      <plugin>
+        <artifactId>maven-resources-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>filter feature.xml</id>
+            <!-- run before process-resources, which uses this result -->
+            <phase>generate-resources</phase>
+            <goals><goal>copy-resources</goal></goals>
+            <configuration>
+              <outputDirectory>${basedir}</outputDirectory>
+              <resources>
+                <resource>
+                  <directory>src/main/resources</directory>
+                  <includes><include>feature.xml</include></includes>
+                  <filtering>true</filtering>
+                </resource>
+              </resources> 
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
   </build>
 </project>
\ No newline at end of file

Added: uima/uimaj/trunk/uimaj-eclipse-feature-tools/src/main/resources/feature.xml
URL: http://svn.apache.org/viewvc/uima/uimaj/trunk/uimaj-eclipse-feature-tools/src/main/resources/feature.xml?rev=1041470&view=auto
==============================================================================
--- uima/uimaj/trunk/uimaj-eclipse-feature-tools/src/main/resources/feature.xml (added)
+++ uima/uimaj/trunk/uimaj-eclipse-feature-tools/src/main/resources/feature.xml Thu Dec  2 17:15:43 2010
@@ -0,0 +1,124 @@
+<?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.    
+-->
+<feature
+      id="org.apache.uima.tools"
+      label="UIMA tools (includes Runtime)"
+      version="${parsedVersion.osgiVersion}"
+      provider-name="Apache Software Foundation">
+
+   <description url="http://uima.apache.org">
+      This feature contains a debug structure handler plugin, the Component
+Descriptor Editor (a forms-based editor for creating and editing
+the XML descriptors used by UIMA), the JCas generation capability,
+a CAS Editor, and the PEAR packaging capability.
+   </description>
+
+   <copyright url="http://www.apache.org/licenses/LICENSE-2.0">
+      Copyright the Apache Software Foundation and others; see License
+and NOTICE files
+   </copyright>
+
+   <license url="http://www.apache.org/licenses/LICENSE-2.0">
+      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
+&quot;License&quot;); 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
+&quot;AS IS&quot; 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.
+   </license>
+
+   <url>
+      <discovery label="UIMA Eclipse Plugins update site" url="http://www.apache.org/dist/uima/eclipse-update-site/"/>
+   </url>
+
+   <includes
+         id="org.apache.uima.runtime"
+         version="${parsedVersion.osgiVersion}"
+         name="UIMA Runtime plugin feature"/>
+
+   <requires>
+      <import plugin="org.eclipse.core.runtime"/>
+      <import plugin="org.eclipse.jdt.debug.ui"/>
+      <import plugin="org.eclipse.ui"/>
+      <import plugin="org.eclipse.core.runtime.compatibility"/>
+      <import plugin="org.eclipse.ui.ide"/>
+      <import plugin="org.eclipse.jface.text"/>
+      <import plugin="org.eclipse.ui.workbench.texteditor"/>
+      <import plugin="org.eclipse.ui.editors"/>
+      <import plugin="org.eclipse.core.resources"/>
+      <import plugin="org.apache.uima.runtime"/>
+      <import plugin="org.eclipse.ui.forms"/>
+      <import plugin="org.eclipse.jdt.core"/>
+      <import plugin="org.eclipse.jdt.ui"/>
+      <import plugin="org.apache.uima.jcas.jcasgenp"/>
+      <import plugin="org.eclipse.jdt.launching"/>
+      <import plugin="org.eclipse.search"/>
+      <import plugin="org.eclipse.emf.codegen"/>
+      <import plugin="org.eclipse.emf.common"/>
+      <import plugin="org.eclipse.ui.views"/>
+      <import plugin="org.eclipse.jdt"/>
+      <import plugin="org.eclipse.text"/>
+      <import plugin="org.eclipse.ui.workbench"/>
+   </requires>
+
+   <plugin
+         id="org.apache.uima.debug"
+         download-size="0"
+         install-size="0"
+         version="${parsedVersion.osgiVersion}"
+         unpack="false"/>
+
+   <plugin
+         id="org.apache.uima.desceditor"
+         download-size="0"
+         install-size="0"
+         version="${parsedVersion.osgiVersion}"
+         unpack="false"/>
+
+   <plugin
+         id="org.apache.uima.jcas.jcasgenp"
+         download-size="0"
+         install-size="0"
+         version="${parsedVersion.osgiVersion}"
+         unpack="false"/>
+
+   <plugin
+         id="org.apache.uima.pear"
+         download-size="0"
+         install-size="0"
+         version="${parsedVersion.osgiVersion}"
+         unpack="false"/>
+
+   <plugin
+         id="org.apache.uima.caseditor"
+         download-size="0"
+         install-size="0"
+         version="${parsedVersion.osgiVersion}"
+         unpack="false"/>
+
+</feature>