Jean-Noël Rivasseau wrote:
> Thanks Christian, it worked very well. Now for my next problem, I have 
> this in my config.json:
>
>         "libraries":
>         {
>             "library":
>             [
>                 {
>                     "manifest": "Manifest.json",
>                     "uri": "http://static.example.com/js/editor/";
>                 },
>
>                 {
>                     "manifest": "${QOOXDOO_PATH}framework/Manifest.json",
>                     "uri": "http://static.example.com/qooxdoo/framework/";
>                 },
>
>                 {
>                     "manifest": "/opt/UploadWidget/Manifest.json",
>                     "uri": "http://static.example.com/UploadWidget/";
>                 }
>             ]
>         },
>
> The generator correctly picks this up when doing a source, but when 
> doing a build, the loader script does not have the correct URIs. Am I 
> doing something wrong or is this a bug?
>

Jean-Noel,

for the build version, the generator grabs all the necessary parts of 
each library and put them together into the build/* directory. So there, 
the library boundaries are blurred, all is coalesced into one big, 
self-contained application. It wouldn't make much sense to maintain 
different URIs for different libraries anymore.

What you can do is tweak the ULRs to the different parts of the build 
version, using the compile-dist config key:

"compile-dist" :
{ 

  "uris" :
  {
    "script"   : "http://static.example.com/myApp/script";,
    "resource" : "http://static.example.com/myApp/resource";
  }
}


See 
http://qooxdoo.org/documentation/0.8/generator_config_ref#compile-dist 
for details. You could e.g. put this key definition into a custom 
"build-script" job, to make it effective when you invoke generate.py build.


HTH,
Thomas

>
> On Fri, Jun 26, 2009 at 8:33 AM, Christian Schmidt 
> <[email protected] <mailto:[email protected]>> wrote:
>
>     Hi Jean-Noel,
>
>     If you never want to copy a HTML file, you can remove the
>     "build-files"
>     job from the run statement of the "build" job.
>
>     Use this line off code in your config.json to remove the "build-files"
>     job from the run statement:
>     "build" :
>     {
>       "=run" :
>       [
>         "build-resources",
>         "build-script"
>      ]
>     }
>
>     I think that's it. (I'm not a generator expert and I would try
>     this first)
>
>     Cheers,
>     Chris
>
>     Jean-Noël Rivasseau schrieb:
>     > Hi all,
>     >
>     > When I tried to build my app today (first time), I had an initial
>     > error because "index.html" was not present in the source folder. I
>     > dont have this index.html, and dont need it. I created a dummy empty
>     > file just so that the build finished, but is there a way to
>     avoid this
>     > problem by configuring something somewhere?
>     >
>     > I also had a much more seriours problem, than I analyzed, and which
>     > resulted in
>     >
>     > http://bugzilla.qooxdoo.org/show_bug.cgi?id=2514
>     >
>     > Jean-Noel
>     >
>     ------------------------------------------------------------------------
>
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>   

------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to