-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
202 lines (157 loc) · 6.1 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
<project name="Spnego" default="start.complete">
<!--
*****************************************************************
* information
*****************************************************************
-->
<description>SPNEGO Authentication</description>
<!--
*****************************************************************
* global properties
*****************************************************************
-->
<property name="product.name" value="spnego" />
<property name="jar.name" value="${product.name}.jar" />
<property name="jar.name.app" value="${product.name}_app.jar" />
<property name="jar.name.analyzer" value="analyzer.jar" />
<property name="jar.version" value="r9p1" />
<!--
*****************************************************************
* general properties
*****************************************************************
-->
<property name="build" location="${basedir}/build" />
<property name="buildnumber" location="${build}/buildnumber" />
<property name="temp" location="${build}/temp" />
<property name="src" location="${basedir}/src" />
<property name="libs" location="${basedir}/lib" />
<property name="classes" location="${temp}/classes" />
<property name="install" location="${build}/install" />
<property name="javadoc" location="${install}/doc" />
<!--
*****************************************************************
* external taskdefinitions
*****************************************************************
-->
<taskdef resource="net/sf/antcontrib/antlib.xml" classpath="${build}/ant-contrib.jar" />
<taskdef name="buildnr" classname="com.sibvisions.addons.ant.AntBuildNumber" classpath="${buildnumber}/addons.jar" />
<typedef name="canreach" classname="com.sibvisions.addons.ant.CanReach" classpath="${buildnumber}/addons.jar" />
<!--
*****************************************************************
* logging
*****************************************************************
-->
<record name="${build}/build.log" />
<!--
*****************************************************************
* INTERNAL TASKS
*****************************************************************
-->
<!--
* setup tasks
-->
<target name="proxy.check">
<if>
<istrue value="true" />
<then>
<condition property="proxy.enabled">
<and>
<canreach host="10.0.0.1" port="3128"/>
</and>
</condition>
</then>
</if>
</target>
<target name="proxy" depends="proxy.check" if="proxy.enabled">
<echo>PROXY = ${proxy.enabled}</echo>
<property name="proxy.host" value="10.0.0.1"/>
<property name="proxy.port" value="3128"/>
<property name="proxy.user" value=""/>
<property name="proxy.pass" value=""/>
<setproxy proxyhost="${proxy.host}" proxyport="${proxy.port}" proxyuser="${proxy.user}" proxypassword="${proxy.password}"/>
</target>
<!--
* cleanup tasks
-->
<target name="clean.start">
<delete dir="${temp}" />
<delete dir="${install}" />
</target>
<target name="clean.stop">
<delete dir="${temp}" />
</target>
<!--
* compile, build tasks
-->
<target name="build">
<delete dir="${classes}" />
<mkdir dir="${classes}" />
<!-- compile the java code -->
<javac srcdir="${src}" destdir="${classes}" debug="on" deprecation="on" source="1.5" target="1.5" encoding="ISO-8859-1">
<classpath>
<fileset dir="${libs}">
<include name="*.jar" />
</fileset>
</classpath>
</javac>
<!-- copy ressource files -->
<copy todir="${classes}">
<fileset dir="${src}">
<include name="**/*" />
<exclude name="**/*.java" />
<exclude name="**/package.html" />
</fileset>
</copy>
<mkdir dir="${install}" />
<!-- buildnumber -->
<buildnr buildfile="${buildnumber}/buildnr.properties" version="${jar.version}" name="SPNEGO Authentication"/>
<!-- create the standard addon jar file -->
<jar jarfile="${install}/${jar.name}">
<manifest>
<attribute name="Implementation-Title" value="${build.versionstring}"/>
<attribute name="Implementation-Version" value="b${build.number} ${build.date}"/>
<attribute name="Implementation-Vendor" value="SIB Visions GmbH"/>
</manifest>
<fileset dir="${classes}" />
</jar>
</target>
<!--
* quality tasks
-->
<target name="javadoc" depends="proxy">
<delete dir="${javadoc}" />
<!-- buildnumber -->
<buildnr buildfile="${buildnumber}/buildnr.properties" loadOnly="true"/>
<javadoc packagenames="*"
sourcepath="${src}"
defaultexcludes="yes"
destdir="${javadoc}"
author="false"
version="false"
use="true"
windowtitle="SPNEGO Authentication (ver. ${build.version})"
source="1.5"
encoding="ISO-8859-1">
<arg value="-J-Dhttp.proxyHost=${proxy.host}"/>
<arg value="-J-Dhttp.proxyPort=${proxy.port}"/>
<arg value="-J-Dhttp.proxyUser=${proxy.user}"/>
<arg value="-J-Dhttp.proxyPassword=${proxy.password}"/>
<classpath>
<fileset dir="${libs}">
<include name="**/*.jar" />
</fileset>
</classpath>
<doctitle>
<![CDATA[<h1>SPNEGO Authentication (ver. ${build.version})</h1>]]>
</doctitle>
<bottom><![CDATA[<i>Copyright © 2016 SIB Visions GmbH. All Rights Reserved.</i>]]></bottom>
<link href="http://java.sun.com/j2se/1.5.0/docs/api"/>
</javadoc>
</target>
<!--
*****************************************************************
* PUBLIC START TASKS
*****************************************************************
-->
<target name="start.complete" depends="clean.start, build, javadoc, clean.stop" description="Creates the release library" />
</project>