Skip to main content



      Home
Home » Modeling » Epsilon » [EGL] Create a folder
[EGL] Create a folder [message #989885] Sun, 09 December 2012 06:25 Go to next message
Eclipse UserFriend
Hello,

[%
	for (c in Package.all()) {%]
    	[%=c.name%]; 
    	
[%}%]



I want to create a new folder for each Package in my project, but I can't find how to do it using EGL.

For example, if I have the packages: Color and Weight. I want to have a folder ../src/Color and a folder ../src/Weight.

Can anybody help me? Thanks in advance.

PS: And it's being hard for me to find info about EGL and its operations. If you could point me to manuals or documentation about it would be appreciated.

[Updated on: Sun, 09 December 2012 06:26] by Moderator

Re: [EGL] Create a folder [message #989887 is a reply to message #989885] Sun, 09 December 2012 07:28 Go to previous messageGo to next message
Eclipse UserFriend
Hi Patricia,

In EGL, an appropriate folder structure should be created automatically to accommodate the generated files. For example, if you try to generate c:/foo/bar/something.txt, the foo and bar folders will be created automatically if they don't exist. If you need to explicitly create directories, I'd suggest creating a Java tool [1] that provides this functionality and calling it from EGL. The definitive EGL reference is Chapter 7 of the Epsilon book [2], however, as EGL builds on top of EOL I'd suggest going through Chapter 3 first.

Cheers,
Dimitris

[1] http://eclipse.org/epsilon/doc/articles/call-java-from-epsilon/
[2] http://eclipse.org/epsilon/doc/book/
Re: [EGL] Create a folder [message #989893 is a reply to message #989887] Sun, 09 December 2012 10:34 Go to previous message
Eclipse UserFriend
Hi Dimitris,

Thanks so much for your help.
Previous Topic:Cross reference problem with ETL
Next Topic:Native java code Tools example
Goto Forum:
  


Current Time: Wed Jul 23 16:29:42 EDT 2025

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

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

Back to the top