-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
executable file
·80 lines (73 loc) · 4.14 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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="aac" name="Create Runnable Jar for Project aac with libraries in sub-folder">
<!--this file was created by Eclipse Runnable JAR Export Wizard-->
<!--ANT 1.7 is required -->
<property name="lib.dir" value="libs"/>
<property name="aac.jar" value="AAC.jar"/>
<property name="aac.dir" value="aac"/>
<property name="solvercreator.jar" value="SolverCreator.jar"/>
<property name="solvercreator.dir" value="aac"/>
<property name="solverlauncher.jar" value="SolverLauncher.jar"/>
<property name="solverlauncher.dir" value="aac"/>
<property name="dist.dir" value="dist"/>
<property name="src.dir" value="src"/>
<path id="classpath">
<fileset dir="${lib.dir}" includes="**/*.jar"/>
</path>
<target name="clean">
<delete dir="bin"/>
<delete dir="dist"/>
</target>
<target name="compile">
<mkdir dir="bin"/>
<javac debug="true" debuglevel="lines,vars,source" includeAntRuntime="false" srcdir="src" destdir="bin" classpathref="classpath" >
<compilerarg line="-source 1.6 -target 1.6" />
</javac>
</target>
<target name="aac" depends="compile">
<mkdir dir="${dist.dir}/${aac.dir}"/>
<jar destfile="${dist.dir}/${aac.dir}/${aac.jar}">
<manifest>
<attribute name="Main-Class" value="edacc.configurator.aac.AAC"/>
<attribute name="Class-Path" value=". AAC_lib/EDACCAPI.jar AAC_lib/mysql-connector-java-5.1.13-bin.jar AAC_lib/SevenZip.jar AAC_lib/EDACC_model.jar AAC_lib/commons-math-2.2.jar AAC_lib/commons-math3-3.0.jar AAC_lib/JRI.jar AAC_lib/JRIEngine.jar AAC_lib/REngine.jar AAC_lib/junit.jar AAC_lib/org.hamcrest.core_1.1.0.v20090501071000.jar AAC_lib/fastrf.jar"/>
</manifest>
<fileset dir="bin"/>
</jar>
<delete dir="${dist.dir}/${aac.dir}/AAC_lib"/>
<mkdir dir="${dist.dir}/${aac.dir}/AAC_lib"/>
<copy todir="${dist.dir}/${aac.dir}/AAC_lib">
<fileset dir="${lib.dir}"/>
</copy>
</target>
<target name="solvercreator" depends="compile">
<mkdir dir="${dist.dir}/${solvercreator.dir}"/>
<jar destfile="${dist.dir}/${solvercreator.dir}/${solvercreator.jar}">
<manifest>
<attribute name="Main-Class" value="edacc.configurator.aac.solvercreator.SolverCreator"/>
<attribute name="Class-Path" value=". AAC_lib/EDACCAPI.jar AAC_lib/mysql-connector-java-5.1.13-bin.jar AAC_lib/SevenZip.jar AAC_lib/EDACC_model.jar AAC_lib/commons-math-2.2.jar AAC_lib/commons-math3-3.0.jar AAC_lib/JRI.jar AAC_lib/JRIEngine.jar AAC_lib/REngine.jar AAC_lib/junit.jar AAC_lib/org.hamcrest.core_1.1.0.v20090501071000.jar AAC_lib/fastrf.jar"/>
</manifest>
<fileset dir="bin"/>
</jar>
<delete dir="${dist.dir}/${solvercreator.dir}/AAC_lib"/>
<mkdir dir="${dist.dir}/${solvercreator.dir}/AAC_lib"/>
<copy todir="${dist.dir}/${solvercreator.dir}/AAC_lib">
<fileset dir="${lib.dir}"/>
</copy>
<copy file="${src.dir}/edacc/configurator/aac/solvercreator/settings.properties" todir="${dist.dir}/${solvercreator.dir}"/>
</target>
<target name="solverlauncher" depends="compile">
<mkdir dir="${dist.dir}/${solverlauncher.dir}"/>
<jar destfile="${dist.dir}/${solverlauncher.dir}/${solverlauncher.jar}">
<manifest>
<attribute name="Main-Class" value="edacc.configurator.aac.solvercreator.SolverLauncher"/>
<attribute name="Class-Path" value=". AAC_lib/EDACCAPI.jar AAC_lib/mysql-connector-java-5.1.13-bin.jar AAC_lib/SevenZip.jar AAC_lib/EDACC_model.jar AAC_lib/commons-math-2.2.jar AAC_lib/commons-math3-3.0.jar AAC_lib/JRI.jar AAC_lib/JRIEngine.jar AAC_lib/REngine.jar AAC_lib/junit.jar AAC_lib/org.hamcrest.core_1.1.0.v20090501071000.jar AAC_lib/fastrf.jar"/>
</manifest>
<fileset dir="bin"/>
</jar>
<delete dir="${dist.dir}/${solverlauncher.dir}/AAC_lib"/>
<mkdir dir="${dist.dir}/${solverlauncher.dir}/AAC_lib"/>
<copy todir="${dist.dir}/${solverlauncher.dir}/AAC_lib">
<fileset dir="${lib.dir}"/>
</copy>
</target>
</project>