2008-11-03 07:55:04 -05:00
|
|
|
<!-- $Id: build.xml 15105 2008-08-18 19:20:37Z hardy.ferentschik $ -->
|
|
|
|
<!--
|
|
|
|
Hibernate Entity Manager ANT build script.
|
|
|
|
-->
|
|
|
|
|
|
|
|
<project name="HibernateEntityManager" basedir=".">
|
2010-01-07 22:40:18 -05:00
|
|
|
|
|
|
|
<target name="generate-metamodel" depends="uptodate.check" unless="metamodel.build.notRequired">
|
|
|
|
<echo>Processing JPA annotations for metamodel generation</echo>
|
2010-01-07 22:51:47 -05:00
|
|
|
<mkdir dir="${target.dir}"/>
|
2010-01-07 22:40:18 -05:00
|
|
|
<javac srcdir="${src.dir}"
|
|
|
|
destdir="${target.dir}"
|
|
|
|
failonerror="false"
|
|
|
|
fork="true"
|
|
|
|
target="1.5"
|
|
|
|
classpath="${classpath}">
|
|
|
|
<compilerarg value="-proc:only"/>
|
|
|
|
</javac>
|
|
|
|
<touch file="${target.dir}/.staleflag"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="uptodate.check">
|
|
|
|
<uptodate property="metamodel.build.notRequired" targetfile="${target.dir}/.staleflag">
|
|
|
|
<srcfiles dir="${src.dir}" includes="**/*.java"/>
|
|
|
|
</uptodate>
|
|
|
|
</target>
|
|
|
|
|
2008-11-03 07:55:04 -05:00
|
|
|
</project>
|