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 2016/12/08 19:24:51 UTC

svn commit: r1773284 - in /uima/uimaj/branches/experiment-v3-jcas/uimaj-examples: pom.xml src/main/eclipseProject/classpath src/main/run_configuration/UIMA Run V3 migrate JCas from classes roots.launch

Author: schor
Date: Thu Dec  8 19:24:51 2016
New Revision: 1773284

URL: http://svn.apache.org/viewvc?rev=1773284&view=rev
Log:
no Jira - fix examples project to be able to launch migration tool from Eclipse.  Fix the eclipseProject example classpath to include the UIMA_HOME/lib/ 3 additional Jars

Added:
    uima/uimaj/branches/experiment-v3-jcas/uimaj-examples/src/main/run_configuration/UIMA Run V3 migrate JCas from classes roots.launch
Modified:
    uima/uimaj/branches/experiment-v3-jcas/uimaj-examples/pom.xml
    uima/uimaj/branches/experiment-v3-jcas/uimaj-examples/src/main/eclipseProject/classpath

Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-examples/pom.xml
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-examples/pom.xml?rev=1773284&r1=1773283&r2=1773284&view=diff
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-examples/pom.xml (original)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-examples/pom.xml Thu Dec  8 19:24:51 2016
@@ -40,7 +40,7 @@
        from the chain of parent poms, if this is omitted. 
        
        Keeping this a bit factored allows cutting/pasting the <scm>
-       element, and just changing the following two properties -->  
+       element, and just changing the following two properties -->
   <scm>
     <connection>
       scm:svn:http://svn.apache.org/repos/asf/uima/uimaj/trunk/uimaj-examples
@@ -57,53 +57,60 @@
     <uimaScmProject>${project.artifactId}</uimaScmProject>
     <postNoticeText>${ibmNoticeText}</postNoticeText>
   </properties>
-  
-	<dependencies>
-		<dependency>
-			<groupId>org.apache.uima</groupId>
-			<artifactId>uimaj-core</artifactId>
-			<version>${project.parent.version}</version>
-			<scope>compile</scope>
-		</dependency>
-		<dependency>
-			<groupId>org.apache.uima</groupId>
-			<artifactId>uimaj-cpe</artifactId>
-			<version>${project.parent.version}</version>
-			<scope>compile</scope>
-		</dependency>		
-		<dependency>
-			<groupId>org.apache.uima</groupId>
-			<artifactId>uimaj-document-annotation</artifactId>
-			<version>${project.parent.version}</version>
-			<scope>compile</scope>
-		</dependency>	
- 		<dependency>
-			<groupId>org.apache.uima</groupId>
-			<artifactId>uimaj-tools</artifactId>
-			<version>${project.parent.version}</version>
-			<scope>compile</scope>
-		</dependency>		
- 		<dependency>
-			<groupId>org.eclipse.emf</groupId>
-			<artifactId>common</artifactId>
-			<version>2.1.0</version>
-			<scope>provided</scope>
-		</dependency>
-		<dependency>
-			<groupId>org.eclipse.emf</groupId>
-			<artifactId>ecore</artifactId>
-			<version>2.1.0</version>
-			<scope>provided</scope>
-		</dependency>
-		<dependency>
-			<groupId>org.eclipse.emf</groupId>
-			<artifactId>ecore-xmi</artifactId>
-			<version>2.1.0</version>
-			<scope>provided</scope>
-		</dependency>
-	</dependencies>
-	<build>
-		<finalName>uima-examples</finalName>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.uima</groupId>
+      <artifactId>uimaj-core</artifactId>
+      <version>${project.parent.version}</version>
+      <scope>compile</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.uima</groupId>
+      <artifactId>uimaj-cpe</artifactId>
+      <version>${project.parent.version}</version>
+      <scope>compile</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.uima</groupId>
+      <artifactId>uimaj-document-annotation</artifactId>
+      <version>${project.parent.version}</version>
+      <scope>compile</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.uima</groupId>
+      <artifactId>uimaj-tools</artifactId>
+      <version>${project.parent.version}</version>
+      <scope>compile</scope>
+    </dependency>
+    <dependency>  <!-- needed for run config to find Migrate tool -->
+      <groupId>org.apache.uima</groupId>
+      <artifactId>uimaj-v3migration-jcas</artifactId>
+      <version>${project.parent.version}</version>
+      <scope>compile</scope>
+    </dependency>
+
+    <dependency>
+      <groupId>org.eclipse.emf</groupId>
+      <artifactId>common</artifactId>
+      <version>2.1.0</version>
+      <scope>provided</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.eclipse.emf</groupId>
+      <artifactId>ecore</artifactId>
+      <version>2.1.0</version>
+      <scope>provided</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.eclipse.emf</groupId>
+      <artifactId>ecore-xmi</artifactId>
+      <version>2.1.0</version>
+      <scope>provided</scope>
+    </dependency>
+  </dependencies>
+  <build>
+    <finalName>uima-examples</finalName>
     <pluginManagement>
       <plugins>
         <plugin>
