On 05/16/2012 10:11 AM, [email protected] wrote:
> T. I'm new to qooxdoo and I'm trying to figure out if there is a "best
> practice" for creating reusable libraries in
> bigger projects. I've found something about contributions which I
> undestand as something that helps me to distribute
> projects through the qooxdoo svn. You are wondering that I try to
> compile the library...to be honest I don't know what I expect.

As you had been looking at the 'versionlabel' library, I thought you had 
figured out the rest (i.e. how libraries are used), and were just asking 
for a specific skeleton for a library.

>   Obviously
> I can delete the generate.py from the library project as well. This is
> something I conclude from your
> answer.
> Which files and folders do I need for a library ?

The Manifest.json and everything under source/.

>   How can I add the
> library to my project ?

The best is by overriding the "libraries" job in your config.json, and 
adding your library to the sole "library" config key [1] in it. See the 
Feedreader config.json for a sample.

[1] 
http://manual.qooxdoo.org/1.6.x/pages/tool/generator_config_ref.html#library

>   How to make sure that the
> library is added to my builds.

By using a class from the library in your application code, e.g.

      var x = new mylib.Json();

T.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to