Build a MobileFirst virtual application
We can use an Ant task to build a MobileFirst virtual application.
The Ant tasks are contained in the worklight-ant.jar file, which we can find in the mobilefirst_server_ pattern_6.3.0.zip file. Extract it before you build and deploy MobileFirst virtual applications with the command line interface.
The Ant task for building a MobileFirst virtual application has the following structure:
<taskdef resource="com/worklight/ant/defaults.properties" classpath="${taskdefClasspath}"/> <target name="buildIPAS_VAP" depends="buildAll" > <vap-builder worklightWar="${worklightWar}" destinationFolder="${wlProjectDestDir}" artifactsFolder="${artifactsFolder}" elbHost="${elbHost}"/> </target>The following table describes the attributes.
Attributes Description worklightWar Required. The operations console WAR file including the full file path. Note that worklight-management-ui.war and worklight-management-service.war must be retrieved from MobileFirst Studio (under {$workspace}/MobileFirstServerConfig/servers/worklight/apps ) and put in the same folder as the MobileFirst runtime WAR file. destinationFolder Optional. Default value: ${projectfolder}/bin. artifactsFolder Optional. Folder for adapters and applications. elbHost Optional. Host name for elastic load balancer. createVAPFlag Optional. Whether to generate a VAP .zip file. Default value: true. isConnectNewTDS Optional. Whether to connect a new Tivoli Directory Service. ldifFile Optional. If not set, the default ldifFile is used to connect to Tivoli Directory Service. ipasModel Optional. Default value is W1500; in this case, it works on Intel. We can set its value to W1700; in this case, IBM PureApplication System or IBM SmartCloud Orchestrator runs on Power system. ipasHost Optional. The URL of IBM PureApplication System or IBM SmartCloud Orchestrator. Required when createVAPFlag is true. username Optional. The user name that is required to access the IBM PureApplication System or IBM SmartCloud Orchestrator console. Required when createVAPFlag is true. password Optional. The password that is required to access the IBM PureApplication System or IBM SmartCloud Orchestrator console. Required when createVAPFlag is true. databaseOption Optional. Default value is Multiple. In this case, each database runs on a separate DB2 VM. We can set its value to Combined, in which case all the databases run in a single DB with all MobileFirst tables. reportDBFlag Optional. Whether to include a Report DB if databaseOption is set to Multiple. For combined DB, it must be true. Default value: true. productionPurposeFlag Optional. Default value: true. Used to indicate the purpose of the DB2 component as either production or non-production. A non-production purpose is only applicable in an IBM PureApplication Service on SoftLayer environment.
Parent topic: Build and deploy MobileFirst virtual applications using the command line interface