-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
33 lines (32 loc) · 999 Bytes
/
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
<project name="tickets" default="schemaexport" basedir=".">
<path id="project.cp">
<pathelement path="./target/classes"/>
<fileset refid="jars"/>
</path>
<fileset id="jars" dir="./target/dependency">
<include name="**/*.jar"/>
</fileset>
<fileset id="jar" dir="./target">
<include name="cms.jar"/>
</fileset>
<target name="schemaexport"
description="Exports a generated schema to DB and file">
<taskdef name="hibernatetool"
classname="org.hibernate.tool.ant.EnversHibernateToolTask"
classpathref="project.cp"/>
<hibernatetool destdir=".">
<classpath>
<pathelement path="./target/classes"/>
<fileset refid="jars"/>
</classpath>
<annotationconfiguration configurationfile="./src/main/resources/hibernate.cfg.xml"/>
<hbm2ddl
drop="false"
create="true"
export="false"
outputfilename="schema.sql"
delimiter=";"
format="true"/>
</hibernatetool>
</target>
</project>