blackberry / BB10-Webworks-Packager

The BB10 WebWorks Packager bundles the App content with the BB10 WebWorks Framework to create a BAR to run on the BB10 Device (or simulator)
27 stars 18 forks source link

bbwp.bat should return a non-zero value (ERRORLEVEL) when an error occurs #248

Open psiborg opened 11 years ago

psiborg commented 11 years ago

To help automate the build process, it would be useful if bbwp.bat returns a non-zero ERRORLEVEL when errors occur (e.g., during signing):

[INFO] Populating application source [INFO] Parsing config.xml [INFO] Generating output files [INFO] Info: Package created: [ERROR] Error: Code signing request failed because this version of the application or package has been previously sign ed. Please increment the version(s) and try signing again.

Currently, this returns "ERRORLEVEL = 0".

rtholmes commented 11 years ago

Same problem on OSX;

test: [exec] [INFO] Populating application source [exec] [INFO] Parsing config.xml [exec] [INFO] Generating output files [exec] [ERROR] Error: Attribute image: file cannot be found in the list of packaged files: foo.png [exec] [ERROR] Native Packager exception occurred [exec] [ERROR] Error: Attribute image: file cannot be found in the list of packaged files: foo.png [exec] [ERROR] Native Packager exception occurred

BUILD SUCCESSFUL

bbwp needs to return appropriate codes so build scripts can better detect and respond to errors.