deploy

Description

Installs (deploys) WAR or EAR in a WAS cell.'deploy' target triggers compilation and packaging of the applicatoin, so that EAR/WAR file will be created for you automatically.
Alternatively, you can also use 'deploy.xar' target which does not depend on compile and package targets. In this case you must explicitly specify EAR/WAR file(s) to deploy. This can be done using the following properties: 'xar.file', 'xar.files', 'xar.dir'/'xar.include.pattern', 'xar.file.path.id'. These properties are mutually exclusive.

Properties

NameDesciptionRequired
xar.filePath to EAR or WAR file that we want to deploy. The path can be relative to the current OS directory.Type: Existing fileNo
xar.filesComma-delimited list of EAR or WAR files to deploy.No
xar.dirRoot directory of Ant fileset defining what files to deploy. This property is used in conjunction with 'xar.include.pattern'.Type: Existing directoryNo
xar.include.patternAnt file pattern specifying what files to deploy, e.g., '**/*.war'. The pattern is relative to 'xar.dir' property. You must provide 'xar.dir' if you provided the pattern.No
xar.file.path.idID of an Ant path structure defined somewhere in a calling Ant script. The path defines what files to deploy.No
was.appnameName of enterprise application. File name is used if not provided. No
was.deployment.targetComma-delimited list of server(s) and/or clusters to deploy to.Not required if there is only one cluster in a cell.No
webapp.context.rootContext root for Web applications (WAR files only). No
installedApps.dirDirectory where to install binaries on the target nodes. No
undeploy.before.deploymentAutomatically uninstall the application before deployment. Note: this is much more reliable that update mode. Do not turn off unless you're absolutely sure. Type: bool( true, false )No; defaults to 'true'
was.classloader.modeClassloader order for Web applications AND jar files inside the EAR. Type: enum( PARENT_LAST, PARENT_FIRST )No; defaults to 'PARENT_LAST'
was.classloader.policyGive each WAR its own classloader or use the same one for all. Type: enum( MULTIPLE, SINGLE )No
was.reload.enabledReload classes when application files are updated. Type: bool( true, false )No; defaults to 'false'
was.reload.intervalPolling interval for updated application classes. Type: IntegerNo; defaults to '2'
was.virtual.host.nameVirtual host for Web modules. No; defaults to 'default_host'
was.target.war.to.ihsAutomatically target WAR modules to all Web servers in the cell. Type: bool( true, false )No; defaults to 'true'
was.deploy.wsSet to True if you want to compile JAX-RPC services during deployment. This is not needed for JAX-WS. Type: bool( true, false )No; defaults to 'false'
was.start.appAutomatically start the application after deployment. Requires at least one running target server. Type: bool( true, false )No; defaults to 'true'
was.ensure.all.servers.upMake sure that ALL servers in the target cluster are up. By default only one running sever is sufficient. Type: bool( true, false )No; defaults to 'false'
was.free.memory.limitIf free memory falls under this limit (set in Kb), the server is considered 'unhealthy',and deployment or server check will fail.No; defaults to '1024'
was.bounce.serversBounce ALL servers an application or a group of applications is deployed to after deployment. First, applications are fully deployed and then servers are bounced. Note that this property can't be set at the application level. Type: bool( true, false )No; defaults to 'false'