Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SchemaExportTask Works, but not really

 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I used the SchemaExportTask in my build file to export my mapping files to an SQL script. It works, however, the statements in the .sql file aren't terminated with a ; therefore you can't just pull that file into phpMyAdmin or some other tool to create the database from that file. It complains because of the missing ;. Is there a switch or something I might be missing?
 
Dennis John
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, the delimiter switch. Here is a sample below.

<schemaexport
properties="hibernate.properties"
quiet="no"
text="yes"
drop="no"
delimiter=";"
output="export.sql">
<fileset dir="${src.source.dir}">
<include name="**/*.hbm.xml"/>
</fileset>
</schemaexport>
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Dennis John:
Yes, the delimiter switch. Here is a sample below.

<schemaexport
properties="hibernate.properties"
quiet="no"
text="yes"
drop="no"
delimiter=";"
output="export.sql">
<fileset dir="${src.source.dir}">
<include name="**/*.hbm.xml"/>
</fileset>
</schemaexport>


Missed that one. Perfect, thanks a bunch.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic