-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
72 lines (62 loc) · 2.64 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
<project name="KEDR" default="dist" basedir=".">
<description>
KEDR build configuration
</description>
<property name="src" location="src"/>
<property name="build" location="build"/>
<property name="dist" location="dist"/>
<path id="lib.path.ref">
<fileset dir="lib" includes="*.jar"/>
</path>
<target name="init">
<tstamp/>
<mkdir dir="${build}"/>
<mkdir dir="${dist}"/>
</target>
<target name="compile" depends="init" description="compile the source" >
<javac srcdir="${src}" destdir="${build}" classpath="${toString:lib.path.ref}" />
<mkdir dir="${build}/org/treblefrei/kedr/resources/icons" />
<copy todir="${build}/org/treblefrei/kedr/resources/icons">
<fileset dir="src/org/treblefrei/kedr/resources/icons">
<include name="**/*.png" />
<include name="**/*.jpg" />
</fileset>
</copy>
</target>
<target name="dist" depends="compile" description="generate the distribution" >
<jar jarfile="${dist}/KEDR-${DSTAMP}.jar" basedir="${build}">
<manifest>
<attribute name="Main-Class" value="org.treblefrei.kedr.gui.qt.QKedrMainWindow"/>
<attribute name="Class-Path" value="
lib/commons-cli.jar
lib/commons-codec-1.3.jar
lib/commons-httpclient-3.1-beta1.jar
lib/commons-lang-2.3.jar
lib/commons-logging-1.1.jar
lib/jaudiotagger-2.0.1.jar
lib/jdom.jar
lib/jmb-wsc-beta1.jar
lib/jmx1.5.jar
lib/jna.jar
lib/log4j-1.2.14.jar
lib/qtjambi-4.5.2_01.jar
lib/slf4j-api.jar
lib/logback-classic.jar
lib/logback-core.jar
lib/testng-jdk15.jar
lib/xuggle-xuggler.jar" />
</manifest>
</jar>
<mkdir dir="${dist}/lib" />
<copy todir="${dist}/lib">
<fileset dir="lib" excludes="*.dll *.so"/>
</copy>
<copy todir="${dist}">
<fileset dir="lib" includes="*.dll"/>
<fileset dir="lib" includes="*.so"/>
</copy>
</target>
<target name="clean" description="clean up" >
<delete dir="${build}"/>
</target>
</project>