1. #1
    Sencha Premium Member
    Join Date
    Apr 2014
    Posts
    8
    Vote Rating
    0
    p.tsaryk is on a distinguished road

      0  

    Default Sencha Cmd 5.0.1 copies resources to a wrong path

    Sencha Cmd 5.0.1 copies resources to a wrong path


    Hi all,

    After update from Cmd 4.0.4.84 to 5.0.1.231 sencha build app testing has changed generated resources path.

    Now there is a nested "resources" folder in "resources" folder:

    Code:
    > sencha build app testing
    [INF] Processing Build Descriptor : default
    [INF] Loading app json manifest...
    [INF] Concatenating output to file D:\MyApp\build\temp\testing\MyApp\sencha-compiler\cmd-packages.js
    [INF] writing content to D:\MyApp\bootstrap.js
    [INF] appending content to D:\MyApp\bootstrap.js
    [INF] appending content to D:\MyApp\bootstrap.js
    [INF] appending content to D:\MyApp\bootstrap.js
    [INF] Appending content to D:\MyApp/bootstrap.json
    [INF] Concatenating output to file D:\MyApp\build\testing\MyApp\app.js
    [INF] merging resources into D:\MyApp\build\testing\MyApp\resources
    [INF] merged 2 resources into D:\MyApp\build\testing\MyApp\resources
    [INF] merging resources into D:\MyApp\build\testing\MyApp\resources
    [INF] merged 18 resources into D:\MyApp\build\testing\MyApp\resources
    [INF] executing compass using system installed ruby runtime
    identical ../css/app.css
    [INF] Copying page resources to D:\MyApp\build\testing\MyApp
    [INF] Generating file deltas to D:\MyApp/build/testing/MyApp/deltas
    [INF] Writing content to D:\MyApp/build/testing/MyApp/microloader.js
    [INF] Appending content to D:\MyApp/build/testing/MyApp/microloader.js
    [INF] Building output markup to D:\MyApp/build/testing/MyApp/index.html
    [INF] Writing content to D:\MyApp/build/testing/MyApp/index.html
    [INF] generating cache manifest to D:\MyApp/build/testing/MyApp/cache.appcache
    Produces:
    Code:
    ...
    D:\MyApp\build\testing\MyApp\resources\resources\icons\icon-spot~ipad.png
    D:\MyApp\build\testing\MyApp\resources\resources\icons\Icon.png
    D:\MyApp\build\testing\MyApp\resources\resources\icons\Icon@2x.png
    D:\MyApp\build\testing\MyApp\resources\resources\icons\Icon_Android36.png
    D:\MyApp\build\testing\MyApp\resources\resources\icons\Icon_Android48.png
    ...
    Old behavior:
    Code:
    > sencha build app testing
    [INF] Processing Build Descriptor : default
    [INF] Loading app json manifest...
    [INF] Concatenating output to file D:\MyApp\build\temp\testing\MyApp\sencha-compiler\cmd-packages.js
    [INF] Appending concatenated output to file D:\MyApp\bootstrap.js
    [INF] Appending concatenated output to file D:\MyApp\bootstrap.js
    [INF] Appending concatenated output to file D:\MyApp\bootstrap.js
    [INF] Appending concatenated output to file D:\MyApp\bootstrap.js
    [INF] Appending concatenated output to file D:\MyApp\bootstrap.js
    [INF] Appending content to D:\MyApp/bootstrap.json
    [INF] Concatenating output to file D:\MyApp\build\testing\MyApp\app.js
    [INF] merging resources into D:\MyApp\build\testing\MyApp\resources
    [INF] merged 2 resources into D:\MyApp\build\testing\MyApp\resources
    [INF] merging resources into D:\MyApp\build\testing\MyApp
    [INF] merged 18 resources into D:\MyApp\build\testing\MyApp
    [INF] executing compass using system installed ruby runtime
    identical ../css/app.css
    [INF] Copying page resources to D:\MyApp\build\testing\MyApp
    [INF] Writing content to D:\MyApp/build/testing/MyApp/microloader.js
    [INF] Appending content to D:\MyApp/build/testing/MyApp/microloader.js
    [INF] Building output markup to D:\MyApp/build/testing/MyApp/index.html
    [INF] Writing content to D:\MyApp/build/testing/MyApp/index.html
    Produces:
    Code:
    D:\MyApp\build\testing\MyApp\resources\icons\icon-spot~ipad.png
    D:\MyApp\build\testing\MyApp\resources\icons\Icon.png
    D:\MyApp\build\testing\MyApp\resources\icons\Icon@2x.png
    D:\MyApp\build\testing\MyApp\resources\icons\Icon_Android36.png
    D:\MyApp\build\testing\MyApp\resources\icons\Icon_Android48.png
    ...
    This has broken all of my images and other resources after the update -for example in css I wrote url("../resources/images/some_image.png"), now it is broken due to extra "resources" folder.

    My environment:
    * Windows 7 x64
    * Sencha Touch 2.3.x

    My config.cfg:
    Code:
    app.name=SystemMonitor
    
    app.framework=touch
    
    app.classpath=${app.dir}/app.js,${app.dir}/app
    
    # this property specifies a comma separated list of paths containing
    # resources to copy to the build directory
    app.resource.paths=
    
    app.build.dir=${workspace.build.dir}/${app.name}
    
    app.framework.version=2.3.0
    
    app.cmd.version=5.0.1.231
    What's happened with Cmd 5.0.1? Is it OK?

  2. #2
    Sencha Premium Member
    Join Date
    Jan 2013
    Posts
    14
    Vote Rating
    1
    JasonMO is on a distinguished road

      0  

    Default


    It's a known and fixed bug. Use 5.0.2

    http://www.sencha.com/forum/showthre...-Now-Available

Thread Participants: 1