Eclipse/WTP is adding MANIFEST.MF files to my source tree [message #163966] |
Wed, 15 March 2006 11:42  |
Eclipse User |
|
|
|
Originally posted by: kc.baltz.yahoo.com
I'm running Eclipse 3.1.2 + WTP 1.0.1 and have noticed that Eclipse is
inserting a MANIFEST.MF file in the /src/java/META-INF folder for each of my
projects that's listed as a dependency in the J2EE Module Dependencies.
This is annoying because CVS shows the file as needing to be added. It
doesn't seem to me that Eclipse should be adding files to my source tree
that I wouldn't want to commit.
Before I file a bug report, does anyone have any thoughts on this? I'm new
to WTP, so maybe I'm doing something wrong.
|
|
|
|
|
Re: Eclipse/WTP is adding MANIFEST.MF files to my source tree [message #164056 is a reply to message #164017] |
Wed, 15 March 2006 18:15  |
Eclipse User |
|
|
|
Originally posted by: alex_blewitt.yahoo.com
The point of WTP is to be able to build WARs, so it structures the source in the way it would if it were going to export it. Similarly, the mechanisms use to load it will be looking for the same information as if it were an expanded WAR file. You may even find that some tools like Tomcat will actually fail if there's no MANIFEST.MF file, since it will be present in every WAR file.
The runtime classpath is only visible to J2EE servers via the entries in the Manifest file; so it's a necessity for it to be in the runtime area.
The point is, that's how WAR files work. Whether you like it or not, it's going to be in the compiled build. All Eclipse is doing is putting it in an area that gives you, the developer, the choice of whether to put this file in the source build and version control. If you don't, that's up to you -- but next time you check out the project you may find it doesn't work if you ignore it.
Alex.
|
|
|
Powered by
FUDForum. Page generated in 0.04148 seconds