For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 5 replies, 3 voices, and was last updated 19 years, 4 months ago by
Riyad Kalla.
-
AuthorPosts
-
microdatMemberI really need to be able to import war files, what’s up with the regular version of eclipse being able to import war files but the functionality is taken away in the “enhanced” version with the myeclipse plugin?
Does anyone know a way around this?
March 13, 2007 at 1:28 pm #267341
Riyad KallaMembermicrodat,
I’m not sure how WTP handles importing WARs (I believe this is what you are referring to) but WARs are defined as binary deployable units, they aren’t projects. So for example a typical WAR will contain your web project, but none of the source code. So importing it into a project is misrepresenting the WAR as a usable/editable unit when infact it’s not. If you need to pass projects around using File > Export > Archive and File > Import > Existing Project > Archive are the way to do that.Some folks we know write custom Ant scripts to package the source AND binary in their WAR, and that’s fine, but an import process cannot guess at all the different layouts for this and pull them in accordingly because there is no defined layout for such a package.
That being side, for the folks that really want to get a WAR into a new project for analysis sake (like using an example project) typically opening up the WAR and just dragging and dropping the contents into the web project’s WebRoot dir will do that for you.
April 9, 2007 at 10:20 pm #268615
Opus345Memberrkalla
I think I would disagree that a standard .war will not contain source code. If the web application is a heavy user interface application then as much as 25-40% could be JavaServer Pages or JavaServer Faces source code.
Opus
April 9, 2007 at 10:51 pm #268618
Riyad KallaMemberOpus,
I certainly agree with that assessment, it’s possible the entire application was written using JSPs even in some cases.I should clarify I’m not *against* this feature, was just providing insight into why we didn’t provide such a thing yet.
April 10, 2007 at 8:17 am #268631
Opus345Memberrkalla,
Thanks for the quick reply.
I guess I’m a little suprised that the .war import is not available. It looks like MyEclipse is now including WTP, but I am unsure how much of it is being included in the MyEclipse distribution. It even looks like I can use the WTP’s Dynamic Web Project wizard if I want. Will we see more of WTP in future MyEclipse distributions?
Update: Should have been clearer in my post. You can import .war in a MyEclipse distro, just not in a MyEclipse perspective and have it be a true MyEclipse Web Project. Looking into how to import a .war and then convert it to a MyEclipse Web Project.
Opus
April 10, 2007 at 10:02 am #268640
Riyad KallaMemberI guess I’m a little suprised that the .war import is not available. It looks like MyEclipse is now including WTP, but I am unsure how much of it is being included in the MyEclipse distribution. It even looks like I can use the WTP’s Dynamic Web Project wizard if I want. Will we see more of WTP in future MyEclipse distributions?
Since we build ontop of WTP, we hide (using the capabilities function) the functionality that is a duplicate across the two products. For example, project types, deployment models, app server connectors, etc. But we expose the functionality that we don’t ship and improve on, so you get the best of all worlds. If you are seeing WTP project types and the like, then I suppose you may have installed WTP yourself along side MyEclipse or enabled those capabilities.
Update: Should have been clearer in my post. You can import .war in a MyEclipse distro, just not in a MyEclipse perspective and have it be a true MyEclipse Web Project. Looking into how to import a .war and then convert it to a MyEclipse Web Project.
This is likely one of those “confusing overlaps of functionality” situations. At some point we will move our project, deployment and app server model ontop of WTP and will inherit this functionality implicitly. Right now though it’s WTP only.
-
AuthorPosts
