Re: [qooxdoo-devel] Plugging custom code in the loader

2010-04-21 Thread Jean-Noël Rivasseau
Thanks for the detailed reply. See below for some comments In fact, there is a config key ("compile-options/loader-template"[1]) > that allows you to specify a custom loader template. > > [1] > > http://qooxdoo.org/documentation/1.0/tool/generator_config_ref#compile-options > Yes, I had found th

Re: [qooxdoo-devel] Plugging custom code in the loader

2010-04-19 Thread thron7
> If nothing has changed, by the way, it seems like I didn't make myself clear > when we had this discussion a few weeks ago - my point was that I needed to > load custom scripts from the contrib libraries, and I understood you as > saying that this was not possible, they had be be loaded from an a

Re: [qooxdoo-devel] Plugging custom code in the loader

2010-04-19 Thread panyasan
thron7-2 wrote: > > > On 04/18/2010 07:58 PM, Jim Hunter wrote: >> So where exactly do you add this? I have tried making it it's own >> section and that didn't work (build version) then I tried adding it to >> the jobs section and that didn't work either. > > It's a *job* key (like most config

Re: [qooxdoo-devel] Plugging custom code in the loader

2010-04-19 Thread thron7
On 04/18/2010 07:58 PM, Jim Hunter wrote: > So where exactly do you add this? I have tried making it it's own > section and that didn't work (build version) then I tried adding it to > the jobs section and that didn't work either. It's a *job* key (like most config keys), so you have to add it t

Re: [qooxdoo-devel] Plugging custom code in the loader

2010-04-19 Thread thron7
On 04/18/2010 09:50 AM, panyasan wrote: > > Update: "add-script" DOES load the scripts BEFORE qooxdoo - so that's what > you wanted. It doesn't exactly load the script before qooxdoo - The loader code is always loaded first, and as it might contain the boot classes ("compile-options/loader-wit

Re: [qooxdoo-devel] Plugging custom code in the loader

2010-04-19 Thread thron7
On 04/17/2010 03:04 AM, Jean-Noël Rivasseau wrote: > Hi, > > What would be the best way to add some custom code in the loader? > Actually I just need to add a few lines of JS code before the loading of > Qooxdoo begins. In fact, there is a config key ("compile-options/loader-template"[1]) that

Re: [qooxdoo-devel] Plugging custom code in the loader

2010-04-18 Thread panyasan
Here's my config.json structur: { "name": "bibliograph", "include" : [ { "path" : "${QOOXDOO_PATH}/tool/data/config/application.json" }, { "path" : "${QXTRANSFORMER_PATH}/bin/qxtransformer.json" } ], "export" : [ . ], "let" : {

Re: [qooxdoo-devel] Plugging custom code in the loader

2010-04-18 Thread Jim Hunter
So where exactly do you add this? I have tried making it it's own section and that didn't work (build version) then I tried adding it to the jobs section and that didn't work either. Thanks, Jim On Sun, Apr 18, 2010 at 12:50 AM, panyasan wrote: > > Update: "add-script" DOES load the scripts BE

Re: [qooxdoo-devel] Plugging custom code in the loader

2010-04-18 Thread panyasan
Update: "add-script" DOES load the scripts BEFORE qooxdoo - so that's what you wanted. Additionally, there seems like there has been some change in the trunk: if your add // load third-party scripts before loading qooxdoo "common": { "add-script" : [ {

Re: [qooxdoo-devel] Plugging custom code in the loader

2010-04-17 Thread panyasan
Hi JN, the "add-script" generator key could be a solution: http://qooxdoo.org/documentation/1.0/tool/generator_config_ref#add-script although I don't know the exact sequence of loading -- it probably loads *after* the main qooxdoo libraries, which is obviously not what you want. I have been dis

[qooxdoo-devel] Plugging custom code in the loader

2010-04-16 Thread Jean-Noël Rivasseau
Hi, What would be the best way to add some custom code in the loader? Actually I just need to add a few lines of JS code before the loading of Qooxdoo begins. So far the only way I have found is using a custom template for the loader. However this has the disadvantage that I now have to maintain