blackberry-webworks/BB10-Webworks-Packager — Issue #21: Native Packager exception occurs if path to the icon in config.xml starts with a forward-slash
Author: ishneur
Created: 2012-02-22 22:16:22+00:00
State: open
Labels: Bug

Description:
1. The application icon is in a subfolder.
2. In config.xml, the path to the icon is specified as follows:
3. Try to compile the WebWorks app

Native Packager exception occurs and compilation fails.

Note that if the forward-slash character at the beginning is omitted, there is no exception.

Also note that it works in BB WebWorks Packager 2.3.1.

Packager output:

C:\Program Files\Research In Motion\BB10webworks-1.0.0.0>"C:\Program Files\Resea
rch In Motion\BB10webworks-1.0.0.0\dependencies\node\node.exe" "C:\Program Files
\Research In Motion\BB10webworks-1.0.0.0\lib\bbwp.js" C:\Tumbler\MyWidgets\BB10\
US14269\IconSubfolder.zip
17:05:54 - INFO - Populating application source
17:05:54 - INFO - Parsing config.xml
17:05:54 - INFO - Generating output files
17:05:55 - WARN - Warning: Cannot find application or default icon
17:05:55 - ERROR -

17:05:55 - ERROR - Error: Attribute Entry-Point-Icon: file cannot be found in th
e list of packaged files: /img/state/default_i_off.png

17:05:55 - ERROR - Native Packager exception occurred
17:05:55 - WARN - Warning: Cannot find application or default icon
17:05:55 - ERROR -

17:05:55 - ERROR - Error: Attribute Entry-Point-Icon: file cannot be found in th
e list of packaged files: /img/state/default_i_off.png

17:05:55 - ERROR - Native Packager exception occurred
17:05:55 - INFO - BAR packaging complete