Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Is it possible to generate a set of files using EGL/EGX?
Is it possible to generate a set of files using EGL/EGX? [message #1843240] Wed, 21 July 2021 09:47 Go to next message
fang yan is currently offline fang yanFriend
Messages: 27
Registered: October 2020
Junior Member
Hi,

I am trying to generate several files through one egl/egx with each file include different reference numbers.
Would this be possible?
Or EGL/EGX only allow one file to be generated each time?

The case is that I have a EMF model which including certain number (say N) of requirements.
I first query emf model to find all the requirements meeting my critiera,
then I use each requirement ID to search the information from a XML document; at last I create the egl template using information from XML.
The process above is coded in one egl file.

But I find it is not right to using a for loop to cover both XML information fetching and EGL template.

Is there any available solution for this issue, please?
Many thanks.
Fang
Re: Is it possible to generate a set of files using EGL/EGX? [message #1843242 is a reply to message #1843240] Wed, 21 July 2021 09:59 Go to previous message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2165
Registered: July 2009
Location: York, UK
Senior Member

Hi Fang,

EGX/EGL can certainly generate multiple files in each run. Please see [1] which demonstrates generating one HTML file for each <book> element in an XML-based model.

Best,
Dimitris

[1] https://www.eclipse.org/epsilon/doc/articles/code-generation-tutorial-egl/
Previous Topic:[ETL] Accessing specific output of a transformation rule
Next Topic:How to run eunit for etl on linux
Goto Forum:
  


Current Time: Sat Apr 27 12:26:54 GMT 2024

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

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

Back to the top