It's not a secret anymore!
The moose likes IDEs, Version Control and other tools and the fly likes ANT vs. Eclipse Deployment to EAServer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "ANT vs. Eclipse Deployment to EAServer" Watch "ANT vs. Eclipse Deployment to EAServer" New topic

ANT vs. Eclipse Deployment to EAServer

Udit Manektala
Ranch Hand

Joined: Sep 17, 2006
Posts: 30
<rambling thoughts>

We use JBuilder\EAServer at my workplace and sinc I hate JBuilder, I wanna switch to Eclipse but can't find an apropriate plugin which would allow deployment to EAServer. (Lomboz has never worked for me.)

So thinking to myself, I realise that all thats needed for a Java IDE to connect with an App Server is some way to deploy the application and some way to start\stop\restart the service.

I realised that if I used Eclipse for development, I could make custom ANT scripts for deploying to EAServer and the start\restart of the service could be accomplished by small command line batch files (using net stop and net start).

So one drawback to this would be that I'd have to make a different ANT file for every project and another is that there might be no shortcut inside Eclipse to run the Server restarts\builds from.

</rambling thoughts>

1. So, is that all there is to connecting an IDE to an app server ?..automatic deployment configuration and shortcuts for server restarts ? Or am I missing something deeper ?

2. Can shortcuts for batch files\command files\command line directives be added to eclipse ?

3. Can ANT do all this that i just rambled about ?

Background Info: We use Servlets\JSP here... no EJBs anymore. Dont know if that makes a difference.

Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33098

1) That is most of what IDE integration is. Some IDEs allow you do edit server specific configuration files from within the IDE.

2) I know they can be stickied at the top of the run menu. I imagine there is a shortcut option, but I don't know how to do that.

3) Yes.

Note that technically you don't need a different Ant script for each project. If you have a similar structure/naming conventions for each EAR, you can use a single build.xml and just have different property files. We have one script that we use for about 20 ears.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: ANT vs. Eclipse Deployment to EAServer
It's not a secret anymore!