facebook

What’s up with not being able to import war files?

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #267318 Reply

    microdat
    Member

    I 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?

    #267341

    Riyad Kalla
    Member

    microdat,
    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.

    #268615

    Opus345
    Member

    rkalla

    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

    #268618

    Riyad Kalla
    Member

    Opus,
    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.

    #268631

    Opus345
    Member

    rkalla,

    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

    #268640

    Riyad Kalla
    Member

    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?

    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.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: What’s up with not being able to import war files?

You must be logged in to post in the forum log in