[acceleo] mtl and emtl, what is the difference? [message #708149] |
Tue, 02 August 2011 10:06  |
Eclipse User |
|
|
|
acceleo generates a mtl file (model) but my deployed eclipse feature runtime asks for an emtl file.
java.io.IOException: '/br/com/spread/acceleo/presto/main/generate.emtl' not found
at org.eclipse.acceleo.engine.service.AbstractAcceleoGenerator.initialize(AbstractAcceleoGenerator.java:409)
at br.com.spread.acceleo.presto.main.Generate.<init>(Generate.java:90)
at br.com.spread.acceleo.presto.ui.common.GenerateAll.doGenerate(GenerateAll.java:90)
at br.com.spread.acceleo.presto.ui.popupMenus.AcceleoGeneratePrestoAction$1.run(AcceleoGeneratePrestoAction.java:76)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
what is the difference? how do I generate an emtl file?
TIA
Kenji
|
|
|
|
|
Re: (no subject) [message #709716 is a reply to message #708317] |
Thu, 04 August 2011 04:15   |
Eclipse User |
|
|
|
Hi Kenji,
The "mtl" file is what you edit when you create an Acceleo module, the "emtl" is the "compiled" form of that file. Kind of what the ".class" is to a ".java". i.e : the Acceleo builder is in charge of creating the emtl file, you should never have to worry about that (and don't have to).
Make sure that :
- You have the Acceleo nature on your project (right-click the project > Properties > "Builders" and in that list, you should see the "Acceleo builder" activated).
- You have the automatic build activated (click the "Project" menu item at the top of the Eclipse window, from there, make sure that "Build automatically" is ticked. If it is not, make sure you always build your project before deploying it (the emtl is present in the "bin" folder))
With these steps, creating an update site for the project *should* export the "emtl" files along the "class" files (if you have some Java code in there, otherwise, only "emtl" files). If it does not, it is a bug :s. We had such a bug with the previous Acceleo version, and I do not remember whether it was fixed for 3.0.0 or one of the subsequent minor releases. The latest release is the 3.1.0; the latest release from the maintenance stream is the 3.0.5. Check the download page for the update site URLs.
Laurent Goubet
Obeo
|
|
|
Re: problem with Acceleo .emtl file [message #1754838 is a reply to message #709716] |
Wed, 22 February 2017 19:37  |
Eclipse User |
|
|
|
Quote:Where do I configure my acceleo ui plugin to export these compiled models? Here is the sequence of steps I am using to export the generator
[1] acceleo project compiles the models into its /bin dir
[2] acceleo ui project plugin references acceleo project
[3] eclipse feature project includes {acceleo ui project, acceleo project, emf model project and generated emf edit and editor projects}
[4] eclipse update site project references eclipse feature project and deploys in a local dir
[5] another eclipse installs the feature via (local) update site
I had same problem like you (java.io.IOException: '/br/com/spread/acceleo/presto/main/generate.emtl' not found). I resolve it by two steps:
- exporte /bin folder into the update site: in acceleo project in MANIFEST.MF from the META-INF directory, in tab Build check the bin folder in the Binary Build list
- in acceleo project main java class change auto generated MODULE_FILE_NAME value (for example: "/br/com/spread/acceleo/presto/main"): add "/bin" at the beginning (for example: "/bin/br/com/spread/acceleo/presto/main")
|
|
|
Powered by
FUDForum. Page generated in 0.19711 seconds