Building Mobile Enterprise Applications : Using webMethods Mobile Designer : Coding a Mobile Application : Creating and Using Code Libraries : Referencing a Library
Referencing a Library
After you have created a library, you can reference the library in a mobile application project. You must also add the project.library.name and project.library.path properties to your mobile application project. To apply the setting to all targets, set the property in the project’s _defaults_.xml file. To apply the setting to a specific target device, set the property in the target file for that device, target_name.xml.
Property and Description
project.library.name
Specifies the name of one or more libraries that the mobile application references. Use a semi-colon delimited list to specify multiple libraries.
Example value:
_LibraryJSON_
project.library.path
Specifies the path to one or more Builds folders where the precompiled libraries reside for each platform. Use a semi-colon delimited list to specify multiple libraries.
Example value:
$(env.MOBILE_DESIGNER}/Samples/_LibraryJSON_/Builds/0.0.0
When running the +Multi-Build Ant target for the project, Mobile Designer will automatically inject any references as required in the build process for each target platform to enable it to build and run.
For an example of referencing a library that you create using the +Library-Build Ant task, see the NativeUI JSON (_NativeUIJSON_) sample project, which you can find in the following directory:
Mobile Designer_directory /Samples
Copyright © 2007-2017 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback