-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-eclipse.xml
96 lines (88 loc) · 3.13 KB
/
build-eclipse.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
90
91
92
93
94
95
96
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE ant>
<project
basedir="."
name="vocabs-registry"
>
<property environment="env" />
<property name="debuglevel" value="source,lines,vars" />
<property name="target" value="1.8" />
<property name="source" value="1.8" />
<property name="build" value="bin" />
<property name="build-jar" value="bin-jar" />
<!-- JAR files that contain a JPA persistence unit. -->
<property name="toolkit-db-model-jar"
value="${build-jar}/toolkit-db-model.jar" />
<property name="registry-db-model-jar"
value="${build-jar}/registry-db-model.jar" />
<property name="roles-db-model-jar"
value="${build-jar}/roles-db-model.jar" />
<property name="jar" value="vocabs-registry.jar" />
<property name="war" value="vocabs-registry.war" />
<target name="clean-build-jar">
<!-- Used to delete the entire ${build-jar} directory,
but this seems to confuse Eclipse sometimes. -->
<delete file="${toolkit-db-model-jar}" />
<delete file="${registry-db-model-jar}" />
<delete file="${roles-db-model-jar}" />
</target>
<target name="toolkit-db-model-jar">
<jar destfile="${toolkit-db-model-jar}">
<!-- Generated JAR file has META-INF directory first anyway, so it's
neater to include persistence.xml first ... -->
<mappedresources>
<fileset
dir="src/main/java/au/org/ands/vocabs/toolkit/db/model/META-INF"
/>
<globmapper from="*" to="META-INF/*" />
</mappedresources>
<!-- ... and then the class files. -->
<fileset
dir="${build}"
includes ="au/org/ands/vocabs/toolkit/db/model/*.class"
/>
</jar>
</target>
<target name="registry-db-model-jar">
<jar destfile="${registry-db-model-jar}">
<!-- Generated JAR file has META-INF directory first anyway, so it's
neater to include persistence.xml first ... -->
<mappedresources>
<fileset
dir="src/main/java/au/org/ands/vocabs/registry/db/entity/META-INF"
/>
<globmapper from="*" to="META-INF/*" />
</mappedresources>
<!-- ... and then the class files. -->
<fileset
dir="${build}"
includes ="au/org/ands/vocabs/registry/db/entity/*.class"
/>
<fileset
dir="${build}"
includes="au/org/ands/vocabs/registry/db/context/converter/*.class"
/>
</jar>
</target>
<target name="roles-db-model-jar">
<jar destfile="${roles-db-model-jar}">
<!-- Generated JAR file has META-INF directory first anyway, so it's
neater to include persistence.xml first ... -->
<mappedresources>
<fileset
dir="src/main/java/au/org/ands/vocabs/roles/db/entity/META-INF"
/>
<globmapper from="*" to="META-INF/*" />
</mappedresources>
<!-- ... and then the class files. -->
<fileset
dir="${build}"
includes ="au/org/ands/vocabs/roles/db/entity/*.class"
/>
<fileset
dir="${build}"
includes="au/org/ands/vocabs/roles/db/context/converter/*.class"
/>
</jar>
</target>
</project>