source: gs3-extensions/mat/trunk/build.xml@ 21926

Last change on this file since 21926 was 21926, checked in by sjm84, 11 years ago

Updated the directories in MAT's build.xml after package name change

  • Property svn:executable set to *
File size: 3.2 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.greenstone.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 <property name="tomcat.lib.dir" value="../../packages/tomcat/common/lib"/>
16 <property name="tomcat.endorsed.dir" value="../../packages/tomcat/common/endorsed"/>
17 <property name="web.class.dir" value="../../web/WEB-INF/classes/org/greenstone/mat/servlet"/>
18 <property name="mat.class.dir" value="${classes.dir}/org/greenstone/mat/servlet"/>
19
20 <path id="classpath">
21 <fileset dir="${lib.dir}">
22 <include name="**/*.jar"/>
23 </fileset>
24 <dirset dir="${lib.dir}">
25 <include name="**/classes"/>
26 </dirset>
27 </path>
28
29 <target name ="create_log_folder">
30 <mkdir dir="../logs/mat"/>
31 </target>
32
33 <target name="clean">
34 <delete dir="${build.dir}"/>
35 <delete dir="${lib.dir}"/>
36 </target>
37
38 <target name="compile" depends="setup-java-lib,setup-tmp,create_log_folder">
39 <mkdir dir="${classes.dir}"/>
40 <javac srcdir="${src.dir}" destdir="${classes.dir}" classpathref="classpath"/>
41
42 <mkdir dir="${web.class.dir}"/>
43 <copy todir="${web.class.dir}">
44 <fileset dir="${mat.class.dir}">
45 <include name="**/*.class"/>
46 </fileset>
47 </copy>
48 </target>
49
50 <target name="setup-java-lib">
51
52 <mkdir dir="${lib.dir}"/>
53 <copy todir="${lib.dir}">
54 <fileset dir="${web.dir}/lib">
55 <include name="**/*.jar"/>
56 </fileset>
57 </copy>
58
59 <mkdir dir="${lib.dir}/classes"/>
60 <copy todir="${lib.dir}/classes">
61 <fileset dir="${web.dir}/classes"/>
62 </copy>
63
64 <copy todir="${lib.dir}">
65 <fileset dir="${jni.dir}">
66 <include name="**/*.jar"/>
67 </fileset>
68 </copy>
69
70 <copy todir="${lib.dir}">
71 <fileset dir="${tomcat.lib.dir}">
72 <include name="**/servlet-api.jar"/>
73 </fileset>
74 </copy>
75
76 <copy todir="${lib.dir}">
77 <fileset dir="${tomcat.endorsed.dir}">
78 <include name="**/xml-apis.jar"/>
79 </fileset>
80 </copy>
81
82 <copy todir="${lib.dir}">
83 <fileset dir="./">
84 <include name="**/${jcommon}"/>
85 <include name="**/${jfreechart}"/>
86 </fileset>
87 </copy>
88
89 <mkdir dir="${mat.dir}/script"/>
90 <copy todir="${mat.dir}/script">
91 <fileset dir="./resources/script"/>
92 </copy>
93 </target>
94
95 <target name ="clean-tmp">
96 <delete dir="${tmp.dir}"/>
97 <echo> ${tmp.dir} has been removed </echo>
98 </target>
99 <target name ="setup-tmp">
100 <mkdir dir="./tmp"/>
101 <echo> ${tmp.dir} has been created </echo>
102 <echo file="${tmp.dir}/log.txt">This is the log file.</echo>
103 </target>
104 <target name="clean-compile" depends="clean,compile"/>
105
106</project>
Note: See TracBrowser for help on using the repository browser.