Properties files

The process for building and deploying apps requires input from configurable properties files that belong to the application.

You can configure the app by editing the configurable properties files, or, if it is enabled, the Anywhere Administration application. If you configure the app with the Anywhere Administration application, those configuration changes have precedence over any configuration changes made to the configurable properties files.

worklight.properties
Contains application configuration properties:
  • MobileFirst Server database connection
  • MobileFirst Server security
  • Map service provider authentication
  • Heartbeat interval
  • Timeout and wait times
  • Log line limit
  • Authentication method
  • Maximo® context
  • Download and upload of attachments
  • Size of attachments
  • Location of base directory for attachments
  • Tokens
  • Display lock times
build.properties

Contains information about the application definition location, the API version, and whether an app is deployed. The build.properties file also contains information about the OSLC adapter and the setting for enabling data encryption.

This file also contains the properties for MobileFirst Server, the Application Center, and the WAR file. The build.properties file defines the instance of MobileFirst Server to which the app is deployed.
During installation, the build.properties file is copied to the maximoanywhere_home\Anywhere\MaximoAnywhere directory and updated with values that are provided to the installer. If you change the environment after you install Maximo Anywhere, the build.properties file is not automatically updated. You might need to update the build.properties file in the following situations:
  • If you change the enterprise server in your environment, you must change the adapter.connection properties.
  • If you move the WAR file from its default location on the MobileFirst Server computer, you must change the project.config.war.file.name property in the build.properties file.
  • If you decide to build only a certain subset of the app files, you must change the build.target property. The build target determines what to build. Setting this property to all builds and deploys all of the files. Setting this property to mobilefirst builds the WAR file, the adapter file, and the WLAPP file, and deploys them to the MobileFirst Server.
app-feature.properties
Contains information about the settings for features that you can enable during the build process:
  • Maps are enabled with the map.enabled property
  • GPS is enabled with the gps.enabled property
  • Bar code scanning is enabled with the barcode.enabled property
  • Attachments are enabled with the attachments.enabled property
  • Push notifications are enabled with the pushnotification.enabled property
  • Undo actions for work order transactions are enabled with the custom.undo.process.enabled property