-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
106 lines (87 loc) · 3.6 KB
/
build.xml
File metadata and controls
106 lines (87 loc) · 3.6 KB
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project name="Sampling Evaluation" default="jar" basedir=".">
<!-- Copy from build_jar_template.properties and edit accordingly -->
<property file = "build_jar.properties"/>
<!-- Set JAR name -->
<property name="build.jar.version" value="3.6.2" />
<property name="build.jar.name" value="product_sampling_framework.jar" />
<!-- Constants -->
<property name="base.dir" value="." />
<property name="src.dir" value="${base.dir}/src" />
<property name="lib.dir" value="${base.dir}/libraries" />
<property name="execute.lib.dir" value="${base.dir}/lib" />
<property name="build.dir" value="${base.dir}/build"/>
<property name="build.bin.dir" value="${build.dir}/classes"/>
<property name="build.jar.dir" value="${build.dir}/jar"/>
<property name="build.jar.lib.dir" value="${build.jar.dir}/lib"/>
<property name="build.jar.path" value="${build.jar.dir}/${build.jar.name}" />
<property name="build.version.path" value="${build.bin.dir}/version.txt" />
<property name="external.dir" value="${fm.core.path}/library"/>
<property name="external.jar.dir" value="${external.dir}/jar"/>
<property name="external.jar.lib.dir" value="${external.jar.dir}/lib"/>
<property name="external.jar.path" value="${external.jar.dir}/de.ovgu.featureide.lib.fm-v${build.jar.version}.jar"/>
<target name="jar">
<!-- Call build for other libs -->
<subant target="">
<fileset dir="${external.dir}" includes="build.xml" />
</subant>
<mkdir dir="${build.jar.lib.dir}" />
<!-- Copy libs -->
<copy todir="${build.jar.lib.dir}" file="${external.jar.path}" />
<copy todir="${build.jar.lib.dir}">
<fileset dir="${external.jar.lib.dir}" />
</copy>
<copy todir="${build.jar.lib.dir}">
<fileset dir="${lib.dir}" />
</copy>
<path id="classpath">
<!--<fileset dir="${build.jar.lib.dir}" includes="**/*.jar" />-->
<fileset dir="${build.jar.lib.dir}">
<include name="**/*.jar" />
</fileset>
</path>
<pathconvert property="jar.class.path" pathsep=" ">
<path refid="classpath"/>
<mapper>
<chainedmapper>
<flattenmapper/>
<globmapper from="*.jar" to="lib/*.jar"/>
</chainedmapper>
</mapper>
</pathconvert>
<mkdir dir="${build.bin.dir}" />
<javac
srcdir="${src.dir}"
destdir="${build.bin.dir}"
classpathref="classpath"
debug="on" includeantruntime="false" fork="yes"
source="1.8" target="1.8">
<compilerarg value="-Xlint" />
</javac>
<echo message="${jar.class.path}"/>
<!-- Get current timestamp -->
<tstamp>
<format property="timeStamp" pattern="yyyy/MM/dd HH-mm-ss" />
</tstamp>
<!-- Create version file -->
<echo file="${build.version.path}" append="false">Sampling Evaluation Version: ${build.jar.version}${line.separator}Build Time: ${timeStamp}${line.separator}</echo>
<!-- Build jar file, including source files and license file -->
<jar destfile="${build.jar.path}" basedir="${build.bin.dir}" compress="true">
<fileset dir="${src.dir}" includes="**/*.java" />
<fileset file="${license.path}" />
<manifest>
<attribute name="Main-Class" value="de.ovgu.featureide.sampling.TWiseSamplingFramework"/>
<attribute name="Class-Path" value="${jar.class.path}"/>
</manifest>
</jar>
<copy todir="${base.dir}" file="${build.jar.path}" />
<!--<copy todir="${execute.lib.dir}">
<fileset dir="${build.jar.lib.dir}" />
</copy> -->
</target>
<target name="clean" description="Delete the Build Folder">
<delete file="${build.jar.name}" />
<delete dir="${build.dir}" />
<delete dir="${execute.lib.dir}" />
</target>
</project>