forked from Ayuto/bizcal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
45 lines (40 loc) · 1.37 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
<project name="java_bizcal" default="jar" basedir=".">
<property name="app.name" value="bizcal_santec" />
<property name="app.version" value="0.7" />
<property name="dist.dir" value="${basedir}/dist" />
<property name="lib.dir" value="${basedir}/lib" />
<property name="bin.dir" value="${basedir}/bin" />
<property name="src.dir" value="${basedir}/src" />
<property name="jar.file" value="${dist.dir}/lu.tudor.santec.bizcal.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 bizcal library jar file -->
<target name="jar" description="Build bizcal library jar file">
<delete file="${jar.file}" />
<mkdir dir="${dist.dir}" />
<!-- generate the manifest-file -->
<fileset dir="${lib.dir}" id="jar.files">
<include name="**/*.jar" />
</fileset>
<pathconvert pathsep=" " dirsep="/" property="jars" refid="jar.files">
<map from="${basedir}/" to="" />
</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>
<fileset dir="${src.dir}" includes="**/*.java"/>
</jar>
</target>
</project>