On 12/6/05, Fredrik Westermarck <[EMAIL PROTECTED]> 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.

<snip>

> 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.
Come to think of it, I will change this task so that alterdatabase is
only checked if a datasource was specified.

Tom

Reply via email to