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

Packager should fail gracefully if it can't find config.xml #193

Closed cdelcol closed 11 years ago

cdelcol commented 11 years ago

Current output: [INFO] Populating application source [INFO] Parsing config.xml [ERROR] Error: ENOENT, no such file or directory 'C:\Users\aUser\RippleSites\Boxes\src\config.xml'

Cause: if the config.xml is not at the root of the .zip file, the error message is extremely hard to diagnose. The typical scenario is that a dev creates the .zip file of a directory, vs the contents of the directory. A simple check for the existence of the config.xml file should precede trying to open it.

Source - Dev forums: http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/Javascript-Alert-quot-Unresolved-symbols-quot/td-p/1893637

Expected behaviour:

  1. A valid config.xml in root of .zip - no change
  2. An invalid config.xmll in root of .zip - no change
  3. A valid .zip without a file named config.xml at the root will fail gracefully
jeffheifetz commented 11 years ago

+1