Thomas Dudziak wrote:
I have been trying to generate a DDL file from a XML file from within
ant without succeeding. I'm using ddlutils with SVN rev 354492.

BUILD FAILED
D:\code\ddlutilstest\build.xml:18: No database specified.

The error message indicates that I have not configured a DataSource,
which is correct, but as far as I can tell the task
'writeSchemaSqlToFile' does not require a DataSource.

You get this error because per default the task creates SQL for
altering a database but you did not specify one. Simply add
alterdatabase="false" to the writeSchemaSqlToFile subtask and it
should work.

Yes, it worked fine with the suggested attribute. Thank you!

Come to think of it, I will change this task so that alterdatabase is
only checked if a datasource was specified.

That does seem to be a bit more logical - at least to me. :)

--
Regards,
Fredrik Westermarck


Reply via email to