- This topic has 3 replies, 3 voices, and was last updated 20 years, 1 month ago by Riyad Kalla.
-
AuthorPosts
-
JoaoMemberI am new to eclipse and my eclipse, came from Jbuilder.
I want to organize my web projects this way:
WebPrj
src [Classes directory]
conf [Configuration]
view [jsp directory]
bus [business logic directory]libs
At deployment time I want to send all the files to the specific directory
<table border=0>
<tr><td> WebPrj –></td><td> WEB-INF </td> </tr>
<tr><td> /src </td><td> /classes</td> </tr>
<tr><td> /view </td><td> /view</td> </tr>
<tr><td> /bus </td><td> /classes</td> </tr>
<tr><td> /conf </td><td> /conf </td> </tr>
<tr><td> /libs </td><td> /libs</td> </tr>
</table>I’ve been playing with the project property option for a while without success on this. Can someone give me a hint to doc, sample, whatever.
Sorry if I am posting in the wrong group.
Thanks in advance,
Joao,
Scott AndersonParticipantJoao,
In order to support deployment properly I think I can get you close to what you want, but not exactly. Basically, our project layout is an exploded war, with some flex points for dependent project support.
1) Create a MyEclipse web project. When prompted for the web root, enter view and for the source folder enter src.
2) Right-click on the web project in Package Explorer > Properties > Java Build Path and add another source folder named bus. Be sure to configure the output folder to be view/WEB-INF/classes
3) If you mean “deployment descriptors” for “configuration”, these need to go in view/WEB-INF
4) libs will need to go user view/WEB-INF/lib
JoaoMemberTHank you, That helps.
Is there a way to have the configuration ketp in a place, then copied to the right directory at compilation time?
Riyad KallaMemberIt is a direct copy, there isn’t any mapping that takes place, so your config file will stay put when its copied across (e.g. if you put it in WebRoot/Config, it will be there after deployment)
-
AuthorPosts