uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexandre Patry <alexandre.pa...@keatext.com>
Subject Re: Using JCasGen outside eclipse
Date Fri, 12 Oct 2012 19:29:04 GMT
On Fri 12 Oct 2012 02:41:45 PM EDT, Himanshu Gahlot wrote:
> Hi,
> Is it possible to use the JCas generator utility in some other IDE
> (IntelliJ Idea, to be specific) other than Eclipse? Something where I just
> need to write the xml for the new type and the corresponding Java class
> gets generated using a call to some uima class/script.

I use jcasgen along with maven in Intellij IDEA. Here are the specific 
snippets for maven :

<!-- Needed to compile type descriptions to java -->
                Run jcasgen on the "generate-source" phase and copy the 
.java in target/generated-sources/uima.
                Do not forget to configure the content of the 
"<argument>" tags to your needs.

            <!-- Adds the generated sources to the build -->

Looking at jcasgen.sh, you could also call the class 
org.apache.uima.tools.jcasgen.Jg from a run configuration.

Hope this help,


Alexandre Patry

>> Transformez vos documents en outils de décision
<< Turn your documents into decision tools

View raw message