source: branches/uk_ac_ebi_Tab2MageImporter/build.xml @ 485

Last change on this file since 485 was 473, checked in by dominic, 14 years ago

added newly changed code. This source code is not in sycn with the current released version of the tab2mage importer.

  • Property svn:eol-style set to native
File size: 2.9 KB
Line 
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="Tab2MageImporter" />
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,plugin.compile"
26    description="Compile the plugin"
27  />
28   
29  <target name="utils"
30    depends="clean"
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="plugin.compile"
58      depends="clean"
59      description="compile the ta2mage importer plugin source code, without dependencies 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        manifest="MANIFEST.MF"
75   
76      />
77      <delete includeemptydirs="true">
78        <fileset dir="${bin.plugins}" includes="**/*"/>
79      </delete>
80  </target>
81 
82  <target 
83      name="all"
84      depends="clean"
85      description="compile all the ta2mage importer plugin source code with dependencies and put in a jar file"
86      >
87      <javac
88        encoding="ISO-8859-1"
89        srcdir="${src.plugins}"
90        destdir="${bin.plugins}"
91        classpathref="nugo.plugin.compile.classpath"
92        debug="true"
93        deprecation="true"
94        >
95        <compilerarg value="${javac.arg}" />
96      </javac>
97      <jar 
98        basedir="${bin.plugins}"
99        jarfile="${plugin.name}.jar"
100        manifest="MANIFEST.MF"
101      />
102  </target>
103 
104  <target
105      name="clean"
106      depends=""
107      description="clean/clear the bin folder"
108      >
109      <delete includeemptydirs="true">
110        <fileset dir="${bin.plugins}" includes="**/*"/>
111      </delete>
112  </target>
113 
114</project> 
Note: See TracBrowser for help on using the repository browser.