-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
executable file
·36 lines (31 loc) · 956 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
33
34
35
36
<?xml version="1.0" encoding="UTF-8"?>
<project default="jar">
<path id="path">
<fileset dir="lib">
<include name="commons-cli-1.3.1.jar" />
<include name="jcommon-1.0.23.jar" />
<include name="jfreechart-1.0.19.jar" />
</fileset>
</path>
<target name="clean">
<delete dir="build" />
<mkdir dir="build" />
</target>
<target name="compile" depends="clean">
<javac destdir="build">
<src path="src" />
<exclude name="test/**" />
<classpath refid="path" />
</javac>
</target>
<target name="jar" depends="compile">
<jar destfile="genetic-algorithm.jar" basedir="build">
<zipgroupfileset dir="lib" includes="*.jar" />
<manifest>
<attribute name="Main-Class" value="main.java.GeneticAlgorithm.Program" />
<attribute name="Class-Path"
value="lib/commons-cli-1.3.1.jar lib/jcommon-1.0.23.jar lib/jfreechart-1.0.19.jar" />
</manifest>
</jar>
</target>
</project>