Acceleo M2T Export in a diagram [message #1736082] |
Sat, 25 June 2016 02:59 |
Eclipse User |
|
|
|
Hi all,
I would like to export my model to some text files using Acceleo (3.6). Therefore I created a separate Acceleo project with my generator, which works fine. Now I tried to trigger the M2T from inside my sirius (4.0) diagram using a "Node Creation" operation, which uses a Java service method to call my Acceleo Generator like: . This always fails with:
org.eclipse.acceleo.engine.AcceleoEvaluationException: Class example.acceleo.services.Services Couldn't be found in the classpath of the bundle containing module generateQueries.emtl.
at org.eclipse.acceleo.engine.internal.environment.AcceleoLibraryOperationVisitor.invoke(AcceleoLibraryOperationVisitor.java:1174)
at org.eclipse.acceleo.engine.internal.environment.AcceleoLibraryOperationVisitor.callNonStandardOperation(AcceleoLibraryOperationVisitor.java:136)
at org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.visitOperationCallExp(AcceleoEvaluationVisitor.java:1243)
at org.eclipse.ocl.ecore.impl.OperationCallExpImpl.accept(OperationCallExpImpl.java:384)
at org.eclipse.ocl.AbstractEvaluationVisitor.visitExpression(AbstractEvaluationVisitor.java:242)
at org.eclipse.ocl.EvaluationVisitorDecorator.visitExpression(EvaluationVisitorDecorator.java:150)
I'm using also Java services in my M2T. Seems like the Class loader can't find these service classes. But I don't know why. I exported all packages in my Acceleo project, and added my src and bin folders to it's class path.
My sirius project has a dependency to my Acceleo project and is in the same workspace.
If I start the export from a java application in my sirius project everything works just fine. But I can't get sirius to trigger it...
Did anyone ran into a similar issue? How can I trigger an Acceleo M2T from inside a sirius diagram?
|
|
|
Powered by
FUDForum. Page generated in 0.03212 seconds