Thomas Dudziak wrote:

The xdoclet ojb module can generate both the repository descriptor and a
torque database schema. Since your database (MySQL it seems) is supported
by Torque, you can use it to push the database schema into the database
(see the xdoclet ojb module docs, there is a short example on how to do
this). You can even have data in a separate xml file that torque imports
into the database (there are targets in the torque build file -
build-torque.xml - that generate the dtd for this data xml file, and that
import/export the data xml file).


I can't seem to find any manual pages for these Torque tasks (they arn't in Apache Ant's manual, and the torque site just has a list with oneliner descriptions). I'm probably blind or something... Do you have a pointer? I see an xdocs directory but nothing in it seems to be associated with a style sheet, so it is difficult to read the plain xml. I suppose maybe they expect me to download it and generate my own set of docs, but I much prefer online docs if they are out there (somewhere)

-Gus

You can also invoke the ant targets from code, e.g. at runtime, though
this is a bit more tricky (invoking ant from within a program, that is). I
do that in the unit tests for the xdoclet ojb module.

Tom


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]






--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to