forked from slivkaje/RSSalg-software
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
47 lines (38 loc) · 1.32 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
<?xml version="1.0"?>
<project name="RSSalg" default="jar">
<target name="clean">
<delete dir="./dist"/>
</target>
<target name="compile">
<mkdir dir="./dist/classes"/>
<javac srcdir="./src" destdir="./dist/classes" includeantruntime="false">
<classpath>
<pathelement path="lib/weka.jar"/>
</classpath>
</javac>
</target>
<target name="jar" depends="clean, compile">
<mkdir dir="./dist/jar"/>
<manifestclasspath property="jar.classpath" jarfile="${jar.file}">
<classpath>
<fileset dir="./lib" includes="*.jar"/>
</classpath>
</manifestclasspath>
<jar destfile="./dist/jar/RSSalg.jar" basedir="./dist/classes">
<manifest>
<attribute name="Main-Class" value="application.StartExperiment" />
<!-- <attribute name="Class-Path" value="${jar.classpath}" /> -->
</manifest>
<zipgroupfileset dir="./lib" includes="**/*.jar" />
</jar>
</target>
<target name="run_GUI">
<java jar="./dist/jar/RSSalg.jar" fork="true"/>
</target>
<target name="run_console">
<java jar="./dist/jar/RSSalg.jar" fork="true">
<arg value="./data/News2x2/experiment"/>
<arg value="experiment_L.properties"/>
</java>
</target>
</project>