forked from hibernate/hibernate-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
89 lines (68 loc) · 2.97 KB
/
build.xml
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<!--
HibernateTools ANT build script.
-->
<project name="HibernateTools" default="dist" basedir=".">
<!-- Name of project and version, used to create filenames -->
<property name="Name" value="Hibernate Tools"/>
<property name="name" value="hibernate-tools"/>
<property name="version" value="3.4.0.Beta2"/>
<property name="javadoc.packagenames" value="org.hibernate.tool"/>
<property name="copy.doc" value="true"/>
<import file="../common/common-build.xml"/>
<property name="jdbc.driver.jar" location="lib/jdbc/hsqldb.jar"/>
<path id="testsrc.path">
<pathelement location="${test.dir}"/>
<pathelement location="src/testsupport"/>
</path>
<path id="junit.moduleclasspath">
<pathelement location="etc"/>
<pathelement location="lib/testlibs/org.eclipse.jdt.core_3.1.0.jar"/>
<!-- remove hibernate-annotations.jar when migrating to maven -->
<pathelement location="lib/testlibs/hibernate-jpa-2.0-api-1.0.0.Final.jar"/>
<pathelement location="${jdbc.driver.jar}"/>
<path refid="testsrc.path"/>
<pathelement location="${java.home}\..\lib\tools.jar"/>
</path>
<!-- set global properties for this build -->
<property name="template.dir" value="src/templates"/>
<property name="dist.template.dir" value="${dist.dir}/src/templates"/>
<target name="copysource" description="Copy sources to dist dir" depends="common-build.copysource">
<mkdir dir="${dist.template.dir}"/>
</target>
<target name="junit">
<delete dir="testdb" failonerror="yes"/>
<antcall target="common-build.junit"/>
</target>
<target name="compile" depends="common-build.compile">
<copy todir="${classes.dir}">
<fileset dir="${template.dir}"/>
</copy>
<copy todir="${classes.dir}">
<fileset dir="${src.dir}" includes="**/*jtidy.properties"/>
</copy>
</target>
<target name="compiletest" depends="common-build.compiletest">
<copy todir="${testclasses.dir}">
<fileset dir="src/test">
<exclude name="**/*.java"/>
</fileset>
</copy>
<copy todir="${testclasses.dir}">
<fileset dir="src/testsupport"/>
</copy>
<copy todir="${testclasses.dir}">
<fileset dir="src/testoutputdependent"/>
</copy>
<copy todir="${testclasses.dir}">
<fileset dir="${src.dir}" includes="**/*jtidy.properties"/>
</copy>
</target>
<target name="dist" depends="jartest,common-build.dist"/>
<!-- <target name="genjar" depends="init">
<taskdef resource="genjar.properties" classpath="C:\work\products\GenJar\genjar.jar"/>
<genjar jarfile="${hibernate-core.jar}">
<class name="org.hibernate.impl.SessionImpl"/>
<classpath id="lib.class.path"/>
</genjar>
</target> -->
</project>