facebook

How to setup ApplicationResources file? [Closed]

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #210973 Reply

    VincentVega
    Member

    MyEclipse log:

    Eclipse Platform

    Version: 3.0.0
    Build id: 200406251208

    MyEclipse Platform
    Version: 3.7.200
    Build id: 200407091200-3.8-Beta2

    OS
    Win XP ’02 SP1

    App Server
    WebLogic 7.0 SP2

    I have imported an existing Java Project into my workspace (located c:\eclipse). MyApp project resides elsewhere. I have added Web Capabilities and STRUTS capabilities.

    The issue I am having is with the Struts capabilities wizard dialog wrt the location of the Application.resources file. No matter what I input for the ‘Default application resource:’ field, an unwanted package that includes an empty ApplicationResources.properties file is created under the app/source dir. All i would like to do is have it point to actual properties file that lives in app/propertyfiles. I have researched the forums and have only found the suggestion to make sure to include any *.properties in the source dir. So I right clicked on MyApp project and selected ‘properties’ –> ‘Java Build Path’ –> Source Tab and added the following folder: app/propertyfiles. Not sure if I’m doing this correctly. Just want to make sure the IDE is referencing the appropiate ApplicationResources.properties file and not the bogus one. I would be grateful for any help that can be provided.

    MyApp is the project root

    MyApp contains the following folders:

    1. source
    2. propertyfiles
    3. web-app (this is the WebRoot folder)

    Note this project has a custom antbuild that is run outside the eclipse environment (for now)

    My antbuild places the ApplicationResources.properties file in the following dir: MyApp\app\web-app\WEB-INF\classes

    #210977 Reply

    Riyad Kalla
    Member

    Vincent,
    This is currently a limitation of the Struts wizard, its trying to be overly helpful by enforcing “good design”, but as you describe, your script correctly places the properties file into your classes dir anyway. I believe this is a good enhancement, I will file it.

    #210988 Reply

    VincentVega
    Member

    Thanks for the quick response. I figured as much since the Stuts framework should locate this *.properties file as long as it resides in the WEB-INF\classes dir.

    VV

    #211204 Reply

    VincentVega
    Member

    Riyad:

    No need to keep this open. This one should be closed. Thanks for your help.

    Vincent

    #211209 Reply

    Riyad Kalla
    Member

    Ok great, thanks for letting us know.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: How to setup ApplicationResources file? [Closed]

You must be logged in to post in the forum log in