I’m toying with the idea of taking a bunch of common library-esque code I use (including a whole bunch of SPGL stuff), refactoring it a little and making it availble as a proper library (complete with tests, docs, etc. etc.).
The idea would not be a single big library, but a range of smaller modules which can be used independantly so people could pick and choose which bits they liked and which they could do their own thing. Currently the whole lot of code clocks in at about 0.6Mb, which I think is a little big if you only want one or two of the smaller chunks.
So I’m trying to figure out a way of dividing up the modules in a nice way. For bigger libraries I find sepearate projects in Eclipse work just fine - things stay separate, and dependancies are strictly enforeced. However the modules I’m thinking of would be too small for separate projects to make sense, and would make development a right pain to be switching back and forth between projects all the time.
Once alternative would be to have ant scripts which produce a collection of jars rather than one big one. However that wouldn’t enforce dependancies like different projects would. Does anyone know of a way of testing that an individual jar has all the classes and dependancies it needs? Or is there anothe way to organise this kind of structure without needing that?
Cheers