source: gs3-extensions/pharos/trunk/build.xml@ 20983

Last change on this file since 20983 was 20983, checked in by davidb, 14 years ago

Initial files for Phrasos extension to Greenstone3

File size: 2.4 KB
Line 
1<?xml version="1.0"?>
2<project name="pharos" basedir="." default="help">
3
4 <!-- ??? whats the best way to get this???-->
5 <property name="gsdl3srchome" value="../.."/>
6
7 <!-- ============ classpath =================== -->
8 <path id="project.classpath">
9 <fileset dir="${gsdl3srchome}/lib/java">
10 <include name="**/*.jar"/>
11 </fileset>
12 </path>
13
14 <!-- ============ self defined tasks =================== -->
15<taskdef name="if" classname="ise.antelope.tasks.IfTask" classpathref="project.classpath"/>
16 <!-- create build.properties if it has not been created yet -->
17<!-- <if>
18 <bool><not><available file="build.properties"/></not></bool>
19 <copy file="build.properties.in" tofile="build.properties"/>
20 </if>-->
21 <!-- now use the properties -->
22 <property file="build.properties"/>
23 <!-- get top level properties - or will we be running this from top level??-->
24 <property file="${gsdl3srchome}/build.properties"/>
25
26 <!-- get properties from the environment -->
27 <property environment="env"/>
28 <property name="tomcat.home" value="${gsdl3srchome}/packages/tomcat"/>
29 <property name="web.home" value="${basedir}/web"/>
30 <property name="cmdlineapi.home" value="${basedir}/cmdline-api-srcpack"/>
31
32 <target name="help" description="print a help message">
33 <echo message=" Execute 'ant -projecthelp' for a list of targets."/>
34 <echo message=" Execute 'ant -help' for Ant help."/>
35 </target>
36 <target name="configure" description="set up all the properties files etc">
37 <!-- set up the pharos tomcat context -->
38 <copy file="${basedir}/resources/tomcat/pharos.xml" tofile="${tomcat.home}/conf/Catalina/localhost/pharos.xml" overwrite="true">
39 <filterset>
40 <filter token="pharoswebhome" value="${web.home}"/>
41 </filterset>
42 </copy>
43
44 <!-- generate VSprops.properties from .in file-->
45 <copy file="${cmdlineapi.home}/VSprops.properties.in" tofile="${cmdlineapi.home}/VSprops.properties" overwrite="true">
46 <filterset>
47 <filter token="imageishome" value="${cmdlineapi.home}"/>
48 <filter token="iisos" value="${env.GSDLOS}"/>
49 <filter token="tomcat.server" value="${tomcat.server}"/>
50 <filter token="tomcat.port" value="${tomcat.port}"/>
51 </filterset>
52 </copy>
53 <mkdir dir="/tmp/vstmpdir"/>
54 <mkdir dir="/tmp/vsupload"/>
55 </target>
56
57 <target name="display">
58 <echo>gsdl3home ${gsdl3srchome}</echo>
59 <echo> tomcat port: ${tomcat.port}</echo>
60 <echo> tomcat url: ${tomcat.server}</echo>
61 </target>
62</project>
63
64
65
Note: See TracBrowser for help on using the repository browser.