-
16 Jan 2013 7:49 PM #1
The 'app' folder and 'app.js' file name are hardcoded in the Ext plugin.
The 'app' folder and 'app.js' file name are hardcoded in the Ext plugin.
[This is for the Sencha Cmd 3.0.2.288 build]
ExtJs allows us to set the appFolder to be something instead of 'app' - e.g I can set it to 'myapp' if I want. However, the Sencha Cmd scripts stop working if you do this - in particular, you can no longer use 'sencha generate controller' or 'sencha generate view'.
This seems to be because the location of the app.js file is hard-coded in the plugins/ext/current/plugin.xml file. E.g, on line 203:
<property name="app.js.file" value="${args.path}/app/app.js"/>
There are a number of other references to ${args.path}/app in that file.
Would it be possible to replace references to '${args.path}/app' with something like ${args.path}/${appFolder} (with appFolder defaulting to 'app', of course)?
-
18 Jan 2013 7:24 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,582
- Vote Rating
- 433
When you generate an app, you can move app.js and then edit index.html to point to it.
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.
-
29 Jan 2013 10:46 PM #3
-
30 Mar 2013 5:11 PM #4
Thanks for the report! I have opened a bug in our bug tracker.
You found a bug! We've classified it as
SDKTOOLS-405
.
We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.


Reply With Quote