PDA

View Full Version : Building an Example using Sencha SDK Tools



possum
7 Jan 2012, 4:10 AM
Hi,

I'm playing around with one of the examples in Ext JS 4.0.7, trying to customise it slightly. I modified one of the js files but now I want to regenerate classes.js so the changes are picked up and minified...

I installed Sencha SDK Tools, when I navigate to the example project directory and execute:

$ sencha build -p app.jsb3 -d .
I see:

Loading the Ext JS 4 MVC Demo - Simple Project
Loaded 0 Packages
Loaded 1 Builds
[ERROR] File '/pathTo/ext-4.0.7-gpl/examples/app/simple/../../../../platform/src/util/Observable.js' is either not existent or unreadble

and so on.

Sorry if I am missing something obvious but not sure what is going on. Where should i be locating <pathTo>/platform/src/util/Observable.js. Or am I going about rebuilding this project the wrong way?

Thanks.

mitchellsimoens
7 Jan 2012, 6:38 AM
That is saying that Ext.Loader doesn't have a correct path to Ext namespace.

possum
7 Jan 2012, 10:23 PM
Hi Mitchell,

I already put the following code at the top of app.js:

Ext.Loader.setPath('Ext', '../../../src');
Ext.Loader.setConfig({enabled:true});

I found this was necessary to get the example to load in my browser out of the box.

Can you clarify why this was necessary (or if it was not what I should have done) and if this is what you are referring to when you say Ext Loader doesn't have a correct path to the Ext namespace.

Thanks.

possum
13 Jan 2012, 6:45 PM
*bump*

Anyone?