|
|
@@ -0,0 +1,50 @@
|
|
|
+<?xml version="1.0" encoding="UTF-8"?>
|
|
|
+
|
|
|
+
|
|
|
+<project name="mwdao" default="jar" basedir=".">
|
|
|
+
|
|
|
+ <property name="src" location="src"/>
|
|
|
+ <property name="lib" location="../SharedLib"/>
|
|
|
+ <property name="rsc" location="src/main/resources"/>
|
|
|
+ <property name="bin" location="bin"/>
|
|
|
+
|
|
|
+ <path id="compile.class.path">
|
|
|
+ <fileset dir="${lib}">
|
|
|
+ <include name="*.*"/>
|
|
|
+ </fileset>
|
|
|
+ </path >
|
|
|
+
|
|
|
+
|
|
|
+ <target name="jar">
|
|
|
+ <javac debug="true" srcdir="${src}" destdir="${bin}" includeantruntime="true">
|
|
|
+ <classpath>
|
|
|
+ <path refid="compile.class.path"/>
|
|
|
+ </classpath>
|
|
|
+ </javac>
|
|
|
+ <copy todir="${bin}\hbm" >
|
|
|
+ <fileset dir="${src}\hbm">
|
|
|
+ </fileset>
|
|
|
+ </copy>
|
|
|
+ </target>
|
|
|
+
|
|
|
+ <target name="hibernate-java-mwtemp" >
|
|
|
+ <taskdef name="hibernatetool" classname="org.hibernate.tool.ant.HibernateToolTask">
|
|
|
+ <classpath>
|
|
|
+ <fileset dir="${lib}">
|
|
|
+ <include name="*.jar"/>
|
|
|
+ <exclude name="${ant.project.name}.jar"/>
|
|
|
+ </fileset>
|
|
|
+ </classpath>
|
|
|
+ </taskdef>
|
|
|
+ <hibernatetool destdir="${src}">
|
|
|
+ <classpath>
|
|
|
+ <path location="${rsc}"/>
|
|
|
+ </classpath>
|
|
|
+ <configuration configurationfile="${rsc}/hibernate-mwtemp.cfg.xml" />
|
|
|
+ <hbm2java/>
|
|
|
+ </hibernatetool>
|
|
|
+
|
|
|
+ </target>
|
|
|
+
|
|
|
+
|
|
|
+</project>
|