- This topic has 3 replies, 2 voices, and was last updated 20 years, 3 months ago by
Riyad Kalla.
-
AuthorPosts
-
Ian McDougallMemberEclipse 3.0.1, MyEclipse 3.8.4, Win2K
Our company has a way of CVS’ing web projects that is slightly different than what MyEclipse does. Instead of putting the ‘com directory tree’ into a seperate source folder (e.g. ‘src’), we put in directly in the project’s root directory.
I’ve experienced a problem when trying to use the project root folder as the source folder. Everything gets copied to the _project’s_ WebRoot/WEB-INF/classes directory, but nothing gets deployed to the appserver, including other folders in the WebRoot directory. This works perfectly fine when the source folder is ‘src’ under the project root.
So, for example when I use the ‘src’ folder, the deployed webapp looks like:
APPNAME/
— META-INF/
— WEB-INF/
— — lib/
— — — [.jar files…]
— — classes/
— — — [com tree…]
— — web.xml
— resources/
— — [app resources…]when the source root is changed to the project root, the deployed webapp looks like
APPNAME/
— WEB-INF/
— — lib/
— — — [.jar files]no classes, no META-INF, no other folders or files under the project’s WebRoot directory. I tried deleting and redeploying and configuring the includes and excludes under the source folder under project properties –> Java Build Path –> Source tab, but no luck.
Any ideas?
Thanks.
Riyad KallaMemberThe reason for this problem is that if your project root IS your source root then that implicitly means that regardless of where your WEbRoot folder is, it will be *inside* your source tree, which also means that the output folder (WEB-INF/classes) is inside your source tree and when you add all those facts together, you end up with <drumroll> a horrific mess of complicate build & deployment inconsistencies that MyEclipse can’t decipher and likely won’t support in the future.
Now with that being said, are you not able to break out the folders at all, is this a mandated format that no one can change?
On a side note are you really saying that someone setup your CVS repository to look like this:
+ / (root) + /com + /company + /source + /WebRoot + /WEB-INF etc.etc.
Ian McDougallMemberI will take this under advisement.
On a side note are you really saying that someone setup your CVS repository to look like this:
Code:+ / (root)
+ /com
+ /company
+ /source
+ /WebRoot
+ /WEB-INF
etc.etc.if by ‘root’ you mean the project root, then yes, that is the structure.
if by ‘root’ you mean the CVS root, then we should be publically ridiculed and promoted to management.
Riyad KallaMemberI will take this under advisement.
I would strongly suggest the follow basic structure for your projects: http://www.myeclipseide.com/FAQ+index-myfaq-yes-id_cat-30.html#111
Please note that we are not pushing this because “this is what ME needs and that is the end of the conversation”, we are merely giving a suggestion for an extremely well supported/almost standard layout. I am not aware of an IDE that would currently support the setup you are working with now. Not to say that the person that set it up should be shot, they likely just set up the project in parallel with an organization that made sense to them logically. While this is true, there are certain formats that the web specification does lay out, the closer you follow that, the more “plug-and-play” your project will be with all IDEs (not just MyEclipse).
then we should be publically ridiculed and promoted to management.
Hhaha
-
AuthorPosts