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

Last change on this file since 21217 was 21217, checked in by kjdon, 11 years ago

need to substitute @gsdlhome@ in VSprops.properties

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