Results 1 to 3 of 3

Thread: Resources not going to --destination dir on build

  1. #1
    Sencha Premium Member
    Join Date
    Jun 2015
    Location
    Melbourne, Australia
    Posts
    56
    Answers
    6

    Default Resources not going to --destination dir on build

    I'm having an issue when building my application in that not all of the resources are going to the resources folder within my specified --destination (webapp\senchabuild).

    The theme resources are going the correct directory 'senchabuild' but the contents of my webapp\resources are going into webapp\build\production\myapp\resources\

    When I change the output: {"resources": "myresources"} in the app.json then it is reflected when I run the build and also the files/folders I list under "resources" : [{ "path": "mypath"}] are also copied (but into the wrong location).

    I would greatly appreciate any help.

    Thanks Ben


    From the app.json file:

    PHP Code:
    "output": {
            
    //"base": "${workspace.build.dir}/${build.environment}/${app.name}",
            
    "page""../index.jsp",
            
    "manifest""${build.id}.json",
            
    "css""${app.output.resources}/${app.name}-all.css",
            
    "js""all-classes.js",
            
    "resources""resources",
            
    "appCache": {
                
    "enable"false
            
    },
            
    "microloader": {
                
    "embed"false
            
    }
    },

    /**
    * Extra resources to be copied into the resource folder as specified in the "resources"
      * property of the "output" object. Folders specified in this list will be deeply copied.
    */
    "resources": [
            {
                
    "path""resources"
            
    },
            {
                
    "path""${toolkit.name}/resources"
            
    },
        ], 

  2. #2
    Sencha Premium Member
    Join Date
    Jun 2015
    Location
    Melbourne, Australia
    Posts
    56
    Answers
    6

    Default

    I found a solution/workaround:

    Previously in my Ext5 application the 'output base' was not set and it appears by default the resources were placed in the directory set by the --destination argument (when running 'sencha build --clean --destination mydestination...').

    However is seems that now if the base is not set it still just goes to the build/production/Myapp directory.

    Setting the base to the same location that is used in the build command works, but I'm guessing this is not correct and maybe a bug?

    e.g.

    PHP Code:
    "output": {
            
    //"base": "${workspace.build.dir}/${build.environment}/${app.name}",
            
    "base""senchabuild"

  3. #3
    Sencha Premium Member
    Join Date
    May 2011
    Posts
    33

    Default

    This problem still exists. I ran into the same issue with Sencha Cmd v6.1.2.15

Similar Threads

  1. Replies: 3
    Last Post: 20 May 2015, 2:18 PM
  2. Replies: 3
    Last Post: 16 Jul 2014, 9:15 AM
  3. Replies: 0
    Last Post: 9 Apr 2014, 10:38 AM
  4. Replies: 0
    Last Post: 26 Feb 2013, 5:16 PM
  5. Replies: 5
    Last Post: 16 Mar 2012, 5:47 AM

Posting Permissions

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