I am extending EMF Ecore model to have an implementation like UML2. I have defined my templates/model/Class.javajet file like:
<%@ jet package="my.templates.model" imports="java.util.* org.eclipse.emf.codegen.ecore.genmodel.* org.eclipse.emf.ecore.*" class="Class"%>
<%@ include file="Class.javajet"%>
I have created an ant task:
<target name="Class">
<emf.JETCompiler
sourcedirectory="${gendirectory}"
templatefile="${templates}/model/Class.javajet"
/>
</target>
When I execute this ant task, I get the file not found error. I am able to compile this if I remove the include tag. Also I am able to generate the code if I generate the model code from generator model i.e. RMB in genmodel and select Generate Model Code.
My requirement is I do not want to launch runtime eclipse to compile/generate my jet files. I also tried changing the project nature to JET nature but that also has the same problem.
Any suggetions?
Regards
Asheesh