-
8 Jan 2013 7:34 AM #1
Moving ext folder
Moving ext folder
Hi,
I generated an app using sencha cmd, everything worked fined. The only thing I want to do is move the ext folder. Instead of ext at the root, i'd moved it to libs/ext. I have a few other libs in my project.
What do I need to update in the project (*.cfg, .build, etc) so that when I build the app, it goes read the sdk at the right place. I looked a bit in the files, updated what I thought needed to be updated but then build commands dont work anymore...
Thanks in advancerafael
-
11 Jan 2013 12:50 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 438
First you can move ext to lib. Then you need to take a couple steps.
First you need to change index.html to point the ext-dev.js to the lib/ext/ext-dev.js
Now you need to recompile the bootstrap.js and you can do something like this from the command line:
sencha compile -classpath=lib/ext/src meta -alias -out bootstrap.js and meta -alt -append -out bootstrap.js and meta -loader -append -out bootstrap.js
The last thing you need to do for a default app is the resources/theme/app.css has an @import that you also need to change to reflect the lib dir nesting now.
Just tried this with Cmd 3.0.2 and Ext JS 4.1.3 and these were the steps I had to take.Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
12 Mar 2013 2:58 PM #3
What about renames? I had an existing project with the sdk in "extjs" instead of "ext". I tried running through those same steps listed above, but with "-classpath=extjs/src", and got the following error:
C:\myPath\web-app>sencha app build
Sencha Cmd v3.0.2.288
[ERR] The following error occurred while executing this line:
C:\myPath\web-app\.sencha\workspace\plugin.xml:2: Cannot find C:\myPath\web-app\.sencha\workspace\${framework.config.dir}\plugin.xml imported
from C:\myPath\web-app\.sencha\workspace\plugin.xml
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote