| Running Ecore2Java task without headless Eclipse [message #532008] |
Thu, 06 May 2010 14:16  |
Eclipse User |
|
|
|
I'm trying to run the Ecore2Java task without using a headless Eclipse instance. Is this possible at all?
I tried defining a taskdef for the Ecore2Java task as follows
<taskdef name="emf.Ecore2Java" classname="org.eclipse.emf.importer.ecore.taskdefs.EcoreGeneratorTask ">
<classpath>
<fileset dir="C:\eclipse\plugins" includes="*.jar" />
<fileset dir="C:\eclipse\ecore2java" includes="*.jar" />
</classpath>
</taskdef>
I had to extract out emf.ant.tasks.jar and importer.ecore.tasks.jar from the eclipse plugins jars and make it available on the classpath but my build fails with this message
java.lang.RuntimeException:
org.eclipse.emf.common.util.DiagnosticException: RuntimeException: Cannot creat
e a resource for 'file:/<path>/src/main/metamodel
/Workflow.genmodel'; a registered resource factory is needed
So I'm obviously missing something. I'm still playing with it but wanted to find out if it would be possible in the first place. Any pointers would be greatly appreciated.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04137 seconds