source: trunk/uk/ac/scri/batchimporter/build.xml @ 236

Last change on this file since 236 was 236, checked in by mbayer, 15 years ago

first added

File size: 1.6 KB
Line 
1<project default="compile" basedir=".">
2
3  <property name="src" location="src" />
4  <property name="classes" location="classes" />
5  <property name="lib" location="WEB-INF/lib" />
6  <property name="jarfile-batchimporter" value="batchimporter.jar" />
7
8
9  <path id="project.class.path">
10    <fileset dir="${lib}">
11      <include name="**/*.jar" />
12    </fileset>
13    <pathelement location="${classes}" />
14    <pathelement location="WEB-INF/classes" />
15  </path>
16
17  <target name="compile">
18    <javac srcdir="${src}" destdir="${classes}" debug="on">
19      <classpath refid="project.class.path" />
20    </javac>
21  </target>
22
23  <target name="jar-batchimporter" depends="compile">
24    <delete file="${jarfile-batchimporter}" />
25    <jar jarfile="${jarfile-batchimporter}"
26         basedir="${classes}"
27         includes="sbrn/base/BatchDataImport.class,sbrn/base/BatchDataImporter.class,sbrn/base/ProgressMonitorThread.class,sbrn/base/PluginConfigDetector.class" />
28  </target>
29
30  <target name="batchimporter" depends="jar-batchimporter">
31    <copy file="${jarfile-batchimporter}" todir="\\sbrn1\tomcat\projects\base\www\plugins" />
32  </target>
33
34  <target name="zip_batchimporter" depends="jar-batchimporter">
35    <zip destfile="${basedir}/dist/batchimporter.zip">
36      <fileset dir="${basedir}/doc/batchimporterplugin" />
37      <fileset dir="${lib}" includes="${jarfile-batchimporter}"/>
38      <fileset dir="../sbrn-commons/trunk" includes="sbrn-commons.jar" />
39      <fileset dir="${basedir}" includes="src/sbrn/base/BatchDataImport.java,src/sbrn/base/BatchDataImporter.java,src/sbrn/base/ProgressMonitorThread.java,src/sbrn/base/PluginConfigDetector.java"/>
40    </zip>
41  </target>
42
43
44</project>
Note: See TracBrowser for help on using the repository browser.