1 | <?xml version="1.0" encoding="UTF-8"?> |
---|
2 | <project name="EbiPlugin" default="build.plugin" basedir="." > |
---|
3 | |
---|
4 | <!-- variables used --> |
---|
5 | <property name="src.plugins" location="src" /> |
---|
6 | <property name="bin.plugins" location="bin" /> |
---|
7 | <property name="lib.plugins" location="lib" /> |
---|
8 | <property name="util.src.plugins" location="${src.plugins}/uk/ac/ebi/nugo/common" /> |
---|
9 | <property name="core.src.plugins" location="${src.plugins}/uk/ac/ebi/nugo/plugins" /> |
---|
10 | |
---|
11 | <property name="javac.arg" value="-Xlint:unchecked" |
---|
12 | description="Extra arguments sent to Java compiler" /> |
---|
13 | <property name="plugin.name" value="Tab2MageExporter" /> |
---|
14 | <property name="utils.name" value="ebi-plugins-utils" /> |
---|
15 | |
---|
16 | <!-- set up classpath for compiling --> |
---|
17 | <path id="nugo.plugin.compile.classpath"> |
---|
18 | <fileset dir="${lib.plugins}"> |
---|
19 | <include name="**/*.jar"/> |
---|
20 | </fileset> |
---|
21 | </path> |
---|
22 | |
---|
23 | <target |
---|
24 | name="build.plugin" |
---|
25 | depends="utils,nutriplugin.compile" |
---|
26 | description="Compile the plugin" |
---|
27 | /> |
---|
28 | |
---|
29 | <target name="utils" |
---|
30 | depends="" |
---|
31 | description="compile the common ebi -plugin util classes" |
---|
32 | > |
---|
33 | <javac |
---|
34 | encoding="ISO-8859-1" |
---|
35 | srcdir="${util.src.plugins}" |
---|
36 | destdir="${bin.plugins}" |
---|
37 | classpathref="nugo.plugin.compile.classpath" |
---|
38 | debug="true" |
---|
39 | deprecation="true" |
---|
40 | > |
---|
41 | <compilerarg value="${javac.arg}" /> |
---|
42 | </javac> |
---|
43 | <jar |
---|
44 | basedir="${bin.plugins}" |
---|
45 | jarfile="${lib.plugins}\ebi-plugins-utils.jar" |
---|
46 | /> |
---|
47 | <jar |
---|
48 | basedir="${bin.plugins}" |
---|
49 | jarfile="${utils.name}.jar" |
---|
50 | /> |
---|
51 | <delete includeemptydirs="true"> |
---|
52 | <fileset dir="${bin.plugins}" includes="**/*"/> |
---|
53 | </delete> |
---|
54 | </target> |
---|
55 | |
---|
56 | <target |
---|
57 | name="nutriplugin.compile" |
---|
58 | depends="" |
---|
59 | description="compile the Tab2MageExporter plugin source code and put in a jar file" |
---|
60 | > |
---|
61 | <javac |
---|
62 | encoding="ISO-8859-1" |
---|
63 | srcdir="${core.src.plugins}" |
---|
64 | destdir="${bin.plugins}" |
---|
65 | classpathref="nugo.plugin.compile.classpath" |
---|
66 | debug="true" |
---|
67 | deprecation="true" |
---|
68 | > |
---|
69 | <compilerarg value="${javac.arg}" /> |
---|
70 | </javac> |
---|
71 | <jar |
---|
72 | basedir="${bin.plugins}" |
---|
73 | jarfile="${plugin.name}.jar" |
---|
74 | |
---|
75 | /> |
---|
76 | <delete includeemptydirs="true"> |
---|
77 | <fileset dir="${bin.plugins}" includes="**/*"/> |
---|
78 | </delete> |
---|
79 | </target> |
---|
80 | </project> |
---|