source: other-projects/trunk/greenstone3-extension/mat/build.xml@ 17892

Last change on this file since 17892 was 17892, checked in by cc108, 16 years ago

replace old Ant build file

  • Property svn:executable set to *
File size: 2.3 KB
Line 
1<project name="Mat" basedir="." default="main">
2
3 <property name="src.dir" value="src"/>
4 <property name="build.dir" value="build"/>
5 <property name="classes.dir" value="${build.dir}/classes"/>
6 <property name="jar.dir" value="${build.dir}/jar"/>
7 <property name="main-class" value="org.greenstone3.gsdl3_extension.mat.CollectionChooser"/>
8 <property name="lib.dir" value="lib"/>
9 <property name="tmp.dir" value="tmp"/>
10 <property name="web.dir" value="../../web/WEB-INF"/>
11 <property name="jcommon" value="jcommon.jar"/>
12 <property name="jfreechart" value="jfreechart.jar"/>
13 <property name="mat.dir" value="../../web/mat"/>
14 <property name="jni.dir" value="../../lib/jni"/>
15
16 <path id="classpath">
17 <fileset dir="${lib.dir}">
18 <include name="**/*.jar"/>
19 </fileset>
20 <dirset dir="${lib.dir}">
21 <include name="**/classes"/>
22 </dirset>
23 </path>
24
25 <target name="clean">
26 <delete dir="${build.dir}"/>
27 <delete dir="${lib.dir}"/>
28 </target>
29
30 <target name="compile" depends="setup-java-lib,setup-tmp">
31 <mkdir dir="${classes.dir}"/>
32 <javac srcdir="${src.dir}" destdir="${classes.dir}" classpathref="classpath"/>
33 </target>
34
35 <target name="setup-java-lib">
36
37 <mkdir dir="${lib.dir}"/>
38 <copy todir="${lib.dir}">
39 <fileset dir="${web.dir}/lib">
40 <include name="**/*.jar"/>
41 </fileset>
42 </copy>
43
44 <mkdir dir="${lib.dir}/classes"/>
45 <copy todir="${lib.dir}/classes">
46 <fileset dir="${web.dir}/classes"/>
47 </copy>
48
49 <copy todir="${lib.dir}">
50 <fileset dir="${jni.dir}">
51 <include name="**/*.jar"/>
52 </fileset>
53 </copy>
54
55 <copy todir="${lib.dir}">
56 <fileset dir="./">
57 <include name="**/${jcommon}"/>
58 <include name="**/${jfreechart}"/>
59 </fileset>
60 </copy>
61
62 <mkdir dir="${mat.dir}/script"/>
63 <copy todir="${mat.dir}/script">
64 <fileset dir="./resources/script"/>
65 </copy>
66 </target>
67
68 <target name ="clean-tmp">
69 <delete dir="${tmp.dir}"/>
70 <echo> ${tmp.dir} has been removed </echo>
71 </target>
72 <target name ="setup-tmp">
73 <mkdir dir="./tmp"/>
74 <echo> ${tmp.dir} has been created </echo>
75 <echo file="${tmp.dir}/log.txt">This is the log file.</echo>
76 </target>
77 <target name="clean-compile" depends="clean,compile"/>
78
79</project>
Note: See TracBrowser for help on using the repository browser.