You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by pk...@apache.org on 2021/03/23 15:16:39 UTC

[uima-ruta] branch bugfix/UIMA-6213-Ruta-LayerInstantiationException created (now bf7b081)

This is an automated email from the ASF dual-hosted git repository.

pkluegl pushed a change to branch bugfix/UIMA-6213-Ruta-LayerInstantiationException
in repository https://gitbox.apache.org/repos/asf/uima-ruta.git.


      at bf7b081  [UIMA-6213] Ruta: LayerInstantiationException in LaunchDelegate using newer Java versions

This branch includes the following new commits:

     new bf7b081  [UIMA-6213] Ruta: LayerInstantiationException in LaunchDelegate using newer Java versions

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[uima-ruta] 01/01: [UIMA-6213] Ruta: LayerInstantiationException in LaunchDelegate using newer Java versions

Posted by pk...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

pkluegl pushed a commit to branch bugfix/UIMA-6213-Ruta-LayerInstantiationException
in repository https://gitbox.apache.org/repos/asf/uima-ruta.git

commit bf7b081f846b85b30ff23274e2ee9bace5c8ed68
Author: Peter Klügl <pe...@averbis.com>
AuthorDate: Tue Mar 23 16:16:08 2021 +0100

    [UIMA-6213] Ruta: LayerInstantiationException in LaunchDelegate using newer Java versions
    
    - java modules are not supported in simple ruta projects
---
 .../launching/RutaLaunchConfigurationDelegate.java | 27 +++++++++++++---------
 1 file changed, 16 insertions(+), 11 deletions(-)

diff --git a/ruta-ep-ide-ui/src/main/java/org/apache/uima/ruta/ide/launching/RutaLaunchConfigurationDelegate.java b/ruta-ep-ide-ui/src/main/java/org/apache/uima/ruta/ide/launching/RutaLaunchConfigurationDelegate.java
index 6386199..cb2d864 100644
--- a/ruta-ep-ide-ui/src/main/java/org/apache/uima/ruta/ide/launching/RutaLaunchConfigurationDelegate.java
+++ b/ruta-ep-ide-ui/src/main/java/org/apache/uima/ruta/ide/launching/RutaLaunchConfigurationDelegate.java
@@ -92,7 +92,8 @@ public class RutaLaunchConfigurationDelegate extends JavaLaunchDelegate {
     IPath outputDirPath = projectPath.append(RutaProjectUtils.getDefaultOutputLocation());
     Collection<String> classPath = RutaProjectUtils.getClassPath(proj.getProject());
     ClassLoader classLoader = RutaProjectUtils.getClassLoader(classPath);
-    IPath analysisEngineDescriptorPath = RutaProjectUtils.getAnalysisEngineDescriptorPath(member.getLocation(), proj.getProject(), classLoader);
+    IPath analysisEngineDescriptorPath = RutaProjectUtils
+            .getAnalysisEngineDescriptorPath(member.getLocation(), proj.getProject(), classLoader);
     String engineDefaultMethod = "null";
     if (analysisEngineDescriptorPath != null) {
       engineDefaultMethod = analysisEngineDescriptorPath.toPortableString();
@@ -107,8 +108,7 @@ public class RutaLaunchConfigurationDelegate extends JavaLaunchDelegate {
     if (StringUtils.isBlank(output)) {
       output = outputDirPath.toPortableString();
     }
-    String engine = configuration.getAttribute(RutaLaunchConstants.DESCRIPTOR,
-            engineDefaultMethod);
+    String engine = configuration.getAttribute(RutaLaunchConstants.DESCRIPTOR, engineDefaultMethod);
     if (StringUtils.isBlank(engine)) {
       engine = engineDefaultMethod;
     }
@@ -152,7 +152,7 @@ public class RutaLaunchConfigurationDelegate extends JavaLaunchDelegate {
 
     cmdline.append(RutaLaunchConstants.FORMAT + " ");
     cmdline.append(defaultFormat + " ");
-    
+
     return cmdline.toString();
   }
 
@@ -345,15 +345,15 @@ public class RutaLaunchConfigurationDelegate extends JavaLaunchDelegate {
 //        RutaIdeUIPlugin.error(e1);
 //      }
 //    } else {
-      super.launch(configuration, mode, launch, monitor);
+    super.launch(configuration, mode, launch, monitor);
 
-      while (!launch.isTerminated()) {
-        try {
-          Thread.sleep(100);
-        } catch (InterruptedException e) {
-          Thread.interrupted();
-        }
+    while (!launch.isTerminated()) {
+      try {
+        Thread.sleep(100);
+      } catch (InterruptedException e) {
+        Thread.interrupted();
       }
+    }
 //    }
     if (ouputFolder != null) {
       ouputFolder.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
@@ -386,4 +386,9 @@ public class RutaLaunchConfigurationDelegate extends JavaLaunchDelegate {
     return result;
   }
 
+  @Override
+  protected boolean supportsModule() {
+    return false;
+  }
+
 }