@@ -117,12 +124,12 @@
                   <exclude>src/main/data/*.txt</exclude> <!-- sample data -->
                   <exclude>src/main/eclipseProject/*readme.txt</exclude> <!-- readme -->
                   <exclude>src/main/resources/org/apache/uima/tutorial/ex6/*.txt</exclude> <!-- sample data -->
-                </excludes>              
+                </excludes>
               </configuration>
             </execution>
           </executions>
-        </plugin>       
+        </plugin>
       </plugins>
     </pluginManagement>
-	</build>	
+  </build>	
 </project>
\ No newline at end of file

Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-examples/src/main/eclipseProject/classpath
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-examples/src/main/eclipseProject/classpath?rev=1773284&r1=1773283&r2=1773284&view=diff
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-examples/src/main/eclipseProject/classpath (original)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-examples/src/main/eclipseProject/classpath Thu Dec  8 19:24:51 2016
@@ -45,6 +45,10 @@
 	<classpathentry kind="var" path="UIMA_HOME/lib/uima-adapter-vinci.jar"/>
 	<classpathentry kind="var" path="UIMA_HOME/lib/uima-adapter-soap.jar"/>
 	<classpathentry kind="var" path="UIMA_HOME/lib/jVinci.jar"/>
+	<classpathentry kind="var" path="UIMA_HOME/lib/uimaj-v3migration-jcas.jar"/>
+	<classpathentry kind="var" path="UIMA_HOME/lib/procyon-compilertools-0.5.28.jar"/>
+  <classpathentry kind="var" path="UIMA_HOME/lib/procyon-core-0.5.28.jar"/>
+  <classpathentry kind="var" path="UIMA_HOME/lib/javaparser-core-2.5.1.jar"/>
 	<classpathentry kind="lib" path="resources"/>
 	<classpathentry kind="output" path="bin"/>
 </classpath>

Added: uima/uimaj/branches/experiment-v3-jcas/uimaj-examples/src/main/run_configuration/UIMA Run V3 migrate JCas from classes roots.launch
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-examples/src/main/run_configuration/UIMA%20Run%20V3%20migrate%20JCas%20from%20classes%20roots.launch?rev=1773284&view=auto
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-examples/src/main/run_configuration/UIMA Run V3 migrate JCas from classes roots.launch (added)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-examples/src/main/run_configuration/UIMA Run V3 migrate JCas from classes roots.launch Thu Dec  8 19:24:51 2016
@@ -0,0 +1,24 @@
+<?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.    
+-->
+<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
+<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.apache.uima.migratev3.jcas.MigrateJCas"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-classesRoots &quot;${folder_prompt:root dir for compiled classes and jars and PEARs}&quot; &#13;&#10;-outputDirectory &quot;${folder_prompt:output file, something like /temp/uima-v3-migrated/:/temp/uima_v3_migrate}&quot; &#13;&#10;-migrateClasspath ${project_classpath}"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="uimaj-examples"/>
+</launchConfiguration>