Community
Participate
Working Groups
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.
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.