-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
89 lines (73 loc) · 3.23 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
<?xml version="1.0" encoding="UTF-8" ?>
<project name="KnapsackParetoEnum" default="jar" basedir="." >
<!-- global properties= variables -->
<property name="source.dir" location="de/pareto_enum"/>
<property name="build.dir" location="bin" />
<property name="testing.dir" location="testing" />
<property name="docs.dir" location="docs" />
<property name="java7.build" location="bin/java7" />
<target name="init" description="setup project directories">
<mkdir dir="${build.dir}/classes" />
<mkdir dir="${build.dir}/java7/classes" />
<mkdir dir="${testing.dir}/Inputs" />
<mkdir dir="${docs.dir}/" />
<mkdir dir="${testing.dir}/Inputs/default" />
<exec dir="${testing.dir}" executable="python3" failonerror="true" >
<arg line=" inputGen.py -s 20 -d 4" />
</exec>
<copy file="${testing.dir}/input_4d_20p.dat" todir="${testing.dir}/Inputs/default" />
</target>
<target name="compile" depends="init" description="compile java sources">
<echo> Compiling ... </echo>
<javac srcdir="${source.dir}" destdir="${build.dir}/classes" />
<javac srcdir="${source.dir}" destdir="${java7.build}/classes" target="1.7" source="1.7" />
</target>
<target name="jar" depends="compile" description="making jar file" >
<jar destfile="./knapsackParetoEnum.jar">
<manifest>
<!-- Who is building this jar? -->
<attribute name="Built-By" value="Emad"/>
<attribute name="Multi-Release" value="true"/>
<attribute name="Main-Class" value="de.pareto_enum.Main" />
<!-- Information about the program itself -->
<attribute name="Implementation-Title" value="Knapsack NU"/>
<attribute name="Implementation-Version" value="1.0.0"/>
</manifest>
<!-- directory structure according to the spec ... -->
<!-- ... default classes loadable by old (<Java8) versions -->
<fileset dir="${java7.build}/classes"/>
<!-- ... per release classes, require Java8 for loadable via standard ClassLoader -->
<zipfileset prefix="META-INF/versions/8/" dir="${build.dir}/classes"/>
</jar>
<copy file="./knapsackParetoEnum.jar" todir="${testing.dir}" />
</target>
<!--[> Delete the build & doc directories <]-->
<target name="clean" description="tidy up the workspace">
<delete dir="${build.dir}/classes" />
</target>
<target name="inputDel" description="delete the generated inputs" >
<echo> Input files in "${testing.dir}/Inputs" are deleted </echo>
<delete>
<fileset dir="${testing.dir}/Inputs" casesensitive="yes">
<include name="*.dat"/>
</fileset>
</delete>
</target>
<target name="genJavaDoc" description="creating documentation with javadoc">
<javadoc
destdir="${docs.dir}"
author="true"
version="true"
use="true"
windowtitle="Pareto Enumerator">
<fileset dir="${source.dir}" defaultexcludes="yes">
<include name="**"/>
<include name="maxima_compute/**"/>
<include name="enum_core/**"/>
</fileset>
<doctitle><![CDATA[<h1>Test</h1>]]></doctitle>
<bottom><![CDATA[<i>Copyright © 2017 Emad Corp. All Rights Reserved.</i>]]></bottom>
<link href="http://docs.oracle.com/javase/7/docs/api/"/>
</javadoc>
</target>
</project>