Skip to main content

Ant script to deploy to glassfish 2

No replies
omnipresent
Offline
Joined: 2007-09-19
Points: 0

I am trying to create an ant script that would compile and creat a war file
and then deploy the WAR to glassfish. I can build thr WAR fine but am
having trouble with deploying it to glassfish part. What is needed for
this? If I creatr and build oroject in netbeans amd connect project to GF
then everything works fine but I would like to create my own ant script for
doing this.

Are there any tutorials or guides that would walk me through this process?
Also would be great if WAR can nbe deployed incrementally..

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
scatari
Offline
Joined: 2005-06-17
Points: 0

Not sure which version of GlassFish you are using. GlassFish does come
with pre-built ANT tasks to handle all of the functionality that you
described.
Please refer http://docs.oracle.com/cd/E19798-01/821-1752/beaep/index.html

HTH
Thanks
Sathyan

On 8/23/12 4:40 PM, Bhaarat Sharma wrote:
>
> I am trying to create an ant script that would compile and creat a war
> file and then deploy the WAR to glassfish. I can build thr WAR fine
> but am having trouble with deploying it to glassfish part. What is
> needed for this? If I creatr and build oroject in netbeans amd connect
> project to GF then everything works fine but I would like to create my
> own ant script for doing this.
>
> Are there any tutorials or guides that would walk me through this
> process? Also would be great if WAR can nbe deployed incrementally..
>