-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
75 lines (62 loc) · 2.14 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?xml version="1.0"?>
<project name="havis.custom.harting.monitortransport" default="publish" xmlns:ivy="antlib:org.apache.ivy.ant" xmlns:if="ant:if">
<property file="${basedir}/build.properties" />
<import>
<url url="${ivy.url}/ant/default.xml" />
</import>
<property name="build.dir.xml" value="${build.dir}/xml" />
<property name="build.dir.xml.classes" value="${build.dir.xml}/classes" />
<property name="build.dir.xml.src" value="${build.dir.xml}/src" />
<target name="clean-cache">
<clean-cache />
</target>
<target name="clean-all">
<clean-all />
</target>
<target name="compile">
<xjc name="MonitorTransport" args="-Xconstructor -Xinterface -Xinject-code -XtoString">
<binding dir="${resources.dir}" includes="xml/MonitorTransport.xml" />
</xjc>
<compile dst="${build.dir.classes}">
<src path="${src.main.dir}" />
<include name="**/DateTypeAdapter.java" />
</compile>
<compile dst="${build.dir.xml.classes}">
<src path="${build.dir.xml.src}" />
<classpath>
<pathelement location="${build.dir.classes}" />
</classpath>
</compile>
<compile dst="${build.dir.classes}">
<src path="${src.main.dir}" />
<exclude name="**/DateTypeAdapter.java" />
<classpath>
<pathelement location="${build.dir.xml.classes}" />
</classpath>
</compile>
</target>
<target name="jar" depends="compile">
<compile-gwt />
<jar-bin />
</target>
<target name="deb" depends="jar">
<deb dst="${build.dir}/tar">
<jar jarfile="${dst.dir}/bundle/40_${basename}.fragment.jar" manifest="${resources.dir}/fragment/MANIFEST.MF" />
<mkdir dir="${build.dir}/deb/opt/havis-apps/conf/havis/custom/harting/monitortransport" />
</deb>
</target>
<target name="app" depends="deb">
<app deb="false" name="havis.monitortransport" />
</target>
<target name="test" depends="compile" unless="${skip.test}">
<test />
</target>
<target name="standalone" depends="jar">
<standalone>
<extract name="havis.middleware.app" />
</standalone>
</target>
<target name="publish" depends="app">
<publish jar="false" app="false" />
</target>
</project>