On 05/24/2010 06:33 PM, danovics wrote:
>
> I've begun to play a little with parts.
> What I've found confusing that in the manual the configure part says that I
> have to create a new key "build-scipts" in the config.json under the "jobs"
> and I have to configure my parts inside this key.
> However after running the generate.py source the debugger throw an error
> "parts[i] is undefined" when I'm trying to run the _source_, meanwhile
> running the _build_ (after generating it) has no problems.
> I've looked up the appropriate section in the feedreader app in the sdk
> (1.1) and there I found that in the config.json the parts aren't configured
> under the key "build-script" but under the key "common" in "jobs".
> I've tried this way and it looks like it's working well either running
> source or build.
You are right: the part definition is needed for both the source and the
build jobs. Rather than resorting to "common" I recommend creating your
own declarative parts job, and then use this in your overridden
'source-script' and 'build-script' jobs, e.g. like this:
"myparts" : {
"packages : { ...}
},
"source-build" : {
"extend" : ["myparts"]
}
"build-script" : {
"extend" : ["myparts"]
}
>
> Another thing that I've noticed in feedreader's Application.js is:
> qx.io.PartLoader.getInstance().addListener("partLoaded", function(e) {
> this.debug("part loaded: " + e.getData().getName());
> }, this);
> But when I'm running the feedreaders source I'm not getting any debug
> notices about the parts that were loaded. So at the moment I couldn't really
> test if the part-loading is working or not.
Right, you can open a bug report for this. Meanwhile, you can always
test for the availability of a certain class which is loaded with the
part, e.g. in Firebug console enter "my.custom.part1.ClassA" and see if
you get back something sensible.
T.
------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel