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.
  1. #1
    Sencha Premium Member twasink's Avatar
    Join Date
    Oct 2012
    Location
    Brisbane, Australia
    Posts
    100
    Vote Rating
    9
    twasink will become famous soon enough

      0  

    Default 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)?

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,548
    Vote Rating
    872
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    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
    ________________
    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 in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha Premium Member twasink's Avatar
    Join Date
    Oct 2012
    Location
    Brisbane, Australia
    Posts
    100
    Vote Rating
    9
    twasink will become famous soon enough

      0  

    Default


    Quote Originally Posted by mitchellsimoens View Post
    When you generate an app, you can move app.js and then edit index.html to point to it.
    Yes. And when you do, the 'sencha generate' set of commands will no longer work, as they have the 'app/app.js' part hard-coded into the plugin.xml command.

  4. #4
    Sencha - Ext JS Dev Team dongryphon's Avatar
    Join Date
    Jul 2009
    Location
    Kansas
    Posts
    1,405
    Vote Rating
    150
    dongryphon is a splendid one to behold dongryphon is a splendid one to behold dongryphon is a splendid one to behold dongryphon is a splendid one to behold dongryphon is a splendid one to behold dongryphon is a splendid one to behold dongryphon is a splendid one to behold

      0  

    Default


    Thanks for the report! I have opened a bug in our bug tracker.

Thread Participants: 2