dev@glassfish.java.net

Re: Ant for GlassFish installation

From: vince kraemer <Vince.Kraemer_at_Sun.COM>
Date: Thu, 15 Mar 2007 21:43:26 -0700

Maybe the following text would be better?

     Instructions to unbundle and configure GlassFish

To install and configure the application server (GlassFish) you need to
have JDK 5 installed on your system. The configuration processing
depends on Ant (1.6.5). The bundle includes an Ant distribution that
has been extended with task to facilitate developing Java EE 5
applications for the application server.

  1. Download one of the bundles to disk.

  2. Verify that your JDK5 installation is on your PATH, ahead of any
     JDK 4 installations that you might have.

  3. Run:

     java -Xmx256m -jar /filename.jar

     This command will unbundle the distribution and create a new
     directory structure rooted under a directory named 'glassfish'.

  4.

     cd glassfish

  5. If you are using a machine with an operating system that is a
     derivative of UNIX(tm), set the execute permission for the Ant
     binaries that are included with the GlassFish budle.

     chmod -R +x lib/ant/bin/

        
  6.

     lib/ant/bin/ant -f setup.xml
     OR

     lib\ant\bin\ant -f setup.xml


     To utilize the clustering support available in GlassFish V2
     bundles, use the following command instead

     lib/ant/bin/ant -f setup-cluster.xml

     OR

     lib\ant\bin\ant -f setup-cluster.xml