This repository has been archived by the owner on Oct 11, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
52 lines (44 loc) · 1.47 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
<project name="terracotta-hibernate-sample" default="compile" basedir=".">
<property name="src" location="src/main"/>
<property name="build" location="target/classes"/>
<property name="dist" location="target"/>
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}"/>
</target>
<target name="compile" depends="init"
description="compile the source " >
<!-- Compile the java code from ${src} into ${build} -->
<javac srcdir="${src}/java" destdir="${build}">
<classpath>
<pathelement path="${classpath}"/>
<fileset dir="lib">
<include name="**/*.jar"/>
</fileset>
<pathelement location="target/"/>
</classpath>
</javac>
</target>
<target name="dist.jar" depends="compile">
<jar destfile="${dist}/terracotta-hibernate-sample.jar">
<fileset dir="${build}"/>
<fileset dir="${src}/java/resources"/>
</jar>
</target>
<target name="dist.war" depends="compile">
<war destfile="${dist}/terracotta-hibernate-sample.war" webxml="${src}/webapp/WEB-INF/web.xml">
<fileset dir="${src}/webapp"/>
<lib dir="lib"/>
<classes dir="${build}"/>
<classes dir="${src}/java/resources"/>
</war>
</target>
<target name="clean"
description="clean up" >
<!-- Delete the ${build} and ${dist} directory trees -->
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
</project>