隨筆-153  評論-235  文章-19  trackbacks-0
          一開始沒有在<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 流浪汗 閱讀(603) 評論(0)  編輯  收藏 所屬分類: OpenSource
          主站蜘蛛池模板: 武功县| 故城县| 宁都县| 方山县| 靖西县| 固始县| 柳江县| 呼图壁县| 阿拉善盟| 常宁市| 潮安县| 萨嘎县| 鹰潭市| 右玉县| 河北区| 兴仁县| 惠州市| 土默特右旗| 阜城县| 临湘市| 大洼县| 蓬安县| 嘉定区| 南丹县| 舒兰市| 潢川县| 甘谷县| 乌拉特前旗| 达拉特旗| 红安县| 新源县| 阿拉善右旗| 聂拉木县| 凌海市| 连江县| 繁昌县| 大足县| 龙里县| 河池市| 丰城市| 靖宇县|