+

Search Tips | Advanced Search

For up-to-date product documentation, see the IBM MobileFirst Foundation Developer Center.


Ant tasks for installation of Application Center

The <installApplicationCenter>, <updateApplicationCenter>, and <uninstallApplicationCenter> Ant tasks are provided for the installation of the Application Center Console and Services.


Task effects


Attributes and elements

The <installApplicationCenter>, <updateApplicationCenter>, and <uninstallApplicationCenter> tasks have the following attributes:

Table 1. Attributes for the <installApplicationCenter>, <updateApplicationCenter>, and <uninstallApplicationCenter> Ant tasks
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

The <installApplicationCenter>, <updateApplicationCenter>, and <uninstallApplicationCenter> tasks support the following elements:

Table 2. Inner elements for the <installApplicationCenter>, < updateApplicationCenter>, and <uninstallApplicationCenter> Ant tasks
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..∞


To specify an Application Center console

The <console> element collects information to customize the installation of the Application Center Console. This element has the following attributes:

Table 3. Attributes for the <console> element
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.


To specify an application server

Use the <applicationserver> element to define the parameters that depend on the underlying application server. The <applicationserver> element supports the following elements.

Table 4. Inner elements for the <applicationserver> element
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 attributes and inner elements of these elements are described in tables Table 5 to Table 14 of the page Ant tasks for installation of MobileFirst runtime environments.


To specify a connection to the services database

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:

Table 5. Attributes for the <database> element
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

Table 6. Inner elements for the <database> element
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


To specify a user and a security role

The <user> element collects the parameters about a user to include in a certain security role for an application.

Table 7. Attributes for the <user> element
Attribute Description Required Default
role The user role appcenteradmin. Yes None
name The user name. Yes None
password The password, if we 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.

Parent topic: Installation reference