[acceleo] mtl and emtl, what is the difference? [message #708149] |
Tue, 02 August 2011 14: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
|
|
|
(no subject) [message #708284 is a reply to message #708149] |
Tue, 02 August 2011 16:14   |
Eclipse User |
|
|
|
Hi
No. The Acceleo editor enables yoy to maintain the *.mtl file.
The Acceleo builder geneerates a relkated *.java and *.emtl files in
your bin tree.
Check that you have the Acceleo nature for your project and use the
Navigator to inspect your bin tree.
"/br/com" is really wierd. Looks like a typo.
Regards
Ed Willink
On 02/08/2011 15:06, Leonardo Kenji Shikida wrote:
> 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 08: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] |
Thu, 23 February 2017 00: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.03518 seconds