-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
85 lines (74 loc) · 2.65 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
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:ivy="antlib:org.apache.ivy.ant" name="PharmML_validator" default="all" basedir=".">
<property name="build.dir" location="build"/>
<property name="src.bin.dir" location="${build.dir}/src"/>
<property name="src.dir" location="./src"/>
<property name="target" value="1.7" />
<property name="source" value="1.7" />
<property name="ivy.lib.dir" location="./ivy_lib"/>
<property name="vendor" value="EMBL-EBI"/>
<property name="title" value="PharmML-validator"/>
<path id="ivy.lib.path">
<pathelement location="ivy/ivy-2.3.0.jar" />
</path>
<taskdef resource="org/apache/ivy/ant/antlib.xml" uri="antlib:org.apache.ivy.ant"
classpathref="ivy.lib.path"/>
<path id="src.path">
<fileset dir="${ivy.lib.dir}/src-build"/>
</path>
<target name="all" depends="clean-jar,build-src,build-jar">
</target>
<target name="clean-jar">
<delete dir="jar"/>
</target>
<target name="retrieve" depends="">
<ivy:retrieve pattern="ivy_lib/[conf]/[artifact].[ext]"/>
</target>
<!-- - - - - - - - - - - - - - - - - -
target: init
- - - - - - - - - - - - - - - - - -->
<target name="init">
<delete dir="${build.dir}"/>
<mkdir dir="${build.dir}"/>
<mkdir dir="${src.bin.dir}"/>
</target>
<!-- =================================
target: build-src
================================= -->
<target name="build-src" depends="init,retrieve" description="Build src files.">
<javac srcdir="${src.dir}"
destdir="${src.bin.dir}"
includeantruntime="no"
classpathref="src.path"
source="${source}"
target="${target}"
debug="on"/>
<copy todir="${src.bin.dir}">
<fileset dir="${src.dir}">
<exclude name="**/*.class" />
<exclude name="**/*.java" />
</fileset>
</copy>
</target>
<!--<path id="build-classpath">
<fileset dir="lib">
<include name="*.jar"/>
</fileset>
</path>
<manifestclasspath property="lib.list" jarfile="jar/validator.jar">
<classpath refid="build-classpath"/>
</manifestclasspath>-->
<target name="build-jar">
<mkdir dir="jar"/>
<jar destfile="jar/PharmML-0.8.1-validator.jar"
basedir="${src.bin.dir}">
<zipgroupfileset dir="ivy_lib/src-build" includes="*.jar" excludes=""/>
<manifest>
<attribute name="Main-Class" value="eu.ddmore.pharmml.validator.Validator"/>
<!--<attribute name="Class-Path" value="${lib.list}"/>-->
<attribute name="Implementation-Vendor" value="${vendor}"/>
<attribute name="Implementation-Title" value="${title}"/>
</manifest>
</jar>
</target>
</project>