The <installApplicationCenter>, <updateApplicationCenter>, and <uninstallApplicationCenter> Ant tasks are provided for the installation of the Application Center Console and Services.
The <installApplicationCenter>, <updateApplicationCenter>, and <uninstallApplicationCenter> tasks have the following attributes:
Attribute | Description | Required | Default |
---|---|---|---|
id | It distinguishes different deployments in WebSphere Application Server full profile. | No | Empty |
servicewar | The WAR file for the Application Center Services. | No | The applicationcenter.war file is in the application Center console directory: product_install_dir/ApplicationCenter/console. |
shortcutsDir | The directory where you place the shortcuts. |
No | None |
aaptDir | The directory that contains the aapt program, from the Android SDK platform-tools package. |
No | None |
In WebSphere Application Server full profile environments, the id attribute is used to distinguish different deployments of Application Center Console and Services. Without this id attribute, two WAR files with the same context roots might conflict and these files would not be deployed.
Use the servicewar attribute to specify a different directory for the Application Center Services WAR file. You can specify the name of this WAR file with an absolute path or a relative path.
The aapt program is part of the IBM MobileFirst™ Platform Foundation distribution: product_install_dir/ApplicationCenter/tools/android-sdk.
If this attribute is not set, during the upload of an apk application, Application Center parses it by using its own code, which might have limitations.
The <installApplicationCenter>, <updateApplicationCenter>, and <uninstallApplicationCenter> tasks support the following elements:
Element | Description | Count |
---|---|---|
applicationserver | The application server. | 1 |
console | The Application Center console. | 1 |
database | The databases. | 1 |
user | The user to be mapped to a security role. | 0..∞ |
The <console> element collects information to customize the installation of the Application Center Console. This element has the following attributes:
Attribute | Description | Required | Default |
---|---|---|---|
warfile | The WAR file for the Application Center Console. | No | The appcenterconsole.war file is in the Application Center console directory: product_install_dir/ApplicationCenter/console. |
Element | Description | Count |
---|---|---|
websphereapplicationserver or was | The parameters for WebSphere Application Server. The <websphereapplicationserver> element (or <was> in its short form) denotes a WebSphere Application Server instance. WebSphere Application Server full profile (Base, and Network Deployment) are supported, so is WebSphere Application Server Liberty Core. Liberty collective is not supported for Application Center. |
0..1 |
tomcat | The parameters for Apache Tomcat. | 0..1 |
The <database> element collects the parameters that specify a data source declaration in an application server to access the services database.
You must declare a single database: <database kind="ApplicationCenter">. You specify the <database> element similarly to the <configuredatabase> Ant task, except that the <database> element does not have the <dba> and <client> elements. It might have <property> elements.
The <database> element has the following attributes:
Attribute | Description | Required | Default |
---|---|---|---|
kind | The kind of database (ApplicationCenter). | Yes | None |
validate | To validate whether the database is accessible or not. | No | True |
The <database> element supports the following elements. For more information about the configuration of these database elements, see Table 18 to Table 28 in Ant tasks for installation of MobileFirst runtime environments
Element | Description | Count |
---|---|---|
db2 | The parameter for DB2® databases. | 0..1 |
derby | The parameter for Apache Derby databases. | 0..1 |
mysql | The parameter for MySQL databases. | 0..1 |
oracle | The parameter for Oracle databases. | 0..1 |
driverclasspath | The parameter for JDBC driver class path. | 0..1 |
The <user> element collects the parameters about a user to include in a certain security role for an application.
Attribute | Description | Required | Default |
---|---|---|---|
role | The user role appcenteradmin. | Yes | None |
name | The user name. | Yes | None |
password | The password, if you must create the user. | No | None |
This Ant task supports only the appcenteradmin role. Users that are defined by using the <user> element can be mapped only to the appcenteradmin role for authentication in the Application Center Console.