EMF OCL Example cannot find org.eclipse.emf.ecore.codegen.ecore templates [message #1783858] |
Mon, 19 March 2018 15:52 |
Bruce Trask Messages: 58 Registered: July 2009 |
Member |
|
|
Hello,
I was following along with https://www.eclipse.org/articles/article.php?file=Article-EMF-Codegen-with-OCL/index.html
and when running it I get the following error:
Errors occurred during the build.
Errors running builder 'JET Builder' on project 'org.eclipse.ocl.examples.codegen'.
The file 'Class.javajet' cannot be read in 'model/Class.javajet' at line 1 column 258
The file 'Class.javajet' cannot be read in 'model/Class.javajet' at line 1 column 258
The file 'Class.javajet' cannot be read in 'model/Class.javajet' at line 1 column 258
The file 'Class.javajet' cannot be read in 'model/Class.javajet' at line 1 column 258
with the offending line being in the example's Class.javajet which is supposed to include the jet file from the org.eclipse.emf.codegen.ecore package:
<%@ jet package="org.eclipse.ocl.examples.codegen.templates.model" imports="java.util.* org.eclipse.emf.codegen.ecore.genmodel.* org.eclipse.emf.ecore.*" class="Class" version="$Id$" %>
<% final String oclNsURI = "http://www.eclipse.org/ocl/examples/OCL"; %>
<%@ include file="Class.javajet"%>
Questions: How does JET know where to find these base templates contained in org.eclipse.emf.codegen.ecore? What is the standard way to provide the include path to JET to find the eclipse base jet templates? Perhaps this is no longer supported. Or do I have to supply an absolute or relative path to their location?
Or am I missing something on this?
Regards,
Bruce
[Updated on: Mon, 19 March 2018 16:08] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.01412 seconds