`

build--Hiberane -hbm

阅读更多
<?xml version="1.0" encoding="ISO-8859-1"?> 

<project name="zhenjwtest" default="hibernatedoclet" basedir=".">  

   <property name="lib.dir" value="${basedir}/WebRoot/WEB-INF/lib" /> 
	<property name="src.dir" value="${basedir}/src" />
	<property name="classes.dir" value="${basedir}/bin" />
	<property name="xdoclet.lib" value="${lib.dir}/xdoclet" />  
	<property name="app.home" value="." />
	<property name="app.name" value="pms" />
	<property name="src.dir" value="${app.home}/src" />
	
	<path id="project.class.path">
	    <fileset dir="${lib.dir}">
	        <include name="**/*.jar"/>
	    </fileset>
	    <pathelement path="${classes.dir}" /> 
               
	</path>
	
	
	<path id="xdoclet.classpath">
		<fileset dir="${xdoclet.lib}">
			<include name="*.jar" /> 
		</fileset>
	</path>
	<!-- =================================================================== -->
	<!-- Initialise                                                          -->
	<!-- =================================================================== -->
	<target name="init">
		<tstamp>
			<format property="TODAY" pattern="d-MM-yy" />
		</tstamp>
		<taskdef name="hibernatedoclet"
			classname="xdoclet.modules.hibernate.HibernateDocletTask"
			classpathref="xdoclet.classpath" />
	</target>
	<!-- =================================================================== -->
	<!-- The "hibernatedoclet" target generates Hibernate mapping files      -->
	<!-- based on XDoclet marked-up Plain Old Java Object (POJO)             -->
	<!-- =================================================================== -->
	<target name="hibernatedoclet" depends="init"
		unless="hibernatedoclet.unnecessary"
		description="Generate Hibernate mapping files">

		<taskdef name="hibernatedoclet"
			classname="xdoclet.modules.hibernate.HibernateDocletTask"
			classpathref="project.class.path" />

		<!-- generate hibernate files -->
		<hibernatedoclet destdir="${src.dir}"
			mergedir="${src.dir}" excludedtags="@version,@author,@todo,@see"
			addedtags="@xdoclet-generated at ${TODAY}" force="false"
			verbose="false">
			<fileset dir="${src.dir}">
				<include name="**/DataStruct/*.java"/>
			</fileset>
			<hibernate version="3.0" xmlencoding="utf-8" />
		</hibernatedoclet>
	</target>	
	
	
</project> 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics