-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
64 lines (43 loc) · 1.41 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
<project name="julib" default="dist" basedir=".">
<property name="VERSION" value="2.10.1"/>
<tstamp>
<format property="DATE" pattern="%d.%m.%Y" />
</tstamp>
<property name="build" value="build"/>
<property name="dist" value="dist"/>
<property name="filename" value="lib_julib_v${VERSION}.zip"/>
<target name="init" depends="clean">
<mkdir dir="${build}"/>
<mkdir dir="${dist}"/>
</target>
<target name="replace">
<copy file="julib.xml" todir="${build}">
<filterchain>
<replacetokens>
<token key="version" value="${VERSION}" />
<token key="date" value="${DATE}" />
</replacetokens>
</filterchain>
</copy>
</target>
<target name="copy">
<copy todir="${build}/julib">
<fileset dir="julib">
<include name="**"/>
</fileset>
</copy>
<copy file="julib.xml" todir="${build}"/>
<copy file="index.html" todir="${build}"/>
</target>
<target name="dist" depends="init, replace, copy">
<zip destfile="${dist}/${filename}">
<fileset dir="${build}/">
<include name="**/*"/>
</fileset>
</zip>
<delete dir="${build}"/>
</target>
<target name="clean">
<delete dir="${build}"/>
</target>
</project>