-
Notifications
You must be signed in to change notification settings - Fork 2
/
buildDemo1.xml
44 lines (39 loc) · 1.41 KB
/
buildDemo1.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
<project name="bizcalDemo" default="jar" basedir=".">
<property name="dist.dir" value="dist"/>
<property name="lib.dir" value="lib"/>
<property name="bin.dir" value="bin"/>
<property name="jar.file" value="${dist.dir}/bizcalDemo1.jar"/>
<path id="libs">
<fileset dir="lib">
<include name="**/*.jar" />
</fileset>
</path>
<!-- clean up -->
<target name="clean">
<mkdir dir="${dist.dir}"/>
<delete>
<fileset dir="${dist.dir}" includes="**/*"/>
</delete>
</target>
<!-- Build settings library jar file -->
<target name="jar" description="Build bizcalDemo library jar file">
<mkdir dir="${dist.dir}"/>
<!-- generate the manifest-file -->
<fileset dir="${lib.dir}" id="lib.files">
<include name="**/*.jar" />
</fileset>
<pathconvert pathsep=" " property="jars" refid="lib.files">
<filtermapper>
<replacestring from="${basedir}/" to= ""/>
<replacestring from="${basedir}\" to= ""/>
<replacestring from="\" to= "/"/>
</filtermapper>
</pathconvert>
<jar jarfile="${jar.file}" basedir="${bin.dir}" >
<manifest>
<attribute name="Main-Class" value="lu.tudor.santec.bizcal.CalendarDemo" />
<attribute name="Class-Path" value="${jars}" />
</manifest>
</jar>
</target>
</project>