Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » EOL get workspace directory
EOL get workspace directory [message #765780] Wed, 14 December 2011 17:12 Go to next message
James Sharp is currently offline James Sharp
Messages: 20
Registered: September 2010
Junior Member
I need to output a couple of bits of mapping information to file so that I can work with my output file to provide feedback.

I have successfully generated the files required, but they are being made in my home directory (Ubuntu user).

How do I get EOL to return the current working path so that I can specify where these files are to be created?

At present I have:

var signalsFile = new Native("java.io.File")("signalsMap.txt");
var signalsWriter := new Native('java.io.FileWriter')(signalsFile);
signalsWriter.write(StringifySignals());
signalsWriter.close();

at present I the file is put in /home/james/signalsMap.txt
I want it to be in ../etl_workspace/working_project/signalsMap.txt

Thanks

James
Re: EOL get workspace directory [message #765799 is a reply to message #765780] Wed, 14 December 2011 17:43 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris Kolovos
Messages: 867
Registered: July 2009
Senior Member
Hi James,

Are you running your EOL program through an Eclipse launch configuration, ANT, or Java?

Cheers,
Dimitris
Re: EOL get workspace directory [message #765848 is a reply to message #765799] Wed, 14 December 2011 19:07 Go to previous messageGo to next message
James Sharp is currently offline James Sharp
Messages: 20
Registered: September 2010
Junior Member
i'm using the ETL launch configuration
Re: EOL get workspace directory [message #765853 is a reply to message #765848] Wed, 14 December 2011 19:21 Go to previous message
Dimitris Kolovos is currently offline Dimitris Kolovos
Messages: 867
Registered: July 2009
Senior Member
Hi James,

Unfortunately, it's not possible to pass parameters through the Eclipse launch configurations for Epsilon (but we're working on it) so could you perhaps try using ANT instead for this one?

Cheers,
Dimitris
Previous Topic:[Eugenia] Create Undefined ???
Next Topic:EOL Change attribute 'external' of DiagramLabel
Goto Forum:
  


Current Time: Thu Sep 18 11:58:59 GMT 2014

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

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