db-ddlutils-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philip Mark Donaghy" <philip.dona...@gmail.com>
Subject Re: problem writing sql to file
Date Wed, 12 Apr 2006 09:06:22 GMT
I think I had this problem try setting to false alterDatabase="false"

<writeSchemaSqlToFile alterDatabase="false" outputFile="target/database.ddl"/>

Phil

On 4/12/06, Ken Weiner <kweiner@gmail.com> wrote:
> When I run the <ddlToDatabase> ant task, my schema is created just
> fine, but even though I have a <writeSchemaSqlToFile
> outputFile="schema.sql"/> subelement, I end up with a schema.sql file
> that is empty.
>
> I looked at the code in WriteSchemaSqlToFileCommand.java and saw that
> a FileWriter is set on the schema builder via:
>
> platform.getSqlBuilder().setWriter(writer);
>
> This writer seems to get replaced by a StringWriter when any of the
> get___SQL() methods in PlatformImplBase.java run.
>
> Has anyone else had this problem?  I don't understand how the
> FileWriter would receive any content.  Is this a bug?
>
> -Ken
>


--
Philip Donaghy
donaghy.blogspot.com del.icio.us/donaghy/philip
Skype: philipmarkdonaghy
Office: +33 5 56 60 88 02
Mobile: +33 6 20 83 22 62

Mime
View raw message