Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Append to target file in EGX/EGL
Append to target file in EGX/EGL [message #1760589] Fri, 28 April 2017 16:07 Go to next message
Christina Rammerstorfer is currently offline Christina RammerstorferFriend
Messages: 4
Registered: March 2017
Junior Member
I'm trying to create a transformation just like in this example: https://www.eclipse.org/epsilon/examples/index.php?example=org.eclipse.epsilon.examples.egl.library

The way it is now, the target files are overwritten every time a rule is executed. Is there a way to append to the target files? Where do I specify this?
Thanks in advance.
Re: Append to target file in EGX/EGL [message #1760596 is a reply to message #1760589] Fri, 28 April 2017 17:50 Go to previous messageGo to next message
Alireza Rouhi is currently offline Alireza RouhiFriend
Messages: 148
Registered: December 2015
Senior Member
Hi Christina,

I think you need to check the "Append to file" option on the Run Configurations window of your template.

Kind regards,
Alireza
Re: Append to target file in EGX/EGL [message #1760614 is a reply to message #1760596] Fri, 28 April 2017 21:53 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2163
Registered: July 2009
Location: York, UK
Senior Member

Hi Christina,

If you're using EGX, you can achieve this as follows e.g.

rule Foo transform f : Foo {
  template : "foo.egl"
  target : f.name + ".txt"
  merge : true
}


Cheers,
Dimitris

[Updated on: Fri, 28 April 2017 21:53]

Report message to a moderator

Re: Append to target file in EGX/EGL [message #1760635 is a reply to message #1760614] Sat, 29 April 2017 09:28 Go to previous messageGo to next message
Christina Rammerstorfer is currently offline Christina RammerstorferFriend
Messages: 4
Registered: March 2017
Junior Member
Dimitris Kolovos wrote on Fri, 28 April 2017 21:53
Hi Christina,

If you're using EGX, you can achieve this as follows e.g.

rule Foo transform f : Foo {
  template : "foo.egl"
  target : f.name + ".txt"
  merge : true
}


Cheers,
Dimitris


Thank you very much, seems like this is exactly what I was looking for! However, I just tried it out and it didn't do the trick, only the last transformation of my "Foo" is in the file Sad.
Re: Append to target file in EGX/EGL [message #1760640 is a reply to message #1760635] Sat, 29 April 2017 11:38 Go to previous message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2163
Registered: July 2009
Location: York, UK
Senior Member

Hi Christina,

You're right - my bad. Could you please update to the latest interim version from the update site below when the current CI build finishes [1] and try again but with "append" instead of "merge"?

http://download.eclipse.org/epsilon/interim/

Cheers,
Dimitris

[1] https://hudson.eclipse.org/epsilon/job/epsilon-interim-update-site/211/
Previous Topic:EVL: Problem on configuring a UML model
Next Topic:Explanation view Validation
Goto Forum:
  


Current Time: Fri Apr 19 19:57:48 GMT 2024

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

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

Back to the top