facebook

Custom deployment configuration

💡
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 Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #236785 Reply

    everbright
    Member

    Hi,

    We’ve been working on Eclipse for some time and have just started working with the MyEclipse IDE.

    Before we started using MyEclipse, we use a web project template which includes a custom Ant script for deploying to a remote Tomcat 4.1 instance. Unlike conventional deployments to Tomcat, the script actually deploys to Tomcat using context XML documents as follows:-

    a) Copy the exploded application to a deployment location on the remote server (this location is NOT the webapp folder of Tomcat).
    b) Generate a context xml file which points to the deployment location in a), and copy this file to Tomcat’s webapp folder.
    c) Invoke Tomcat Manager to deploy the application via the context file.

    We needed to do this, becuase the remote Tomcat instance is shared by other developers, and we cannot afford to re-start it as I like, since that will disrupt the work of the other developers. The only way around this is the above, which allows each developer to deploy/redeploy his application without re-starting Tomcat.

    We don’t (can’t actually, due to the contraints on the shared Tomcat instance) use any remote debugging facilities, so the above works fine for us.

    We also have a similar script for Weblogic.

    The question is: is there some more convenient way I can port this custom deployment mechanism into MyEclispe, other than to still port the Ant scripts over?

    Does MyEclipse allow setting up a custom deployment configuration using a external Ant script?

    Thanks for any suggestions!

    #236894

    Riyad Kalla
    Member

    What you could do is setup a Custom Location deployment in MyEclipse to a remote directory of your choice: \\server\everbright\tomcat-webapp

    Then change your Ant script to always deploy from THAT location. So just re-run the ant script every time you want to resync.

    MyEclipse’s deployment mechanism is very straight forward, it’s job is just to *put* files someplace, knowing that you should be able to customize your Ant script to fit your needs.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Custom deployment configuration

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