Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » '.emtl' not found
'.emtl' not found [message #759530] Tue, 29 November 2011 01:19 Go to next message
Atif Javed is currently offline Atif JavedFriend
Messages: 21
Registered: March 2010
Junior Member
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 12:51]

Report message to a moderator

Re: '.emtl' not found [message #760083 is a reply to message #759530] Thu, 01 December 2011 09:13 Go to previous messageGo to next message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1902
Registered: July 2009
Senior Member
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 14:29 Go to previous message
Atif Javed is currently offline Atif JavedFriend
Messages: 21
Registered: March 2010
Junior Member
Thanks you very much.

[Updated on: Sat, 03 December 2011 17:27]

Report message to a moderator

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


Current Time: Fri Apr 19 05:10:27 GMT 2024

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

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

Back to the top