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 | <property name="bloader.src.plugins" location="${src.plugins}/java" /> |
---|
11 | |
---|
12 | <property name="javac.arg" value="-Xlint:unchecked" |
---|
13 | description="Extra arguments sent to Java compiler" /> |
---|
14 | <property name="plugin.name" value="Tab2MageImporter" /> |
---|
15 | <property name="utils.name" value="ebi-plugins-utils" /> |
---|
16 | <property name="base1loader.name" value="bloader" /> |
---|
17 | |
---|
18 | <!-- set up classpath for compiling --> |
---|
19 | <path id="nugo.plugin.compile.classpath"> |
---|
20 | <fileset dir="${lib.plugins}"> |
---|
21 | <include name="**/*.jar"/> |
---|
22 | </fileset> |
---|
23 | </path> |
---|
24 | |
---|
25 | <target |
---|
26 | name="build.plugin" |
---|
27 | depends= "utils,nutriplugin.compile" |
---|
28 | description="Compile the plugin" |
---|
29 | /> |
---|
30 | |
---|
31 | <target |
---|
32 | name="dependencies" |
---|
33 | depends= "bloader,utils" |
---|
34 | description="Compile the plugin" |
---|
35 | /> |
---|
36 | |
---|
37 | <target name="bloader" |
---|
38 | depends="clean" |
---|
39 | description ="compile the modified base1loader code for BASE1" |
---|
40 | > |
---|
41 | <javac |
---|
42 | encoding="ISO-8859-1" |
---|
43 | srcdir="${bloader.src.plugins}" |
---|
44 | destdir="${bin.plugins}" |
---|
45 | classpathref="nugo.plugin.compile.classpath" |
---|
46 | debug="true" |
---|
47 | deprecation="true" |
---|
48 | > |
---|
49 | <compilerarg value="${javac.arg}" /> |
---|
50 | </javac> |
---|
51 | <jar |
---|
52 | basedir="${bin.plugins}" |
---|
53 | jarfile="${lib.plugins}\bloader.jar" |
---|
54 | /> |
---|
55 | <jar |
---|
56 | basedir="${bin.plugins}" |
---|
57 | jarfile="${base1loader.name}.jar" |
---|
58 | /> |
---|
59 | </target> |
---|
60 | |
---|
61 | <target name="utils" |
---|
62 | depends="clean" |
---|
63 | description="compile the common ebi -plugin util classes" |
---|
64 | > |
---|
65 | <javac |
---|
66 | encoding="ISO-8859-1" |
---|
67 | srcdir="${util.src.plugins}" |
---|
68 | destdir="${bin.plugins}" |
---|
69 | classpathref="nugo.plugin.compile.classpath" |
---|
70 | debug="true" |
---|
71 | deprecation="true" |
---|
72 | > |
---|
73 | <compilerarg value="${javac.arg}" /> |
---|
74 | </javac> |
---|
75 | <jar |
---|
76 | basedir="${bin.plugins}" |
---|
77 | jarfile="${lib.plugins}\ebi-plugins-utils.jar" |
---|
78 | /> |
---|
79 | <jar |
---|
80 | basedir="${bin.plugins}" |
---|
81 | jarfile="${utils.name}.jar" |
---|
82 | /> |
---|
83 | </target> |
---|
84 | |
---|
85 | <target |
---|
86 | name="nutriplugin.compile" |
---|
87 | depends="clean" |
---|
88 | description="compile the ta2mage importer plugin source code, without dependencies and put in a jar file" |
---|
89 | > |
---|
90 | <javac |
---|
91 | encoding="ISO-8859-1" |
---|
92 | srcdir="${core.src.plugins}" |
---|
93 | destdir="${bin.plugins}" |
---|
94 | classpathref="nugo.plugin.compile.classpath" |
---|
95 | debug="true" |
---|
96 | deprecation="true" |
---|
97 | > |
---|
98 | <compilerarg value="${javac.arg}" /> |
---|
99 | </javac> |
---|
100 | <jar |
---|
101 | basedir="${bin.plugins}" |
---|
102 | jarfile="${plugin.name}.jar" |
---|
103 | manifest="MANIFEST.MF" |
---|
104 | |
---|
105 | /> |
---|
106 | </target> |
---|
107 | |
---|
108 | <target |
---|
109 | name="all" |
---|
110 | depends="clean" |
---|
111 | description="compile all the ta2mage importer plugin source code with dependencies and put in a jar file" |
---|
112 | > |
---|
113 | <javac |
---|
114 | encoding="ISO-8859-1" |
---|
115 | srcdir="${src.plugins}" |
---|
116 | destdir="${bin.plugins}" |
---|
117 | classpathref="nugo.plugin.compile.classpath" |
---|
118 | debug="true" |
---|
119 | deprecation="true" |
---|
120 | > |
---|
121 | <compilerarg value="${javac.arg}" /> |
---|
122 | </javac> |
---|
123 | <jar |
---|
124 | basedir="${bin.plugins}" |
---|
125 | jarfile="${plugin.name}.jar" |
---|
126 | manifest="MANIFEST.MF" |
---|
127 | /> |
---|
128 | </target> |
---|
129 | |
---|
130 | <target |
---|
131 | name="clean" |
---|
132 | depends="" |
---|
133 | description="clean/clear the bin folder" |
---|
134 | > |
---|
135 | <delete includeemptydirs="true"> |
---|
136 | <fileset dir="${bin.plugins}" includes="**/*"/> |
---|
137 | </delete> |
---|
138 | </target> |
---|
139 | |
---|
140 | </project> |
---|