GlassFish ant tasks

Ant tasks invoke the asadmin commands. The following are the ant tasks, with the corresponding parameters. The description of the parameters is the same as in asadmin.

glassfish-start

  • domain
  • domainDir
  • debug

glassfish-stop

  • domain
  • domainDir
  • force

glassfish-deploy

  • file
  • name
  • contextRoot
  • preCompileJsp
  • verify
  • createTables
  • dropAndCreateTables
  • uniqueTableNames
  • enabled
  • availabilityEnabled
  • virtualServers
  • retrieveStubs
  • DBVendorName
  • libraries
  • deploymentPlan
  • force
  • upload
  • properties
  • type

glassfish-undeploy

  • name
  • force
  • dropTables
  • cascade
  • keepreposdir

glassfish-redeploy
same as deployTask, with additional "force" parameter

glassfish-admin

  • command
  • commandParameter (name, value)
  • commandOperand
  • user
  • passwordFile
  • host
  • port
  • installDir