[ 
https://issues.apache.org/jira/browse/UIMA-2519?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13558648#comment-13558648
 ] 

Peter Klügl commented on UIMA-2519:
-----------------------------------

Some comments about this issue:

- This functionality can be implemented the same way the uimaj-ep-launcher 
works: Extend a JavaLaunchDelegate and expand the classpath of the started vm 
with the installed uimaj-ep-runtime. In case of the TextMarker projects, you 
need of course also the classes of uimaj-ep-textmarker-engine. This would 
replace the TextMarkerLaunchConfigurationDelegate and friends. 

- TextMarker projects already support some simple "buildpath". This is 
currently used to exend the paths for the analysis engine, scriptPaths and 
descriptorPaths, which are something like a classpath in order to find the 
referenced descriptors and scripts. I don't know if it is already possible to 
link a TextMarker project with a Java project with that buildpath, but if yes, 
then this information can be used to extend the classpath of the started vm. 
Maybe it is possible to extend this for jars, but I doubt that it will be 
straightforward.

- When the LaunchDelegate exchanged and especially if a vm is started, then the 
parameters should be refactored. The "main" method should process additional 
parameters like input folder and output folder. We have to think about the 
consequences for other tooling operations like Quick Apply. This should 
probably also work with workspace AEs, and, therefore, should delegate to the 
LaunchDelegate.

- If such work is done for the launching package, then one should also 
investigate the use of GenericTextMarkerInstall, which is essentially not used 
at all by the current implementation. We could either remove this (+1), or 
exchange it with the specification of the vm used in the LaunchDelegate. I 
don't think that TextMarker will ever use an external interpreter.

btw, Martin, you are of course welcome to provide a patch :-)


                
> TextMarker: call Java Annotators from Java UIMA projects in the same workspace
> ------------------------------------------------------------------------------
>
>                 Key: UIMA-2519
>                 URL: https://issues.apache.org/jira/browse/UIMA-2519
>             Project: UIMA
>          Issue Type: New Feature
>          Components: TextMarker
>    Affects Versions: 2.0.0TextMarker
>            Reporter: Martin Toepfer
>            Assignee: Peter Klügl
>
> I would like to hava a better integration between TextMarker projects and 
> Java projects with the UIMA nature. When I am working on an annotator written 
> in Java, I want a simple way to "exec" this annotator from TextMarker scripts 
> in the same workspace. It would be nice to just add a dependency of that 
> TextMarker project to the Java project.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to