- This topic has 4 replies, 2 voices, and was last updated 20 years, 3 months ago by Riyad Kalla.
-
AuthorPosts
-
VincentVegaMemberMyEclipse log:
Eclipse Platform
Version: 3.0.0
Build id: 200406251208MyEclipse Platform
Version: 3.7.200
Build id: 200407091200-3.8-Beta2OS
Win XP ’02 SP1App Server
WebLogic 7.0 SP2I 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
Riyad KallaMemberVincent,
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.
VincentVegaMemberThanks 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
VincentVegaMemberRiyad:
No need to keep this open. This one should be closed. Thanks for your help.
Vincent
Riyad KallaMemberOk great, thanks for letting us know.
-
AuthorPosts