'.emtl' not found [message #759530] |
Tue, 29 November 2011 01:19 |
Atif Javed 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 |
|
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 . 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 .
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.06375 seconds