[ 
https://issues.apache.org/jira/browse/UIMA-4132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Marshall Schor updated UIMA-4132:
---------------------------------
    Fix Version/s:     (was: 2.7.0SDK)
                   backlogSDK

> JCasGen with limit option does not work in Eclipse unless typesystem is 
> reloaded
> --------------------------------------------------------------------------------
>
>                 Key: UIMA-4132
>                 URL: https://issues.apache.org/jira/browse/UIMA-4132
>             Project: UIMA
>          Issue Type: Bug
>          Components: Eclipse plugins
>            Reporter: Richard Eckart de Castilho
>            Priority: Minor
>             Fix For: backlogSDK
>
>
> # Create a Java project "test2"
> # Create a type system description "typeSystemDescriptor2.xml" in "test2"
> # Create a type "some.typename.you.Choose2" in that descriptor
> # Save "typeSystemDescriptor2.xml"
> # Create a Java project "test"
> # Add "test2" as a build dependency to "test"
> # Create a type system description "typeSystemDescriptor.xml" in "test"
> # Create a type "some.typename.you.Choose" in that descriptor
> # Add "typeSystemDescriptor2.xml" via import-by-name 
> # Save "typeSystemDescriptor.xml"
> # Enable "limited" in "typeSystemDescriptor.xml"
> # Press JCasGen in "typeSystemDescriptor.xml"
> Expected result:
> * JCas files generated for "some.typename.you.Choose"
> * no JCas files generated for "some.typename.you.Choose2"
> Actual result:
> * no JCas files generated whatsoever
> Diagnosis
> * isOutOfScope() requires the sourceUrl in the type descriptor to be set
> * apparently, the sourceUrl is not set when "typeSystemDescriptor.xml" is 
> created (also not when saved)
> Workaround
> * close the editor for "typeSystemDescriptor.xml"
> * reopen it
> * Enable "limited" in "typeSystemDescriptor.xml"
> * Press JCasGen in "typeSystemDescriptor.xml"



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to