Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Basic EGL Practice
Basic EGL Practice [message #1777955] Wed, 06 December 2017 17:44 Go to next message
Qamar uz Zaman is currently offline Qamar uz ZamanFriend
Messages: 10
Registered: November 2017
Junior Member
Hello,
The following code generates console output and a file named UseCase.txt, but the UseCase.txt remains empty. I want to write the resultant output to the said file.

[%
var t : Template = TemplateFactory.load("UCASTXT.egl");
t.generate("UseCase.txt");
%]
Re: Basic EGL Practice [message #1778004 is a reply to message #1777955] Thu, 07 December 2017 15:19 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,

Could you please provide a minimal example [1] we can use to reproduce this?

Cheers,
Dimitris

[1] https://www.eclipse.org/epsilon/doc/articles/minimal-examples/
Re: Basic EGL Practice [message #1778006 is a reply to message #1778004] Thu, 07 December 2017 16:05 Go to previous messageGo to next message
Qamar uz Zaman is currently offline Qamar uz ZamanFriend
Messages: 10
Registered: November 2017
Junior Member
Hell,
Thanks for your prompt reply. Please find the attached files and kindly delete the files from the forum.

[Updated on: Thu, 07 December 2017 16:07]

Report message to a moderator

Re: Basic EGL Practice [message #1778029 is a reply to message #1778006] Fri, 08 December 2017 11:00 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,

To output text to the target file as opposed to the console, you should use out.print() instead of print(). For example, line 2 of your UCASTXT.egl template should read:

out.print("Use Case: " + uc.name.println());


Cheers,
Dimitris
Re: Basic EGL Practice [message #1778133 is a reply to message #1778029] Mon, 11 December 2017 06:59 Go to previous message
Qamar uz Zaman is currently offline Qamar uz ZamanFriend
Messages: 10
Registered: November 2017
Junior Member
Thank you
Previous Topic:Deployment of Epsilon artifacts
Next Topic:jdbc emc problem: "Too many connections"
Goto Forum:
  


Current Time: Fri Apr 26 12:46:12 GMT 2024

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

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

Back to the top