cancel
Showing results for 
Search instead for 
Did you mean: 

Eclipse Plugin deletes localization.properties file upon deployment

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

wonderful! thanks for the tip, it works as a charm.

perhaps the PDK documentation on the subject should be changed to instruct people to place the localization.properties files under /private/src/ instead of /private/classes/, when using Eclipse....

Former Member
0 Kudos

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.