-
Notifications
You must be signed in to change notification settings - Fork 14
/
build.xml
32 lines (28 loc) · 1022 Bytes
/
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
<project name="tilitin" default="compile" basedir=".">
<property name="src" location="src"/>
<property name="lib" location="lib"/>
<property name="build" location="bin"/>
<property name="dist" location="dist"/>
<target name="init">
<mkdir dir="${build}"/>
<mkdir dir="${dist}"/>
</target>
<target name="compile" depends="init">
<javac srcdir="${src}" destdir="${build}" classpath="${lib}/itext.jar" encoding="UTF-8" includeantruntime="false" debug="true" debuglevel="lines" />
<copy todir="${build}">
<fileset dir="${src}">
<exclude name="**/*.java"/>
</fileset>
</copy>
<jar destfile="${dist}/tilitin.jar" basedir="${build}">
<zipgroupfileset dir="${lib}" includes="*.jar" excludes=""/>
<manifest>
<attribute name="Main-Class" value="kirjanpito.ui.Kirjanpito"/>
<attribute name="Class-Path" value="sqlite-jdbc.jar mysql-connector.jar postgresql-jdbc.jar itext.jar"/>
</manifest>
</jar>
</target>
<target name="clean">
<delete dir="${build}"/>
</target>
</project>