Deployment question - custom class includes
Hi,
Sorry if this should be in the Cmd forum, but thought I'd start here as I think this may be more related to ST...
I have recently upgraded my 2.0.1 application to the 2.1.0.b3 and am using Sencha Cmd v3.0.0.141 for the first time.
I am attempting to produce a testing build and am running into the following issue:
Code:
C:\Sencha\Projects\PPTouch>sencha app build testing
Sencha Cmd v3.0.0.141
[INFO ] init-properties:
[INFO ] init-antcontrib:
[INFO ] init-sencha-command:
[INFO ] init:
[INFO ] -before-app-build:
[INFO ] app-build-impl:
[INFO ] building application
[INFO ] Deploying your application to C:\Sencha\Projects\PPTouch\build\P
PTouch\testing
[INFO ] Copied touch/sencha-touch.js
[INFO ] Copied Lib/InfoBubble.js
[INFO ] Copied Lib/markerwithlabel.js
[INFO ] Copied Lib/markermanager.js
[INFO ] Copied Scripts/HistoryMarkerManager.js
[INFO ] Copied app.js
[INFO ] Copied resources/css/app.css
[INFO ] Copied resources/css/pptouch.css
[INFO ] Copied C:\Sencha\Projects\PPTouch\resources\images
[INFO ] Copied C:\Sencha\Projects\PPTouch\resources\icons
[INFO ] Copied C:\Sencha\Projects\PPTouch\resources\loading
[INFO ] Resolving your application dependencies (file:///C:/Sencha/Proje
cts/PPTouch/index.html)
[INFO ] Compiling app.js and dependencies
[INFO ] Processing classPath entry : C:\Sencha\Projects\PPTouch\sencha-c
ompile-temp-dir
[INFO ] Processing classPath entry : C:\Sencha\Projects\PPTouch\touch\sr
c
[INFO ] Processing classPath entry : C:\Sencha\Projects\PPTouch\app.js
[INFO ] Processing classPath entry : C:\Sencha\Projects\PPTouch\app
[INFO ] Processing class inheritance graph
[INFO ] Processing source dependencies
[ERROR] Failed to find file for HistoryMarkerManager
required by C:\Sencha\Projects\PPTouch\app\view\GMap.js
[ERROR] Exception running app build : JavaException: com.sencha.exceptio
ns.BasicException: com.sencha.exceptions.BasicException: com.sencha.exceptions.E
xBuild: Failed to find any files for HistoryMarkerManager
[ERROR] javax.script.ScriptException: JavaException: com.sencha.exceptio
ns.BasicException: com.sencha.exceptions.BasicException: com.sencha.exceptions.E
xBuild: Failed to find any files for HistoryMarkerManager in <Unknown source> at
line number 709
The HistoryMarkerManger class this error refers to is defined in a 'lib' folder in the root of my application folder structure and is referenced in a view file like so:
Code:
Ext.define('PinpointersTouch.view.GMap', {
extend: 'Ext.Map',
xtype: 'gmap',
requires: [
'HistoryMarkerManager'
],
...
I also have the class file referenced in my app.json config file like this:
Code:
"js": [
{
"path": "touch/sencha-touch.js",
"update": "delta"
},
{
"path": "Lib/InfoBubble.js",
"update": "delta"
},
{
"path": "Lib/markerwithlabel.js",
"update": "delta"
},
{
"path": "Lib/markermanager.js",
"update": "delta"
},
{
"path": "Scripts/HistoryMarkerManager.js",
"update": "delta"
},
{
"path": "app.js",
"bundle": true, /* Indicates that all class dependencies are concatenated into this file when build */
"update": "delta"
}
],
As you can see, I have some other custom js files here too, no doubt these will need to be also addressed as part of this issue I have.
I have see how the dynamic loading of classes works in the development version of my application, why is the build process not figuring out that this is a required class and adding it in the correct order? Or have I missed something here?