Hello
Migrating a 0.8.3 application to a 1.1 application, my images disappear in the build version (but not in the source version), so I digg and could not solve the problem.

According to the manual, the final URI is composed of "to_libraryroot [1] + library_internal_path [2] + resource_path [3]" /"For the *build* version, dedicated keys /uris/script <http://qooxdoo.org/documentation/1.1/tool/generator_config_ref#compile-options>/ and /uris/resource <http://qooxdoo.org/documentation/1.1/tool/generator_config_ref#compile-options>/ are available (as there is virtually only one "library"). The values of both keys cover the scope of components [1] + [2] in the first figure. "
/
Let's take an example in my case (an image comes from a given library )
[1 + 2 ] In my "compile" options
"uris" :
{
    "script"   : "script",
    "resource" : "resource"
},

=> "resource"

[3] In my code (here the ICON static is used as a simple button icon source)
  statics : {
      LABEL : "Test Results",
      ICON : "org.argeo.slc.ria/office-chart.png"
  },
=> "org.argeo.slc.ria/office-chart.png"

All are well copied in the resources folder, but the resulting URI (I can detect network errors in Firebug) is
"*org.argeo.slc.ria/office-chart.png*"
instead of
"*resource/org.argeo.slc.ria/office-chart.png*"

I must misunderstand something... Thank's a lot for your help, I join my config.json and a Manifest.json of one my librairies (all are similar). I call the jobs slc-build and slc-source to respectively compile build and source versions of my application.

Charles



