db-ddlutils-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Dudziak <tom...@gmail.com>
Subject Re: The writeSchemaSqlToFile Anttask fails
Date Tue, 06 Dec 2005 20:00:00 GMT
On 12/6/05, Fredrik Westermarck <fredrik.westermarck@mdh.se> 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

Mime
View raw message