[OpenSER-Devel] trunk compilation warning

Klaus Darilion klaus.mailinglists at pernau.at
Thu Oct 18 12:02:57 CEST 2007



Henning Westerholt schrieb:
> On Wednesday 17 October 2007, Dan Pascu wrote:
>>> [..]
>> I'd like to come back to this issue a bit, because I think this can be
>> done better.
>>
>> My idea is that instead of having a fixed list of db schemas to build,
>> that are specified in the Makefile, we should build any db schema
>> contained in a file that matches the pattern openser-*.xml
>> With this is very easy for someone to add extra db schemas for extension
>> modules without any need to include some extra.xml that is not present.
>> All one has to do is drop in an openser-mymodule.xml file and it will be
>> automatically build. If it's not there no warning will be issued.
>>
>> This approach has another advantage. It allows me to define the db schemas
>> for different modules/extensions in different files. With extra.xml I'm
>> forced to put them all together in a single file, which is suboptimal
>> (just imagine I have multiple extensions but I do not want to deliver
>> them all together in all cases, which will require me to manually edit
>> extra.xml for each specific case).
>>
>> If there are no objections against this, I'll go ahead and do this.
> 
> Hello Dan,
> 
> the current approach has the advantage that it allows someone to specify which 
> tables he want to use in the Makefile, other tables are not generated.


What about adding a directory db/schema/extra and every table definition 
put into this directory will be generated without the need to specify in 
the Makefile?

klaus



More information about the Devel mailing list