Skip to Content
author's profile photo Former Member
Former Member

Eclipse Plugin deletes localization.properties file upon deployment

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 16, 2003 at 09:06 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 16, 2003 at 09:48 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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....

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.