一开始没有在<schemaexport />里加
quiet="no" text="true" drop="no" delimiter=";"
output="${build.class.dir}/schema-export.sql"
运行ant提示失败
下面是正确的:
参考: http://mzrj.itpub.net/post/2660/11489
quiet="no" text="true" drop="no" delimiter=";"
output="${build.class.dir}/schema-export.sql"
运行ant提示失败
下面是正确的:
<
target
name
="schema"
depends
="build"
>
< taskdef name ="schemaexport" classname ="org.hibernate.tool.hbm2ddl.SchemaExportTask" >
< classpath refid ="project.classpath" />
</ taskdef >
< schemaexport config ="${src.java.dir}/hibernate.cfg.xml"
quiet ="no" text ="true" drop ="no" delimiter =";"
output ="${build.class.dir}/schema-export.sql" />
</ target >
< taskdef name ="schemaexport" classname ="org.hibernate.tool.hbm2ddl.SchemaExportTask" >
< classpath refid ="project.classpath" />
</ taskdef >
< schemaexport config ="${src.java.dir}/hibernate.cfg.xml"
quiet ="no" text ="true" drop ="no" delimiter =";"
output ="${build.class.dir}/schema-export.sql" />
</ target >
参考: http://mzrj.itpub.net/post/2660/11489
本文介绍了一个关于使用Ant进行部署时遇到的问题及解决方案。问题出现在<schemaexport/>标签配置中,通过调整属性quiet、text、drop等,成功解决了部署失败的问题,并给出了正确的配置示例。

被折叠的 条评论
为什么被折叠?



