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

Need a better error message when the zip file is not specified during packaging #179

Open ishneur opened 12 years ago

ishneur commented 12 years ago

If the zip file name is not specified the error message on Windows is: [ERROR] Error: Unable to find end of central directory record

On Mac it's: [ERROR] Error: EACCES, permission denied '/Developer/SDKs/Research In Motion/src'

It happens when typing the following: bbwp -s or bbwp --source bbwp -d or bbwp --debug bbwp -p params.json or bbwp --params params.json

Tumbler and Snarf print out the following in this case:

[INFO] Parsing command line options [ERROR] Invalid command line parameters bbwp version 2.3.1.5 Copyright(C) 2010-2011 Research In Motion http://www.blackberry.com/developers/webworkssdk/

bbwp [drive:][path]archive [-s [dir]] [-g [password]] [-o dir]

archive Specifies the .zip file to compile -s Save source. The default behaviour is to not save the so urce files. If dir is specified then creates dir\src\ directory structure. If no dir specified then the path of archive is assumed -g Sign the .cod file after compilation using password. If both -g and password are not present then the .cod will not be signed. If -g is present and password is not, Signature Tool will prompt for entering password -o Redirects output file location to dir (.cod, .alx, .jad) . If both -o and dir are not specified then the path of archive is assumed -v Turn on verbose messages -d Enables Web Inspector on 7.0+ OS -h Display this usage information