on 12-15-2003 5:51 PM
hello,
i am using PDK 5.0.5.0 and Eclipse plugin. i am trying to use the internalization services of the enterprise portal. as instructed by the portal documentation, i place my language-specific strings in /private/classes/localization.properties and /private/classes/localization_en.properties files. in my java code (that extends the JSPDynPage class), i do request.getResourceBundle() etc.
the problem is, whenever i deploy the eclipse project, it deletes my localization.properties files. as a result, my .par file doesn't contain the localization.properties files.this causes the loading of my iView to fail, at the lline where it tries to retrieve the resource bundle.
how do i get the eclipse plugin to stop deleting the localization.properties files? or alternatively, how do i add the localization.properties files including the /private/classes/ path to the .par file and then somehow deploy the .par file from the PDK itself? any thoughts would be greatly appreciated.
Hi, you are unfortunately storing the .properties files in the output folder of Eclipse ("/Classes..."). This folder is cleaned everytime you rebuild the project (e.g. on export to .par file) by Eclipse. You have to store the .properties files under the private/src folder. The .properties files will be copied by Eclipse into the outputfolder "/classes" so you do not loose them again.
Bye Sigi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ok, i've figured out how to keep the localization*.properties files in my project's /private/classes/ directory. it is an Eclispse thing.
in the Window/Preferences menu, select Java/Compiler. then the last tab Build Path, uncheck the box "Scrub output folders on full build". it will prevent the deletion of the entire /private/classes/ folder upon deployment of the project.
now the question still remains: how to tell the EP plugin to include the /private/classes/localization*.properties files in the .par file? this is surly an SAP plugin thing. would someone from SAP comment on this please? thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.