- The primary purpose for configurations is the packaging of different variants of the application code and/or data assets, such as for debugging or for different target architectures. Other application metadata, such as the name, icon, window characteristics, permissions, and other entry-point attributes are configuration-independent.
- When you require specific configuration details, the Source page provides full access to the bar-descriptor.xml file. The editor might not include configuration-specific data; in this case the page heading displays warning annotations to indicate this.
You can change the assets by updating your bar-descriptor.xml file, or you can update assets by using a command-line option when you package an application using the blackberry-nativepackager tool. If you specify assets in both the bar-descriptor.xml file and by using the blackberry-nativepackager tool, the assets packaged using the blackberry-nativepackager tool are used. For more information, see "Package your application from the command line" in the Developer's Guide .
Select the build configuration to specify assets for.
|(All Configurations), Device-Debug, Device-Release, Simulator|
|Add||N/A||Create a new build configuration.||N/A|
|Duplicate||<configuration id="plugin_name" name="New_Configuration_Name">||Create a duplicate build configuration based on the selected configuration type from the Build Configurations list.||N/A|
|Remove||N/A||Remove the selected build configuration from the list.||N/A|
|Edit||N/A||Open a dialog that allows you to create, remove, or rename build configurations.||N/A|
|Assets||<asset path="Asset_Location">||Update the table of assets by selecting assets from anywhere
inside and outside of the workspace, and then assign types to
indicate their runtime and packaging semantics. Additionally, where
appropriate, you can move or copy selected assets from the workspace or the host OS's filesystem by using drag-and-drop.
|Add Files||N/A||Add an asset to the project.||N/A|
|Remove||N/A||Delete an asset from the project.||N/A|
|Hide assets common to all configurations||N/A||Hides the display of assets from the Assets list that are common to and included in all of the configurations listed in the (All Configurations) list.||Not Selected|
|Related Settings||N/A||Provide a direct link to the C/C++ build settings, which are critical to the generation of the assets included in the package.||N/A|
Add assets for your application
- Select and expand a project in the Project Explorer view, and then double-click bar-descriptor.xml in your project.
- In the bar-descriptor.xml view, click Assets then click (All Configurations).
- In the Assets section, click Add.
- In the dialog, click Workspace and select the file you want to the application to use.
- Click OK and then Save.
Copy assets from a device to an application
- Establish a connection to your device or simulator.
- Either open the QNX System Perspective (select QNX System Information), or open the Target File System Navigator view directly (select , and then type Target File System Navigator to select it from the list). , and then select
On the left in the Target File System Navigator view, select and expand the
target device or simulator you want to use.
If the selected target for your device or simulator indicates that it is not currently connected, from the Target Navigator view, right-click on your target and select Connect.
- Navigate to the folder that you want to copy files.
Either drag and drop any required assets from the target to your desired
location on the host, or use the Copy To command to copy
assets (In the Target File System Navigator view, right-click a file, then
select , and the use the Browse For Folder dialog to specify the location
For information about the folders (such as Sandbox, Shared, Developer, and System), see Where Files Are Stored.
Last modified: 2013-12-21