Skip to main content



      Home
Home » Modeling » M2T (model-to-text transformation) » '.emtl' not found
'.emtl' not found [message #759530] Mon, 28 November 2011 20:19 Go to next message
Eclipse UserFriend
Hi,

I want to perform ACCELEO transformation from .mtl file instead of build (.emtl) file. Because, this plug-in is used as Executable Jar File (which have no bin folders).

Error:
java.io.IOException: 'ProjectName.PackageName.ACCELEOMainTemplateJavaFile.emtl' not found

My currently written code is (which is not working in that case):
ProjectName.PackageName.ACCELEOMainTemplateJavaFile generator = new ProjectName.PackageName.ACCELEOMainTemplateJavaFile(modelURI, targetFolder.getLocation().toFile(), getArguments());
monitor.worked(1);
String generationID = org.eclipse.acceleo.engine.utils.AcceleoLaunchingUtil.computeUIProjectID("ProjectName", "ProjectName.PackageName.ACCELEOMainTemplateJavaFile", modelURI.toString(), targetFolder.getFullPath().toString(), new ArrayList<String>());
generator.setGenerationID(generationID);
generator.doGenerate(BasicMonitor.toMonitor(monitor));

Any kind of help is appreciated.

Regards,
Atif/

[Updated on: Tue, 29 November 2011 07:51] by Moderator

Re: '.emtl' not found [message #760083 is a reply to message #759530] Thu, 01 December 2011 04:13 Go to previous messageGo to next message
Eclipse UserFriend
Hi Atif,

Whether it is from an executable jar or not, the generation must be launched from an emtl file. And Wether it has a bin folder or not, the emtl is there Razz. The emtl file is the compiled form of the mtl file, much like the class file is the compiled form of a java file. You have the .class, nothing prevents you from having the .emtl Smile.

The jar file should contain the .emtl file; you should not have anything to change in order for it to work : just create your Acceleo module, export it as an executable jar, and launch the generation from that jar.

Laurent Goubet
Obeo
Re: '.emtl' not found [message #760174 is a reply to message #760083] Thu, 01 December 2011 09:29 Go to previous message
Eclipse UserFriend
Thanks you very much.

[Updated on: Sat, 03 December 2011 12:27] by Moderator

Previous Topic:load profile
Next Topic:using acceleo to M2M
Goto Forum:
  


Current Time: Fri Jul 18 10:09:44 EDT 2025

Powered by FUDForum. Page generated in 0.24065 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top