Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Project layout
Project layout [message #142129] Mon, 03 October 2005 16:15 Go to next message
Richard Rodseth is currently offline Richard RodsethFriend
Messages: 103
Registered: July 2009
Senior Member
I wish to layout a web app as follows:

appname
--lib (3rd party libs)
--src
----model
----service
----webui
--web (renamed WebContent)

Is this feasible with WTP? I've set up the 3 separate source locations in
the JDT, and have experimented a little with modifying .wtpmodules. I'm
not sure how to deal with the lib folder, because the default WTP place
for it is under WebContent.

Thanks!
- Richard
Re: Project layout [message #142197 is a reply to message #142129] Mon, 03 October 2005 19:08 Go to previous messageGo to next message
Jonathan Barnes is currently offline Jonathan BarnesFriend
Messages: 10
Registered: July 2009
Junior Member
yes it is possible I have multiple source locations as well and have been able to get it working

I beleive you need to add entires to both the .classpath and the .wtpmodules files:

for .classpath you need to have
<classpathentry output=".deployables/[context root]/WEB-INF/classes" kind="src" path="src/[location]"/>


for each of you source locations. (you can do this by directly editing the file or by using the UI via project->properties->Java Build Path->Source (tab)
and setting the output folder.

For the .wtpmodules file, I am not 100% sure this is necissarry as one of my projects has multiple entries and the otehr does not and I am not totally familiar with the relation to the .depoyables dir, but to be safe you may want to try putting a:
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/[location]" />

entry for each of you source locations.

you can try it with and without and see what the difference is.

if anyone else has any more info on this, or better yet can point to some difinitive documentation on dynamic project setup, I am also quite interested.

-Jonathan
Re: Project layout [message #142265 is a reply to message #142197] Tue, 04 October 2005 00:13 Go to previous messageGo to next message
Richard Rodseth is currently offline Richard RodsethFriend
Messages: 103
Registered: July 2009
Senior Member
Thanks, Jonathan.

I've done something similar to what you describe, and am successfully
running/debugging in Tomcat. However, I currently have the libs copied in
the location under WEB-INF, so I'm particularly interested if anyone else
has the answer for that one.

- Richard

Jonathan wrote:

> yes it is possible I have multiple source locations as well and have been
able to get it working

> I beleive you need to add entires to both the .classpath and the .wtpmodules
files:

> for .classpath you need to have
>
<classpathentry output=".deployables/[context root]/WEB-INF/classes" 
kind="src" path="src/[location]"/>


> for each of you source locations. (you can do this by directly editing the
file or by using the UI via project->properties->Java Build Path->Source (tab)
> and setting the output folder.

> For the .wtpmodules file, I am not 100% sure this is necissarry as one of my
projects has multiple entries and the otehr does not and I am not totally
familiar with the relation to the .depoyables dir, but to be safe you may want
to try putting a:
>
<wb-resource deploy-path="/WEB-INF/classes" 
source-path="/src/[location]" />

> entry for each of you source locations.

> you can try it with and without and see what the difference is.

> if anyone else has any more info on this, or better yet can point to some
difinitive documentation on dynamic project setup, I am also quite interested.

> -Jonathan
Re: Project layout [message #144869 is a reply to message #142129] Fri, 21 October 2005 18:29 Go to previous message
Eclipse UserFriend
Originally posted by: rsanheim.REMOVE.gmail.com

Richard Rodseth wrote:
> I wish to layout a web app as follows:
>
> appname
> --lib (3rd party libs)
> --src
> ----model
> ----service
> ----webui
> --web (renamed WebContent)
>
> Is this feasible with WTP? I've set up the 3 separate source locations
> in the JDT, and have experimented a little with modifying .wtpmodules.
> I'm not sure how to deal with the lib folder, because the default WTP
> place for it is under WebContent.
>
> Thanks!
> - Richard

Please track/vote for the following bug.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=102981
- Rob
-------------------------
http://www.robsanheim.com
Previous Topic:Rewuild of workspace on any file change
Next Topic:No deployment directory
Goto Forum:
  


Current Time: Thu Apr 18 00:13:15 GMT 2024

Powered by FUDForum. Page generated in 0.02481 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top