This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
in maven based projects, creating a Bundle.properties file next to the java file is wrong as Maven separates compilable sources and "resources". A bundle file in source tree won't end up in the final jar and needs to be created in separate folder structure. We need some API or improved algorithm for deciding where to create the new bundle file.
I think the API should be somewhere else and form would just use it. E.g. if org.netbeans.api.project.Sources defined a standard source group type for resources, we might try to always look for it and create the Bundle file in there if it exists; otherwise in standard sources. Just an idea...
yup, that was exactly my line of thinking. I filed against form as it's the only place I know of currently that would use such api..
Created attachment 37817 [details] api part of the change
Created attachment 37818 [details] implementation part of the change
tpavek: can you please review my patch before I submit it to apireviews?
The API part looks good to me. The impl covers the automatic internationalization. It does not cover migration (if a project is upgraded to start using separate resources root), but that's probably not a real use case. We may need to use the API on more places - e.g. in the Swing Application Framework support which creates properties files for resources. Should file a new issue once the API is integrated.
please review this minor change to java projects apis.
thanks for review, I will integrate tomorrow.
integrated IDE: [2/8/07 9:31 AM] Committing Files started Checking in i18n/form/src/org/netbeans/modules/i18n/form/I18nServiceImpl.java; /cvs/i18n/form/src/org/netbeans/modules/i18n/form/I18nServiceImpl.java,v <-- I18nServiceImpl.java new revision: 1.8; previous revision: 1.7 done Checking in java/project/apichanges.xml; /cvs/java/project/apichanges.xml,v <-- apichanges.xml new revision: 1.16; previous revision: 1.15 done Checking in java/project/manifest.mf; /cvs/java/project/manifest.mf,v <-- manifest.mf new revision: 1.21; previous revision: 1.20 done Checking in i18n/form/nbproject/project.xml; /cvs/i18n/form/nbproject/project.xml,v <-- project.xml new revision: 1.16; previous revision: 1.15 done Checking in java/project/src/org/netbeans/api/java/project/JavaProjectConstants.java; /cvs/java/project/src/org/netbeans/api/java/project/JavaProjectConstants.java,v <-- JavaProjectConstants.java new revision: 1.8; previous revision: 1.7 done IDE: [2/8/07 9:31 AM] Committing Files finished