facebook

Create war-file for deployment on live-server after testing

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #219529 Reply

    skress
    Member

    Hi,

    during development and testing of my web-application I use MyEclipseIDE’s functionality to deploy my project in exploded format to a Tomcat 4 instance.

    After completing my development/testing cycle I would like to create a war-file that I copy to my live-server where it gets deployed to be used in the production environment.

    What is the best way to create such an archive? Should I switch to unexploded deployment mode and use that archive? Is there a better way?

    Best Regards,
    Soeren

    #219535 Reply

    Riyad Kalla
    Member

    Should I switch to unexploded deployment mode and use that archive? Is there a better way?

    Yep, this is exactly what I do… or you can always write an Ant script to build out a WAR file for you… I can’t tell you what is more popular here on the forums, I think its about 1/2 and 1/2.

    #219673 Reply

    Is it possible to create an ANT script out from what Eclipse is using? I mean, eclipse deployment must package the file in some way, can’t it export its deployment process into an ANT script?

    #219678 Reply

    Riyad Kalla
    Member

    Currently no, we use a custom deployment process as its much more robust than simply running an Ant script… due to our flexible project structure and features such as deploying external dependencies and project libraries there would be no equivalent for an ‘Ant’ script, so we don’t use one or provide an ‘export Ant Script’ feature etiher at this time. We may reevaluate this in the future though.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Create war-file for deployment on live-server after testing

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