Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 337290 - Properties file not taken into account in runtime mode
Summary: Properties file not taken into account in runtime mode
Status: CLOSED FIXED
Alias: None
Product: Acceleo
Classification: Modeling
Component: Core (show other bugs)
Version: 3.0.0   Edit
Hardware: PC Windows 7
: P3 normal
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-16 04:56 EST by Stéphane Thibaudeau CLA
Modified: 2011-03-21 10:41 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stéphane Thibaudeau CLA 2011-02-16 04:56:47 EST
I've created a properties file close to the java helper class generated by acceleo. This file is in an exported package.
I've specified the path to my file in the getProperties() method.

When launching my generator with "run as -> launch acceleo application" my properties are taken into account.
But after creating an UI generator project and launching in runtime mode, the properties are not accessible any more.
Comment 1 Stephane Begaudeau CLA 2011-03-21 10:41:18 EDT
Now we will also look for properties files in the bundle of the generation launcher (and only there for performances reasons) if eclipse is running but we also provide an easy way for our users to provide their properties files discovering system.

So if you want to look for properties files in all the dependencies of your bundle or if you want to look for them in the project containing your model, or if you want to programmatically create your properties, you will be able to do so easily.

For more information, please see : http://stephanebegaudeau.tumblr.com/post/3785590438/improved-properties-files-processing-in-acceleo-3-1

And have a look at AbstractAcceleoGenerator#getPropertiesLoaderService(AcceleoService) to see how the system is working.