一开始没有在<schemaexport />里加
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>
参考:
http://mzrj.itpub.net/post/2660/11489
posted on 2007-03-27 20:58
流浪汗 阅读(589)
评论(0) 编辑 收藏 所属分类:
OpenSource