Hi,
I'm trying to execute an Acceleo M2T transformation from java. Execution starts but it fails with trowing this exception:
org.eclipse.acceleo.engine.AcceleoEvaluationException: Could not find public template generate in module generate.
at org.eclipse.acceleo.engine.service.AcceleoService.findTemplates(AcceleoService.java:1084)
at org.eclipse.acceleo.engine.service.AcceleoService.doGenerate(AcceleoService.java:550)
at org.eclipse.acceleo.engine.service.AbstractAcceleoGenerator.generate(AbstractAcceleoGenerator.java:193)
at org.eclipse.acceleo.engine.service.AbstractAcceleoGenerator.doGenerate(AbstractAcceleoGenerator.java:158)
at asml.carm.pgwb.pgwb2c.files.Generate.doGenerate(Generate.java:192)
at asml.carm.pgwb.pgwbm2c.GenerateImplementation.generateCode(GenerateImplementation.java:103)
What I tried: I have two projects, one being a simple Acceleo project containing the actual transformation and one Java project that will be invoking the transformation. The project setup is such that the Java project depends on the Acceleo project.
In order to test this, I just execute a run-time eclipse instance from eclipse. Then when I invoke the java project (via a right-click pop menu entry) I get the exception.
I suspect that I need to configure where to find the templates but how? How should I make these projects depend on each other?
Greetings,
Wilbert.
[Updated on: Mon, 06 February 2012 03:16] by Moderator