Results 1 to 4 of 4

Thread: Build error on copying resources when custom resources path is set in app.json

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Jan 2015
    Posts
    3

    Default Build error on copying resources when custom resources path is set in app.json

    Hello there,

    I'm trying to customize the resources and js output paths by setting them in app.json. Both resources folder and app.js are created correctly by the build process, but it failed at copying page resources because it seems to be looking at the wrong folder.

    Here is the directory structure I'm trying to create:

    Code:
    build
    |- production
        |- TestApp
            |- xxxx    <--- custom folder for js and resources output
            |   |- resources
            |   |- app.js
            |- app.json
            |- index.html
    Here is my configuration option for output in app.json that should make the directory structure happen:

    Code:
        "output": {
            "base": "${workspace.build.dir}/${build.environment}/${app.name}",
            "js": "xxxxx/app.js",
            "resources": "xxxxx/resources"
        },

    And here is the build error I'm getting when running 'sencha app build -c production':

    Code:
    ...
    [INF] Copying page resources to C:\Development\Test\testapp\build\production\Tes
    tApp
    [ERR]
    [ERR] BUILD FAILED
    [ERR] com.sencha.exceptions.BasicException: Cannot find file : C:\Development\Te
    st\testapp\build\production\TestApp\resources\TestApp-all.css
    [ERR]
    [ERR] Total time: 56 seconds
    [ERR] The following error occurred while executing this line:
    C:\Development\Test\testapp\.sencha\app\build-impl.xml:396: The following error
    occurred while executing this line:
    C:\Development\Test\testapp\.sencha\app\page-impl.xml:243: com.sencha.exceptions
    .BasicException: Cannot find file : C:\Development\Test\testapp\build\production
    \TestApp\resources\TestApp-all.css
    Based on the error, I took a look at page-impl.xml, and noticed that the output path for app-resources is set to ${build.out.base.path}. I thought that might be the problem, but changing that to ${build.out.resources.path} produced another incorrect path, and so that wasn't it.


    I think I'm close to getting this to work. Perhaps there is another configuration property that I can set, although based on online documentation and the comments in app.json, I think I'm setting the right values.


    Any help or suggestions would be greatly appreciated.

    Sencha Cmd version: v5.1.2.52
    Last edited by ooboobay; 13 May 2015 at 6:01 AM. Reason: Forgot to include the output config option set in app.json

Similar Threads

  1. resources path in app.json is ignored
    By mindlab in forum Sencha Cmd
    Replies: 0
    Last Post: 30 Apr 2015, 4:51 AM
  2. Replies: 0
    Last Post: 9 Apr 2014, 10:38 AM
  3. Custom resources path for build
    By suamikim in forum Sencha Cmd
    Replies: 0
    Last Post: 18 Mar 2014, 12:32 AM
  4. Replies: 0
    Last Post: 26 Feb 2013, 5:16 PM
  5. Replies: 5
    Last Post: 16 Mar 2012, 5:47 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •