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

Last change on this file since 20990 was 20990, checked in by davidb, 11 years ago

Additional configuration of .in files

File size: 3.5 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 <property name="derbydb.home" value="${basedir}/web/derbyDB"/>
32 <property name="webservices.home" value="${basedir}/web/WEB-INF/services"/>
33 <property name="webclasses.home" value="${basedir}/web/WEB-INF/classes"/>
34
35 <target name="help" description="print a help message">
36 <echo message=" Execute 'ant -projecthelp' for a list of targets."/>
37 <echo message=" Execute 'ant -help' for Ant help."/>
38 </target>
39 <target name="configure" description="set up all the properties files etc">
40 <!-- set up the pharos tomcat context -->
41 <copy file="${basedir}/resources/tomcat/pharos.xml" tofile="${tomcat.home}/conf/Catalina/localhost/pharos.xml" overwrite="true">
42 <filterset>
43 <filter token="pharoswebhome" value="${web.home}"/>
44 </filterset>
45 </copy>
46
47 <!-- generate VSprops.properties from .in file-->
48 <copy file="${cmdlineapi.home}/VSprops.properties.in" tofile="${cmdlineapi.home}/VSprops.properties" overwrite="true">
49 <filterset>
50 <filter token="imageishome" value="${cmdlineapi.home}"/>
51 <filter token="iisos" value="${env.GSDLOS}"/>
52 <filter token="tomcat.server" value="${tomcat.server}"/>
53 <filter token="tomcat.port" value="${tomcat.port}"/>
54 </filterset>
55 </copy>
56
57 <!-- generate CBSE.properties from .in file-->
58 <copy file="${webservices.home}/CBSE.properties.in" tofile="${webservices.home}/CBSE.properties" overwrite="true">
59 <filterset>
60 <filter token="tomcat.server" value="${tomcat.server}"/>
61 <filter token="tomcat.port" value="${tomcat.port}"/>
62 </filterset>
63 </copy>
64
65 <!-- generate log4j.properties from .in file-->
66 <copy file="${webclasses.home}/log4j.properties.in" tofile="${webclasses.home}/log4j.properties" overwrite="true">
67 <filterset>
68 <filter token="tomcathome" value="${tomcat.home}"/>
69 </filterset>
70 </copy>
71
72
73 <!-- generate empty DB if one does not already exist -->
74
75 <copy todir="${derbydb.home}/gsImageSearchDB" overwrite="false">
76 <fileset dir="${derbydb.home}/gsImageSearchDB.empty"/>
77 </copy>
78
79 <mkdir dir="/tmp/vstmpdir"/>
80 <mkdir dir="/tmp/vsupload"/>
81 </target>
82
83 <target name="display">
84 <echo>gsdl3home ${gsdl3srchome}</echo>
85 <echo> tomcat port: ${tomcat.port}</echo>
86 <echo> tomcat url: ${tomcat.server}</echo>
87 </target>
88</project>
89
90
91
Note: See TracBrowser for help on using the repository browser.