users@glassfish.java.net

Ant script to deploy to glassfish 2

From: Bhaarat Sharma <bhaarat.s_at_gmail.com>
Date: Thu, 23 Aug 2012 19:40:46 -0400

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