{
  "name"    : "ria",

  "include" :
  [
    {
      "path" : "${QOOXDOO_PATH}/component/apiviewer/api.json",
      "as"   : "apiconf"
    },
    {
      "path" : "${QOOXDOO_PATH}/component/testrunner/testrunner.json",
      "as"   : "testrunner"
    }    
  ],
  
  "let" :
  {
    "APPLICATION"  : "org.argeo.ria",
    "QOOXDOO_PATH" : "src/qooxdoo-sdk",
    "QXTHEME"      : "org.argeo.ria.theme.RiaTheme",
    "API_EXCLUDE"  : ["qx.legacy.*"],
    "LOCALES"      : [ "en" ],
    "ROOT"         : "src/argeo-ria-src",
        "BUILD_PATH"   : "target/classes/argeo-ria",
        "RIA_LIB_PATH" : "src/argeo-ria-lib",
        "RIA_LIB_URI"  : "../argeo-ria-lib",
        "CACHE"            : "cache" ,
        "CUSTOM_PACKAGE" : "org.argeo.slc.web"
  },

  "jobs" : 
  {
    "common" :
    {
      "library" :
      [
        {
          "manifest" : "${QOOXDOO_PATH}/framework/Manifest.json",
          "uri"          : "../qooxdoo-sdk/framework"
        },
        {
          "manifest" : "${RIA_LIB_PATH}/slc/Manifest.json",
          "uri"      : "${RIA_LIB_URI}/slc"          
        },
        {
          "manifest" : "${RIA_LIB_PATH}/slc-web/Manifest.json",
          "uri"      : "${RIA_LIB_URI}/slc-web"          
        },
        {
          "manifest" : "${RIA_LIB_PATH}/jcr/Manifest.json",
          "uri"      : "${RIA_LIB_URI}/jcr"          
        },
        {
          "manifest" : "${RIA_LIB_PATH}/security/Manifest.json",
          "uri"      : "${RIA_LIB_URI}/security"          
        },
        {
          "manifest" : "${ROOT}/Manifest.json",
          "uri"          : "."
        }
      ],

      "include" :
      [
        "${APPLICATION}.Application",
        "${CUSTOM_PACKAGE}.*",
        "${QXTHEME}"
      ],

      "cache" :
      {
        "compile" :  "${CACHE}"
      },

      "settings" :
      {
        "qx.version"     : "${QXVERSION}",
        "qx.theme"       : "${QXTHEME}",
        "qx.application" : "${APPLICATION}.Application",
        "ria.branding.splashScreen"             : 
"org.argeo.security.ria/ArgeoLogo.png",
        "ria.branding.applicationTitle" : "Slc RIA",
        "ria.auth.enableAuth"           : "true",
        "ria.auth.credentialsURI"       : 
"/org.argeo.security.webapp/getCredentials.ria",
        "ria.auth.loginURI"                     : 
"/org.argeo.security.webapp/login.ria",
        "ria.auth.logoutURI"            : 
"/org.argeo.security.webapp/logout.ria",
        "ria.StartupPerspective":"org.argeo.slc.web.LauncherPerspective"        
        
      }
    },

    // -- source jobs --------------------------------------------------

    "source-script" :
    {
      "extend" : ["common"],

      "compile-options" :
      {
        "paths/file" : "${ROOT}/script/${APPLICATION}.js",
        "code/locales" : "${LOCALES}",
        "paths/root" : "${ROOT}",
        "paths/resource": "resource",
        "paths/gzip" : false
      },
      
      "compile" : { "type" : "source" }
    },


    "slc-source" :
    {
      "run" :
      [
        "source-script"
      ]
    },

    // -- build jobs --------------------------------------------------

    "build-script" :
    {
      "extend" : ["common"],

      "variants" :
      {
        "qx.debug" : ["off"]
      },

      "compile-options" :
      {
                  "paths" :
                  {
                "file" : "${BUILD_PATH}/script/${APPLICATION}.js",
                    "gzip"     : false
                  },
                  "uris" :
                  {
                    "script"   : "script",
                    "resource" : "resource"
                  },
                  "code" :
                  {
                    "format"   : true,
                    "locales"  : "${LOCALES}",
                    "optimize" : ["variables", "basecalls", "privates", 
"strings"]
                  }
      },
      "compile" : { "type" : "build" }
    },


    "build-resources":
    {
      "extend" : ["common"],

      "copy-resources" :
      {
        "target"          : "${BUILD_PATH}",
        "resource-filter" : true
      }
    },

    "my-build-files" :
    {
      "extend" : ["common"],

      "copy-files" :
      {
        "files" :
        [
          "index.html"
        ],
                "source" : "${ROOT}",
        "target" : "${BUILD_PATH}"
      }
    },
        
    "slc-build" :
    {
      "run" :
      [
        "build-script",
        "my-build-files",
        "build-resources"
      ]
    },
    
    "slc-api" :
    {
      "extend" : ["apiconf::build"],

      "let" :
      {
        "APIVIEWER_ROOT" : "${QOOXDOO_PATH}/component/apiviewer",
        "BUILD_PATH" : "./target/site/argeo-ria-api/",
        "API_INCLUDE" : ["${APPLICATION}.*", "${CUSTOM_PACKAGE}.*"]
      },

      "library" :
      [
        {
          "manifest" : "${ROOT}/Manifest.json",
          "uri"      : ".."
        },
        {
          "manifest" : "${RIA_LIB_PATH}/slc-web/Manifest.json",
          "uri"      : "${RIA_LIB_URI}/slc-web"
        },
        {
          "manifest" : "${RIA_LIB_PATH}/jcr/Manifest.json",
          "uri"      : "${RIA_LIB_URI}/jcr"
        },
        {
          "manifest" : "${RIA_LIB_PATH}/security/Manifest.json",
          "uri"      : "${RIA_LIB_URI}/security"
        },
        {
          "manifest" : "${RIA_LIB_PATH}/slc/Manifest.json",
          "uri"      : "${RIA_LIB_URI}/slc"
        }        
      ]
    },
    
    "slc-test" :
    {
      "extend" : ["testrunner::build"],

      "let" :
      {
        "TESTRUNNER_ROOT" : "${QOOXDOO_PATH}/component/testrunner",
        "TEST_INCLUDE"    : "${APPLICATION}.test.*",
        "BUILD_PATH"      : "./target/site/argeo-ria-test/"
      },

      "library" :
      [
        {
          "manifest" : "${ROOT}/Manifest.json",
          "uri"      : ".."
        }
      ]
    }
    
        
  }
}
{
  "info" : 
  {
    "name" : "org.argeo.slc.web",

    "summary" : "Slc Web Application",
    "description" : "RIA Implementation for SLC Web",
    
    "homepage" : "http://www.argeo.org/";,

    "license" : "LGPL",
    "authors" : 
    [
      {
        "name" : "Charles du Jeu",
        "email" : "[email protected]"
      }
    ],

    "version" : "trunk",
    "qooxdoo-versions": ["0.8"]
  },
  
  "provides" : 
  {
    "namespace"   : "org.argeo.slc.web",
    "encoding"    : "utf-8",
    "class"       : "class",
    "resource"    : "resource",
    "translation" : "translation",
    "type"        : "library"
  }
}

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to