-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
74 lines (63 loc) · 2.4 KB
/
Copy pathbuild.xml
File metadata and controls
74 lines (63 loc) · 2.4 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
<?xml version="1.0"?>
<project name="de.zbit.jcmapper" default="all" basedir=".">
<property name="src.dir" value="src"/>
<property name="build.dir" value="bin"/>
<property name="test.dir" value="tests"/>
<property name="classes.dir" value="${build.dir}/classes"/>
<property name="lib.dir" value="lib"/>
<property name="resource.dir" value="resources"/>
<path id="classpath">
<fileset dir="${lib.dir}" includes="**/*.jar"/>
</path>
<target name="init">
<echo>Creating build dir: ${build.dir}</echo>
<mkdir dir="${build.dir}"/>
<echo>Creating classes dir: ${build.dir}</echo>
<mkdir dir="${classes.dir}"/>
</target>
<target name="all" depends="compile,libjar,clijar" description="Builds both executable jar and lib jar"/>
<target name="clean" description="Removes previous build">
<echo>Deleting ${build.dir}</echo>
<delete verbose="true" includeEmptyDirs="true">
<fileset dir="${classes.dir}"/>
<fileset dir="${build.dir}"/>
</delete>
</target>
<target name="libjar" depends="compile" description="compile and build lib jar">
<echo>Building LibOnly jar file</echo>
<jar destfile="${build.dir}/jCMapperLibOnly.jar">
<fileset dir="${classes.dir}"/>
<manifest>
<attribute name="Main-Class" value="de.zbit.jcmapper.executable.jCMapper"/>
</manifest>
<fileset dir=".">
<include name="${resource.dir}/CATS2D-SMARTS-DEFINITIONS"/>
<include name="${resource.dir}/MACCS166-SMARTS-DEFINITIONS"/>
</fileset>
</jar>
</target>
<target name="clijar" depends="compile" description="compile and build executable jar">
<echo>Building executable jar (this may take a while)</echo>
<jar destfile="${build.dir}/jCMapperCLI.jar">
<fileset dir="${classes.dir}"/>
<fileset dir=".">
<include name="${resource.dir}/CATS2D-SMARTS-DEFINITIONS"/>
<include name="${resource.dir}/MACCS166-SMARTS-DEFINITIONS"/>
</fileset>
<archives>
<zips>
<fileset dir="${lib.dir}" includes="**/*.jar"/>
</zips>
</archives>
<manifest>
<attribute name="Main-Class" value="de.zbit.jcmapper.executable.jCMapper"/>
</manifest>
</jar>
</target>
<target name="compile" depends="init" description="compile the source">
<echo>Compiling sources</echo>
<javac includeantruntime="false" srcdir="${src.dir}" destdir="${classes.dir}">
<classpath refid="classpath"/>
</javac>
</target>
</project>