summaryrefslogtreecommitdiff
path: root/orkbasej/build.xml
blob: 8dfad7f659362dba9b3a0d786762b14cec158ecc (plain)
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
<?xml version="1.0" encoding="ISO-8859-1"?>

<!-- This ant build script creates the hibernate xml mapping files --> 
<!-- NOT FOR USE IN THE GENERAL CASE -->
<!-- use this only when java 5 compiler not available or not wanted -->
<!-- otherwise hibernate annotations support will take care of this -->

<project name="orkbasej" default="hibernate" basedir=".">
    <property name="oreka.root.dir" value="${basedir}/.."/>
    <property name="oreka.lib.dir" value="${oreka.root.dir}/lib"/>
    <property name="oreka.xdoclet.lib.dir" value="${oreka.lib.dir}/xdoclet"/>
	
    <property name="common.java.dir" value="${basedir}/java"/>
	
    <!-- =================================================================== -->
    <!-- Define the xdoclet class path                                               -->
    <!-- =================================================================== -->
    <path id="xdoclet.class.path">
        <fileset dir="${oreka.xdoclet.lib.dir}">
            <include name="*.jar"/>
        </fileset>
    </path>
	
    <!-- =================================================================== -->
    <!-- Initialise                                                          -->
    <!-- =================================================================== -->
    <target name="init">
        <taskdef
           name="hibernatedoclet"
           classname="xdoclet.modules.hibernate.HibernateDocletTask"
           classpathref="xdoclet.class.path"
           />
    </target>
	
    <!-- =================================================================== -->
    <!-- Invoke XDoclet's hibernate                                          -->
    <!-- =================================================================== -->
    <target name="hibernate" depends="init" description="Generate mapping documents (run jar first)">

        <echo>+---------------------------------------------------+</echo>
        <echo>|                                                   |</echo>
        <echo>| R U N N I N G   H I B E R N A T E D O C L E T     |</echo>
        <echo>|                                                   |</echo>
        <echo>+---------------------------------------------------+</echo>

        <hibernatedoclet
            destdir="${common.java.dir}"
            excludedtags="@version,@author,@todo,@see"
            verbose="true">

            <fileset dir="${common.java.dir}">
                <include name="net/sf/oreka/persistent/*.java"/>
            </fileset>

            <hibernate version="2.1"/>
        </hibernatedoclet>
    </target>
</project>