|Suggested directory structure for Eclipse Web Projects [message #191469]
||Sat, 14 April 2007 04:31
Originally posted by: jgliniecki.gmail.com|
I started on a project where the web application (mostly JSPs and
Servlets) is in CVS with a directory structure similar to what would be
in a WAR file. However, when creating a Dynamic Web Project in Eclipse,
it creates a WebContent folder that contains the WEB-INF folder.
Is it common practice to have the directory structure in CVS, SVN, etc
match that of the IDE and in this case have a WebContent folder?
Alternatively, could I remove the WebContent folder from the project and
have the structure be similar to what is in a WAR file? I did some
preliminary testing, and Run on Server only seems to work if the JSP is in
the WebContent folder.
|Re: Suggested directory structure for Eclipse Web Projects [message #191611 is a reply to message #191602]
||Tue, 17 April 2007 22:05
Originally posted by: kosta.bea.com|
If you have the freedom to keep your directory structure in CVS the same
as what's used in Eclipse, then I would definitely recommend that you do
that. Your team members will have much easier time pulling the project
down from CVS into their own Eclipse workspaces.
Regarding the build directory vs. the WEB-INF/classes directory
question, this layout is used to make it easier for people to keep
source and generated artifacts separate. You don't want to be submitting
the build directory to your SCM system. When you are ready to package
your WAR, you can do that using the "File -> Export -> Web -> WAR file"
wizard. The wizard will make sure the app is compiled and package it
Powered by FUDForum
. Page generated in 0.02205 seconds