source: trunk/greenstone3-extensions/vishnu/build.xml@ 10075

Last change on this file since 10075 was 10075, checked in by kjdon, 19 years ago

changed the catalina.dir property to catalina.home

  • Property svn:keywords set to Author Date Id Revision
File size: 3.1 KB
Line 
1<?xml version="1.0"?>
2
3<!-- ======================================================================
4 April 2005
5
6 Vishnu build script
7
8 kjdon
9 ====================================================================== -->
10<project name="vishnu" default="all" basedir=".">
11
12 <property environment="env"/>
13 <property name="build.dir" value="${basedir}/build"/>
14 <property name="src.dir" value="${basedir}/src"/>
15
16 <!-- if vishnu is installed as a package inside greenstone -->
17 <property name="prefix" value="../.."/>
18 <!-- use if vishnu is standalone -->
19 <property name="prefix" value="${basedir}"/>
20 <property name="catalina.home" value="${env.CATALINA_HOME}"/>
21 <property name="web.lib" value="${prefix}/web/WEB-INF/lib"/>
22 <property name="web.classes" value="${prefix}/web/WEB-INF/classes"/>
23
24
25<!-- ==================== Compilation Control Options ==================== -->
26
27<!--
28
29 These properties control option settings on the Javac compiler when it
30 is invoked using the <javac> task.
31
32 compile.debug Should compilation include the debug option?
33
34 compile.deprecation Should compilation include the deprecation option?
35
36 compile.optimize Should compilation include the optimize option?
37
38-->
39
40 <property name="compile.debug" value="true"/>
41 <property name="compile.deprecation" value="true"/>
42 <property name="compile.optimize" value="true"/>
43
44 <!-- classpath : this is for vishnu with Greenstone. For standalone vishnu,
45 make sure all the specified jar files are on the environment CLASSPATH -->
46 <path id="compile.classpath">
47 <pathelement location="${prefix}/lib/jni/mg.jar"/>
48 <pathelement location="${web.lib}/lucene-1.4.1.jar"/>
49 <pathelement location="${catalina.home}/common/lib/servlet-api.jar"/>
50 <pathelement location="${catalina.home}/common/endorsed/xercesImpl.jar"/>
51 <pathelement path="${env.CLASSPATH}"/>
52 </path>
53
54 <path id="ld.library.path">
55 <pathelement location="${prefix}/lib/jni"/>
56 </path>
57 <target name="all" depends="clean,compile"/>
58
59 <target name="clean" depends=""
60 description="Remove the compiled code">
61 <delete dir="${build.dir}"/>
62 </target>
63
64 <target name="compile" depends=""
65 description="Compile the code">
66 <mkdir dir="${build.dir}"/>
67 <javac srcdir="${src.dir}"
68 destdir="${build.dir}"
69 debug="${compile.debug}"
70 deprecation="${compile.deprecation}"
71 optimize="${compile.optimize}">
72 <classpath>
73 <path refid="compile.classpath"/>
74 </classpath>
75 </javac>
76 <jar destfile="${build.dir}/vishnu.jar">
77 <fileset dir="${build.dir}">
78 <include name="vishnu/**"/>
79 </fileset>
80 <manifest>
81 <attribute name="Built-By" value="${user.name}" />
82 </manifest>
83 </jar>
84 <copy file="${build.dir}/vishnu.jar" todir="${web.lib}"/>
85 <!--<mkdir dir="${web.classes}/vishnu/server"/>
86 <copy file="${build.dir}/vishnu/server/VisServlet.class"
87 todir="${web.classes}/vishnu/server"/>-->
88
89
90 </target>
91</project>
Note: See TracBrowser for help on using the repository browser.