forked from genepattern/genepattern-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_ddl.xml
39 lines (33 loc) · 1.67 KB
/
build_ddl.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
<project basedir="." default="export.ddl" name="hibernatetool">
<description>
Ant project which generates DDL from Hibernate configuration.
To generate different DDL for Oracle you need to edit the hibernate.cfg.xml file.
By default, it generates DDL for HSQLDB.
</description>
<!-- this project depends on the Eclipse Hibernate plugin -->
<property name="eclipse.plugins" location="/Broad/Applications/Eclipse/app/eclipse_3.7_indigo/plugins" />
<property name="hibernate.plugin.lib.dir" location="${eclipse.plugins}/org.hibernate.eclipse_3.4.0.v20110827-1315-H431-M3/lib" />
<path id="toolslib">
<fileset dir="${hibernate.plugin.lib.dir}/tools" includes="*.jar "/>
<fileset dir="${hibernate.plugin.lib.dir}/annotations" includes="*.jar "/>
<fileset dir="${hibernate.plugin.lib.dir}/hibernate" includes="*.jar "/>
</path>
<taskdef name="hibernatetool"
classname="org.hibernate.tool.ant.HibernateToolTask"
classpathref="toolslib" />
<target name="export.ddl">
<echo>generating ddl for GP DB schema ... </echo>
<hibernatetool destdir=".">
<classpath>
<path refid="toolslib"/>
<pathelement location="./website/WEB-INF/classes" />
</classpath>
<!--
- Note: to use this script you must make a copy of the hibernate.cfg.xml file,
- manually add the mappings back to the file.
-->
<annotationconfiguration configurationfile="src/hibernate.cfg.xml"/>
<hbm2ddl export="false" format="true" outputfilename="sql.ddl"/>
</hibernatetool>
</target>
</project>