On 01/28/2013 11:01 AM, Cajus Pollmeier wrote:
>
> Then it looks that there's something mixed up on my side. I've a component
> that uses "add-script", but I've to include the same "add-script" to the
> application that uses that component to make it work - same for source*/build.
> For some reason the add-script resource doesn't seem to be
> included/copied/whatever automatically.

That's right. On the one hand you have the library with its resources 
(classes, images, ...). They basically just "sit around" and know 
nothing about adding scripts or such things. This includes the important 
aspect of unresolved dependencies.

On the other hand you have the Generator config files like config.json. 
They add a whole bunch of information which is relevant for *building* a 
specific app (so they are concerned with actually doing something with 
the libraries). Here lives the information about adding scripts, but 
also about additional libraries, which all help to resolve pending 
dependencies in a particular piece of library code. (One advantage of 
this approach is that you don't need to "burn in" the information about 
additional code into the requiring library, another that the using 
application can choose which library to use to fullfil such requirements).

This latter knowledge has to be provided for every job that uses a 
particular library, so if you have three different apps that uses the 
same library, and this library needs to have a script added for it to 
work, all the apps have to add the same "add-script" key in their build 
configs (source and build). There is some consideration going on about 
supporting such dependencies automatically [1][2], but that's not 
available yet.

T.

[1] http://bugzilla.qooxdoo.org/show_bug.cgi?id=3339
[2] http://bugzilla.qooxdoo.org/show_bug.cgi?id=1603


------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to