source: branches/uk_ac_ebi_Tab2MageImporter/build.xml @ 518

Last change on this file since 518 was 515, checked in by mbayer, 14 years ago

problem with file writing fixed - file is now actually written to directory where the zip file shave been unzipped

  • Property svn:eol-style set to native
File size: 3.5 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<project name="EBIPlugin" default="copyToServer" 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="plugin.name" value="Tab2MageImporter" />
12  <property name="utils.name" value="ebi-plugins-utils" />
13  <property name="jspDir" location="jsp" />
14 
15  <!-- tomcat -->
16  <!-- property name="tomcat.home" value="${env.CATALINA_HOME}" / -->
17  <property name="tomcat.home" value="C:\tomcat\apache-tomcat-6.0.13"/>
18  <property name="tomcat.shutdownscript" value="${tomcat.home}/bin/shutdown.bat" />
19  <property name="tomcat.startupscript" value="${tomcat.home}/bin/startup.bat" />
20 
21
22  <!-- set up classpath for compiling -->
23  <path id="nugo.plugin.compile.classpath">
24    <fileset dir="${lib.plugins}">
25      <include name="**/*.jar" />
26    </fileset>
27  </path>
28
29  <target name="build.plugin" depends="utils,plugin.compile" description="Compile the plugin" />
30
31  <target name="utils" depends="clean" description="compile the common ebi -plugin util classes">
32    <javac encoding="ISO-8859-1" srcdir="${util.src.plugins}" destdir="${bin.plugins}" classpathref="nugo.plugin.compile.classpath" debug="true" deprecation="true">
33    </javac>
34    <jar basedir="${bin.plugins}" jarfile="${lib.plugins}\ebi-plugins-utils.jar" />
35    <jar basedir="${bin.plugins}" jarfile="${utils.name}.jar" />
36    <delete includeemptydirs="true">
37      <fileset dir="${bin.plugins}" includes="**/*" />
38    </delete>
39  </target>
40
41  <target name="plugin.compile" depends="clean" description="compile the ta2mage importer plugin source code, without dependencies and put in a jar file">
42    <javac source="1.5" target="1.5" encoding="ISO-8859-1" srcdir="${core.src.plugins}" destdir="${bin.plugins}" classpathref="nugo.plugin.compile.classpath" debug="true" deprecation="true">
43    </javac>
44    <jar basedir="${bin.plugins}" jarfile="${plugin.name}.jar" manifest="MANIFEST.MF" />
45    <delete includeemptydirs="true">
46      <fileset dir="${bin.plugins}" includes="**/*" />
47    </delete>
48  </target>
49
50  <target name="all" depends="clean" description="compile all the ta2mage importer plugin source code with dependencies and put in a jar file">
51    <javac source="1.5" target="1.5" encoding="ISO-8859-1" srcdir="${src.plugins}" destdir="${bin.plugins}" classpathref="nugo.plugin.compile.classpath" debug="true" deprecation="true">
52    </javac>
53    <jar basedir="${bin.plugins}" jarfile="${plugin.name}.jar" manifest="MANIFEST.MF" />
54  </target>
55
56  <target name="clean" depends="" description="clean/clear the bin folder">
57    <delete includeemptydirs="true">
58      <fileset dir="${bin.plugins}" includes="**/*" />
59    </delete>
60  </target>
61
62
63  <target name="copyJSPs">
64    <copy todir="${tomcat.home}\webapps\base\plugins\" verbose="true">
65      <fileset dir="${jspDir}" />
66    </copy>
67  </target>
68
69
70  <target name="copyToServer" depends="build.plugin,copyJSPs">
71    <copy file="${plugin.name}.jar" todir="${tomcat.home}\webapps\base\WEB-INF\lib" verbose="true" />
72    <!-- now restart tomcat to reload the application -->
73    <echo message="tomcat home = "/>
74    <echo message="${tomcat.home}"/>
75    <echo message="shutting down tomcat" />
76    <exec executable="${tomcat.shutdownscript}" spawn="yes" />
77    <echo message="starting up tomcat" />
78    <exec executable="${tomcat.startupscript}" spawn="yes" />
79  </target>
80
81
82
83</project>
Note: See TracBrowser for help on using the repository browser.