-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
79 lines (64 loc) · 2.67 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
73
74
75
76
77
78
79
<?xml version="1.0" encoding="UTF-8"?>
<!-- ======================================================================
18.01.2010 10:46:29
SVM iitp project
Basic project for linear SVM DCD solver
ant
====================================================================== -->
<project name="SVM iitp project" default="jar">
<description>
Basic project for linear SVM DCD solver
</description>
<property name="build.dir" value="build"/>
<property name="src.dir" value="src"/>
<property name="jar.dir" value="jar"/>
<property name="jar.path" value="iitp-svm.jar"/>
<property name="main.class" value="HelloWorld"/>
<property environment="env"/>
<path id="jar.classpath">
<fileset dir="jar" includes="**/*.jar"/>
</path>
<!-- =================================
target: clean
================================= -->
<target name="clean" depends="" description="Clean build directory">
<delete dir="${build.dir}"/>
</target>
<!-- =================================
target: compile
================================= -->
<target name="compile" depends="" description="Compile project">
<mkdir dir="${build.dir}"/>
<javac srcdir="${src.dir}" destdir="${build.dir}" classpath="${jar.classpath}">
<classpath refid="jar.classpath"/>
</javac>
<mkdir dir="${build.dir}/jar"/>
<copy todir="${build.dir}/jar">
<path refid="jar.classpath"/>
</copy>
</target>
<!-- =================================
target: jar
================================= -->
<target name="jar" depends="compile" description="Build a jar file">
<manifestclasspath property="jar.classpath" jarfile="${jar.path}">
<classpath refid="jar.classpath"/>
</manifestclasspath>
<jar destfile="${jar.path}" basedir="${build.dir}">
<manifest>
<attribute name="Main-Class" value="${main.class}"/>
<attribute name="Class-Path" value="${jar.classpath}"/>
</manifest>
</jar>
</target>
<!-- =================================
target: default
================================= -->
<target name="default" depends="depends" description="Basic project for linear SVM DCD solver">
</target>
<!-- - - - - - - - - - - - - - - - - -
target: depends
- - - - - - - - - - - - - - - - - -->
<target name="depends">
</target>
</project>