Building Mobile Enterprise Applications : Using webMethods Mobile Designer : Defining Resources for a Mobile Application Project : Compiling Resources Using the +Run-Reshandler Ant Target
Compiling Resources Using the +Run-Reshandler Ant Target
Use the +Run-Reshandler Ant target if you want to compile the resources, such as text files and images, for the current device without compiling the source code for the mobile application.
The following diagram shows the steps that Mobile Designer performs when you use the +Run-Reshandler Ant target. See the table below the diagram for a description of the steps. The table also indicates hook points where Mobile Designer can run custom Ant scripts that you provide. For more information about hook points, see Creating Custom Ant Scripts to Run at Predefined Hook Points.
+Run-Reshandler Ant Target
1
Determine settings for target devices
Mobile Designer determines the settings for the device for which it is building the application. It retrieves the settings from the following sources in the order listed.
*Project-level device_name.xml files
*Project-level _defaults_.xml file
*Mobile Designer device database
*Mobile Designer sdk.properties file
Mobile Designer uses the first setting it encounters. For example, if Mobile Designer encounters a setting in the project-level target device_name.xml file and then again in the project-level _defaults_.xml file, Mobile Designer uses the setting from the target device_name.xml file.
For more information about:
*Project-level device files, see Where You Set Properties and Setting Project Properties
*Mobile Designer device database, see Devices that a Mobile Application Supports
*Mobile Designer sdk.properties file, see Mobile Designer Configuration Properties (sdk.properties)
hook point
PreBuildResources
If you have created an Ant script to run at the PreBuildResources hook point, Mobile Designer runs the Ant script.
2
Execute the resource handler
Mobile Designer runs the resource handler that you created for the project. When running the resource handler, Mobile Designer records all the resources required for your application. Mobile Designer also creates the com.softwareag.mobile.runtime.Parameters class. For more information about creating the resource handler, see About the Resource Handler. For more information about the Parameters class, see Application and Parameter Classes.
At this point in the build process, Mobile Designer uses the following project properties:
*project.reshandler.src.path for the location of the project’s resource handler script and any associated classes
*project.java.reshandler.name for the name of the resource handler class you created for your project.
*project.resource.dir.root for the location of the top-level folder that contains the resources (audio files, image files, etc.) for your project
*project.reshandler.additional.libs.path for the location of additional libraries that your project’s resource handler requires
For more information about these properties, see Resource Handler Properties.
hook point
PostBuildResources
If you have created an Ant script to run at the PostBuildResources hook point, Mobile Designer runs the Ant script.
Copyright © 2007-2017 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback