Commands for apps
When you call the wladm Ant task, you can include various commands for apps.
The enable-extended-authenticity command
Attribute | Description | Required | Default |
---|---|---|---|
srcwlappfile | Original binary app file (.wlapp, not .apk or .ipa) | Yes | Not available |
devicefile | Binary mobile app file (.apk, .appx, .ipa, or .xap) | Yes | Not available |
destwlappfile | Output binary app file (.wlapp, not .apk or .ipa) | Yes | Not available |
Example
<enable-extended-authenticity srcwlappfile="myapp-iphone-1.0.wlapp"
devicefile="MyApp.ipa"
destwlappfile="myapp-iphone-1.0.extauth.wlapp"/>
For more information about enabling extended app authenticity checking, see Configuring extended app authenticity checking.
The list-apps command
Attribute | Description | Required | Default |
---|---|---|---|
runtime | Name of the runtime web application / MobileFirst project. | Yes | Not available |
output | Name of output file. | No | |
outputproperty | Name of Ant property for the output. | No |
Example
<list-apps runtime="worklight"/>
This command is based on the Applications (GET) REST service.
The deploy-app command
Attribute | Description | Required | Default |
---|---|---|---|
runtime | Name of the runtime web application / MobileFirst project. | Yes | Not available |
file | Binary app file (.wlapp, not .apk, or .ipa). | Yes | Not available |
Example
<deploy-app runtime="worklight" file="MyApp-all.wlapp"/>
This command is based on the Application (POST) REST service.
The show-app command
Attribute | Description | Required | Default |
---|---|---|---|
runtime | Name of the run time web application / MobileFirst project. | Yes | Not available |
name | Name of an app. | Yes | Not available |
output | Name of output file. | No | |
outputproperty | Name of Ant property for the output. | No |
Example
<show-app runtime="worklight" name="MyApp"/>
This command is based on the Application (GET) REST service.
The delete-app command
Attribute | Description | Required | Default |
---|---|---|---|
runtime | Name of the runtime web application / MobileFirst project. | Yes | Not available |
name | Name of an app. | Yes | Not available |
Example
<delete-app runtime="worklight" name="MyApp"/>
This command is based on the Application (DELETE) REST service.
The delete-app-version command
Attribute | Description | Required | Default |
---|---|---|---|
runtime | Name of the runtime web application / MobileFirst project. | Yes | Not available |
name | Name of an app. | Yes | Not available |
environment | Mobile platform. | Yes | Not available |
version | Version of the app. | Yes | Not available |
Example
<delete-app-version runtime="worklight" name="MyApp" environment="iphone" version="1.1"/>
This command is based on the App Version (DELETE) REST service.
The app-version command group
Attribute | Description | Required | Default |
---|---|---|---|
runtime | Name of the run time web application / MobileFirst project. | Yes | Not available |
name | Name of an app. | Yes | Not available |
environment | Mobile platform. | Yes | Not available |
version | Version of the app. | Yes | Not available |
Element | Description | Count |
---|---|---|
get-binary | Gets the binary data. | 0..∞ |
get-accessrule | Gets the access rule. | 0..∞ |
set-accessrule | Changes the access rule. | 0..∞ |
get-authenticitycheckrule | Gets the authenticity check rule. | 0..∞ |
set-authenticitycheckrule | Changes the authenticity check rule. | 0..∞ |
get-lock | Gets the lock state. | 0..∞ |
set-lock | Changes the lock state. | 0..∞ |
The get-binary command
Attribute | Description | Required | Default |
---|---|---|---|
tofile | Name of the output file. | Yes | Not available |
Example
<app-version runtime="worklight" name="MyApp" environment="iphone" version="1.1">
<get-binary tofile="/tmp/MyApp.wlapp"/>
</app-version>
This command is based on the Application Binary (GET, HEAD) REST service.
The get-accessrule command
Attribute | Description | Required | Default |
---|---|---|---|
output | Name of a file in which to store the output. | No | Not applicable |
outputproperty | Name of an Ant property in which to store the output. | No | Not applicable |
Example
<app-version runtime="worklight" name="MyApp" environment="iphone" version="1.1">
<get-accessrule output="/tmp/MyApp-accessrule.xml"/>
</app-version>
This command is based on the Application (GET) REST service.
The set-accessrule command
Attribute | Description | Required | Default |
---|---|---|---|
file | Name of the input file. | Yes | Not available |
Example
<app-version runtime="worklight" name="MyApp" environment="iphone" version="1.1">
<set-accessrule file="/tmp/new-accessrule.xml"/>
</app-version>
This command is based on the App Version Access Rule (PUT) REST service.
The get-authenticitycheckrule command
Attribute | Description | Required | Default |
---|---|---|---|
output | Name of a file in which to store the output. | No | |
outputproperty | Name of an Ant property in which to store the output. | No |
Example
<app-version runtime="worklight" name="MyApp" environment="iphone" version="1.1">
<get-authenticitycheckrule output="/tmp/MyApp-authenticitycheckrule.txt"/>
</app-version>
This command is based on the Application (GET) REST service.
The set-authenticitycheckrule command
Attribute | Description | Required | Default |
---|---|---|---|
action | Action to perform for authenticity checking. | Yes | Not available |
- DISABLED: Authenticity is not checked.
- IGNORED: Authenticity is checked, but not enforced. If it fails, only a warning is given and the session is authorized.
- ENABLED: Authenticity is checked and enforced.
Example
<app-version runtime="worklight" name="MyApp" environment="iphone" version="1.1">
<set-authenticitycheckrule action="enabled"/>
</app-version>
The get-lock command
Attribute | Description | Required | Default |
---|---|---|---|
output | Name of a file in which to store the output. | No | |
outputproperty | Name of an Ant property in which to store the output. | No |
Example
<app-version runtime="worklight" name="MyApp" environment="iphone" version="1.1">
<get-lock output="/tmp/MyApp-lock.txt"/>
</app-version>
This command is based on the Application (GET) REST service.
The set-lock command
Attribute | Description | Required | Default |
---|---|---|---|
lock | New lock state. | Yes | Not available |
Example
<app-version runtime="worklight" name="MyApp" environment="iphone" version="1.1">
<set-lock lock="true"/>
</app-version>
This command is based on the App Version Lock (PUT) REST service.