-
10 Oct 2012 10:10 PM #1
[Sencha 2RC1/Sencha CMD v.190] Adding google maps to app.json causes build to fail
[Sencha 2RC1/Sencha CMD v.190] Adding google maps to app.json causes build to fail
Adding the google maps link to a project causes the project build to fail.
The environment is Windows 7 64-bit running jre 7.
Create a project template:
Code:sencha generate app MyApp ../myapp
Modify the app.json file adding the google maps link:
Code:{ "path": "http://maps.google.com/maps/api/js?libraries=geometry&sensor=true", "remote": true },
Attempt to build the project:
Code:sencha app build testing
The following error is generated:
Code:Z:\myapp>sencha app build testing Sencha Cmd v3.0.0.190 [INFO ] [INFO ] init-properties: [INFO ] [INFO ] [INFO ] init-sencha-command: [INFO ] [INFO ] [INFO ] init: [INFO ] [INFO ] [INFO ] -before-app-build: [INFO ] [INFO ] [INFO ] app-build-impl: [INFO ] [INFO ] building application [INFO ] Deploying your application to Z:\myapp\build\MyApp\testing [INFO ] Copied touch/sencha-touch.js [INFO ] Copied app.js [INFO ] Copied resources/css/app.css [INFO ] Copied Z:\myapp\resources\icons [INFO ] Copied Z:\myapp\resources\startup [INFO ] Resolving your application dependencies (file:///Z:/myapp/index. html) [INFO ] Compiling app.js and dependencies [INFO ] Processing classPath entry : Z:\myapp\sencha-compile-temp-dir [INFO ] Processing classPath entry : Z:\myapp\touch\src [INFO ] Processing classPath entry : Z:\myapp\app.js [INFO ] Processing classPath entry : Z:\myapp\app [WARN ] [ [1000] : Yui Compressor Warning <> Trailing comma is not legal in an ECMA-262 object initializer => }, function() { ] :: ( Z:\myapp\touch\src\ app\Controller.js => 625 : 1 ) [INFO ] Processing class inheritance graph [INFO ] Processing instantiation refereces to classes and aliases [WARN ] [ [1000] : Yui Compressor Warning <> Trailing comma is not legal in an ECMA-262 object initializer => }, function() { ] :: ( Z:\myapp\touch\src\ app\Controller.js => 625 : 1 ) [INFO ] Processing source dependencies [INFO ] Concatenating output to file Z:\myapp\build\MyApp\testing\app.js [INFO ] Completed compilation. [INFO ] Processed local file touch/sencha-touch.js [ERROR] Exception running app build : JavaException: java.io.IOException : Invalid argument [ERROR] javax.script.ScriptException: JavaException: java.io.IOException : Invalid argument in <Unknown source> at line number 709 Z:\myapp>
-
11 Oct 2012 4:23 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,599
- Vote Rating
- 434
Yes, the new Sencha Cmd did not move support for the remote config from the old Sencha Command. Therefore it will attempt to copy the files to the build directory instead of just using the remote path.
Thanks for the report! I have opened a bug in our bug tracker.
Success! Looks like we've fixed this one. According to our records the fix was applied for
TOUCH-3569
in
Sprint 26 (2.1.0-rc2).


Reply With Quote