-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.xml
90 lines (78 loc) · 3.05 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
80
81
82
83
84
85
86
87
88
89
90
<project name="jcp" basedir="." default="jar">
<property name="src.dir" value="src"/>
<property name="jni.dir" value="jni"/>
<property name="lib.dir" value="lib"/>
<property environment="env"/>
<path id="classpath">
<fileset dir="../colt/lib" includes="*.jar" />
<fileset dir="../JSON" includes="json.jar" />
<!--fileset dir="${env.OCVJARDIR}" includes="opencv.jar" /-->
<fileset dir="../libsvm-java" includes="libsvm.jar" />
<fileset dir="../liblinear-java" includes="liblinear-java.jar" />
<fileset dir="../neuroph-java/Framework" includes="*.jar" />
<fileset dir="../neuroph-java/Framework/libs" includes="*.jar" />
<fileset dir="../deeplearning4j" includes="*.jar" />
<fileset dir="../weka" includes="*.jar" />
</path>
<property name="build.dir" value="build"/>
<property name="classes.dir" value="${build.dir}/classes"/>
<property name="jar.dir" value="${build.dir}/jar"/>
<target name="clean">
<delete dir="${build.dir}"/>
<delete file="${lib.dir}/libsvm-jni.so"/>
<delete dir="docs/api"/>
</target>
<target name="compile">
<mkdir dir="${classes.dir}"/>
<javac includeantruntime="false"
srcdir="${src.dir}" destdir="${classes.dir}"
classpathref="classpath"
debug="true"
deprecation="true">
<compilerarg value="-Xlint:unchecked"/>
</javac>
</target>
<target name="compile-jni">
<exec executable="bash" failonerror="true">
<arg line="COMPILE-JNI.sh"/>
</exec>
</target>
<target name="jar" depends="compile">
<mkdir dir="${jar.dir}"/>
<jar destfile="${jar.dir}/${ant.project.name}.jar" basedir="${classes.dir}">
<manifest>
<attribute name="Main-Class" value="${main-class}"/>
</manifest>
</jar>
</target>
<target name="run">
<exec executable="bash" failonerror="true">
<arg line="scripts/run-all-mnist576.sh"/>
</exec>
<exec executable="cat" failonerror="true">
<arg line="output-mnist576.txt"/>
</exec>
</target>
<target name="docs" depends="compile">
<javadoc destdir="docs/api"
author="true"
version="true"
use="true"
windowtitle="JCP API"
classpathref="classpath">
<fileset dir="src" defaultexcludes="yes">
<include name="se/hb/jcp/**"/>
<exclude name="se/hb/jcp/doc-files/**"/>
<exclude name="se/hb/jcp/test*/**"/>
</fileset>
<doctitle><![CDATA[<h1>JCP - Java Conformal Prediction framework</h1>]]></doctitle>
<bottom><![CDATA[<i>Copyright © 2014 - 2024 Anders Gidenstam.</i>]]></bottom>
<group title="JCP core" packages="se.hb.jcp.cp:se.hb.jcp.ml:se.hb.jcp.nc"/>
<group title="JCP bindings" packages="se.hb.jcp.bindings.*"/>
<group title="JCP CLI" packages="se.hb.jcp.cli"/>
<link offline="true" href="http://www.gidenstam.org/JCP/API/" packagelistLoc="C:\tmp"/>
<link href="http://www.gidenstam.org/JCP/API/"/>
</javadoc>
</target>
<target name="all" depends="clean,jar,compile-jni,docs"/>
</project>