Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 337290

Summary: Properties file not taken into account in runtime mode
Product: [Modeling] Acceleo Reporter: Stéphane Thibaudeau <stephane.thibaudeau>
Component: CoreAssignee: Project Inbox <acceleo-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: stephane.begaudeau
Version: 3.0.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

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.