Reference > ANT targets > Ant targets: Creating and configuring targets > CreateInstance > ConfigureCommerceServer
ANT target: InstallEAR
InstallEAR installs the installable EAR into the profile's application server (server1) and maps all EJB modules to the data sources that CreateDataSourceV5 ANT target creates. The CreateVirtualHosts ANT target creates the virtual hosts which InstallEAR maps to the virtual hosts.
Called by:
Prerequisites:
- The Administrative server must be running to run the ConfigureCommerceServer target and any subtargets.
- The createInstance.properties file must exist for this ANT target to work. For information about generating the properties file, see ANT targets.
Required parameters:
- instance
- The name of the WCS instance with which you are working (for example, demo).
Optional parameters:
- sourceEARPath
- The directory path to the expanded EAR to be deployed or file path to the collapsed EAR to be deployed
Example
- WC_INSTALL/bin/config_ant.sh -DinstanceName=instance InstallEAR
- WC_INSTALL/bin/config_ant.bat -DinstanceName=instance InstallEAR
Related concepts