File: build.xml

package info (click to toggle)
libhibernate3-java 3.6.10.Final-9%2Bdeb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 35,252 kB
  • sloc: java: 351,526; xml: 24,424; sh: 85; perl: 65; makefile: 24; sql: 6
file content (29 lines) | stat: -rw-r--r-- 1,013 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!-- $Id: build.xml 15105 2008-08-18 19:20:37Z hardy.ferentschik $ -->
<!--
  Hibernate Entity Manager ANT build script.
-->

<project name="HibernateEntityManager" basedir=".">

    <target name="generate-metamodel" depends="uptodate.check" unless="metamodel.build.notRequired">
        <echo>Processing JPA annotations for metamodel generation</echo>
        <mkdir dir="${target.dir}"/>
        <javac srcdir="${src.dir}"
               destdir="${target.dir}"
               failonerror="false"
               fork="true"
               executable="${jdk16_home}/bin/javac"
               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>

</project>