Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Share a (E)MTL file using a JAR dependency
Share a (E)MTL file using a JAR dependency [message #1844080] Tue, 31 August 2021 14:19 Go to next message
David D is currently offline David DFriend
Messages: 4
Registered: July 2009
Junior Member
Hi,

I'm trying to put all my common stuff into a JAR. I have several Maven projects, let's say:
- acceleo-commons
- acceleo-project-1

In the first one I put:
- a customized MTL to EMTL compiler (using AcceleoCompilerHelper)
- a customized generator (using AbstractAcceleoGenerator)

In the second there is the model and the MTL files. This is working well.

Now I'd like to also share some utilities like a logger. I have the files "logger.mtl" and "Logger.java" in "acceleo-project-1" that I'd like to put into "acceleo-commons". I spent a lot of time with the debugger to understand how the dependencies are resolved but I didn't find any way to do that. Is this possible?

Regards,
David
Re: Share a (E)MTL file using a JAR dependency [message #1844083 is a reply to message #1844080] Tue, 31 August 2021 16:00 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

The EMTL builder does not always work well. If you search the forum you will find at least a couple of messages where I explain my workarounds.

Regards

Ed Willink
Previous Topic:From Ecore to Java
Next Topic:Generate text on Annotation
Goto Forum:
  


Current Time: Thu May 02 15:25:28 GMT 2024

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

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

Back to the top