Mobile Development 10.11 | webMethods Mobile SuiteWeb Help | Using webMethods Mobile Designer | Building and Compiling Mobile Application Projects Using Ant Targets | Building Mobile Applications | Building a Project from the Command Line
 
Building a Project from the Command Line
You can build your project from the command line using the +Target-Build Ant target. When using the +Target-Build Ant target, you can build for only a single device/language combination at a time. To execute the Ant target, from the command line navigate into the project's folder.
For information about the actions that Mobile Designer performs to build your project, see Build Process Overview.
Note:
Before you build your project, be sure you have completed the required setup. See Before You Can Build a Mobile Application Project.
Syntax
version=x.y.z [retain={true | false}] handset=device langgroup=language
platform=platform target=executable_type +Target-Build
Options
Option
Description
version=x.y.z
Required. Specifies the version number for the application your are building.
[retain={true | false}]
Optional. Specifies whether you want Mobile Designer to retain the cross-compiled code it generated from your original Java code, along with any platform-specific project it might have generated
The default is true.
handset=device
Required. Specifies the device for which you want Mobile Designer to build the application.
langgroup=language
Required. Specifies the language(s) for which you want Mobile Designer to build the application.
platform=platform
Required. Specifies the platform for which you want Mobile Designer to build the application.
target=executable_type
Required. Specifies the type of executable you are building. For example, you might specify release or debug.
pprofile
Required. Defines the path to the provisioning profile. The build type (eg., AppStore, Enterprise, AdHoc, or Dev) is deduced automatically. Alternatively, you can specify the name, ID, or AppId of the provisioning profile, see Setting Properties to Build for an iOS Device.
Note:
The appropriate signing identity must be installed on your system and be able to perform the application signing.
keychain
Optional. Defines the path to the keychain.
buildnumber
Optional. Specifies the specific build number.
extraXcodeArgs
Optional. Defines extra parameters for an Xcode build by generating an Xcode archive.
Example
The following code sample shows how to build version 2.0.3 of your project for the IOS_Apple_iPhone5 device, which runs on the iOS platform, for the language group EFIGS to create an executable version for the Apple App Store.
ant +Target-Build -Dversion=2.0.3 -Dbuildnumber=99 -Dretain=true
-Dhandset=IOS_Apple_iPhone5 -Dlanggroup=EFIGS -Dplatform=IOS
-Dtarget=appstore -Dpprofile="~/provisioning_profiles/appstore.mobileprovision"
Because retain is set to true, Mobile Designer retains the cross-compiled code it generated from your original Java code, along with any project (for example, Xcode project for iOS) it might have generated.