[20983] | 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="../.."/>
|
---|
[21258] | 6 | <property name="gsdl3home" value="../../web"/>
|
---|
[20983] | 7 |
|
---|
| 8 | <!-- ============ classpath =================== -->
|
---|
| 9 | <path id="project.classpath">
|
---|
| 10 | <fileset dir="${gsdl3srchome}/lib/java">
|
---|
| 11 | <include name="**/*.jar"/>
|
---|
| 12 | </fileset>
|
---|
| 13 | </path>
|
---|
[20990] | 14 |
|
---|
[20983] | 15 | <!-- ============ self defined tasks =================== -->
|
---|
| 16 | <taskdef name="if" classname="ise.antelope.tasks.IfTask" classpathref="project.classpath"/>
|
---|
| 17 | <!-- create build.properties if it has not been created yet -->
|
---|
| 18 | <!-- <if>
|
---|
| 19 | <bool><not><available file="build.properties"/></not></bool>
|
---|
| 20 | <copy file="build.properties.in" tofile="build.properties"/>
|
---|
| 21 | </if>-->
|
---|
| 22 | <!-- now use the properties -->
|
---|
| 23 | <property file="build.properties"/>
|
---|
| 24 | <!-- get top level properties - or will we be running this from top level??-->
|
---|
| 25 | <property file="${gsdl3srchome}/build.properties"/>
|
---|
| 26 |
|
---|
| 27 | <!-- get properties from the environment -->
|
---|
| 28 | <property environment="env"/>
|
---|
[21217] | 29 | <property name="gsdlhome" value="${env.GSDL3SRCHOME}/gs2build"/>
|
---|
[20983] | 30 | <property name="tomcat.home" value="${gsdl3srchome}/packages/tomcat"/>
|
---|
| 31 | <property name="web.home" value="${basedir}/web"/>
|
---|
[20986] | 32 | <property name="derbydb.home" value="${basedir}/web/derbyDB"/>
|
---|
[20990] | 33 | <property name="webservices.home" value="${basedir}/web/WEB-INF/services"/>
|
---|
| 34 | <property name="webclasses.home" value="${basedir}/web/WEB-INF/classes"/>
|
---|
[20983] | 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-->
|
---|
[21258] | 49 | <copy file="${basedir}/resources/java/VSprops.properties.in" tofile="${basedir}/classes/VSprops.properties" overwrite="true">
|
---|
[20983] | 50 | <filterset>
|
---|
[21254] | 51 | <filter token="pharosishome" value="${basedir}"/>
|
---|
[21217] | 52 | <filter token="gsdlhome" value="${gsdlhome}"/>
|
---|
[21254] | 53 | <filter token="pharosos" value="${env.GSDLOS}"/>
|
---|
[20983] | 54 | <filter token="tomcat.server" value="${tomcat.server}"/>
|
---|
| 55 | <filter token="tomcat.port" value="${tomcat.port}"/>
|
---|
| 56 | </filterset>
|
---|
| 57 | </copy>
|
---|
[20986] | 58 |
|
---|
[20990] | 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 |
|
---|
[20986] | 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 |
|
---|
[20983] | 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>
|
---|
[21258] | 90 |
|
---|
| 91 | <path id="compile.classpath">
|
---|
| 92 | <pathelement location="${basedir}/pharos-imageis-lib.jar"/>
|
---|
| 93 | <!-- Include all jar files in the lib directory -->
|
---|
| 94 | <fileset dir="${basedir}/lib">
|
---|
| 95 | <include name="*.jar"/>
|
---|
| 96 | </fileset>
|
---|
| 97 | <!-- Include all jar files in gsdl3 web/lib -->
|
---|
| 98 | <!-- <pathelement location="${gsdl3srchome}/web/lib"/>-->
|
---|
| 99 | <fileset dir="${gsdl3home}/WEB-INF/lib">
|
---|
| 100 | <include name="*.jar"/>
|
---|
| 101 | </fileset>
|
---|
| 102 | <!--<pathelement location="{gsdl3srchome}/build/gsdl3.jar"/>-->
|
---|
| 103 | </path>
|
---|
| 104 |
|
---|
| 105 | <target name="compile" description="Compile up the PharosImageIS classes">
|
---|
| 106 | <javac srcdir="${basedir}/src/java"
|
---|
| 107 | destdir="${basedir}/classes"
|
---|
| 108 | debug="${compile.debug}"
|
---|
| 109 | deprecation="${compile.deprecation}"
|
---|
| 110 | optimize="${compile.optimize}">
|
---|
| 111 | <classpath>
|
---|
| 112 | <path refid="compile.classpath"/>
|
---|
| 113 | </classpath>
|
---|
| 114 | </javac>
|
---|
[21268] | 115 | <jar destfile="pharos-imageis.jar">
|
---|
| 116 | <fileset dir="${basedir}/classes">
|
---|
| 117 | <include name="imageis/**"/>
|
---|
| 118 | </fileset>
|
---|
| 119 | <manifest>
|
---|
| 120 | <attribute name="Class-Path" value="./ lib/commons-io-1.4.jar lib/activation-1.1.jar lib/annogen-0.1.0.jar lib/axiom-api-1.2.7.jar lib/axiom-dom-1.2.7.jar lib/axiom-impl-1.2.7.jar lib/axis2-adb-1.4.1.jar lib/axis2-adb-codegen-1.4.1.jar lib/axis2-ant-plugin-1.4.1.jar lib/axis2-clustering-1.4.1.jar lib/axis2-codegen-1.4.1.jar lib/axis2-corba-1.4.1.jar lib/axis2-fastinfoset-1.4.1.jar lib/axis2-java2wsdl-1.4.1.jar lib/axis2-jaxbri-1.4.1.jar lib/axis2-jaxws-1.4.1.jar lib/axis2-jaxws-api-1.4.1.jar lib/axis2-jibx-1.4.1.jar lib/axis2-json-1.4.1.jar lib/axis2-jws-api-1.4.1.jar lib/axis2-kernel-1.4.1.jar lib/axis2-metadata-1.4.1.jar lib/axis2-mtompolicy-1.4.1.jar lib/axis2-saaj-1.4.1.jar lib/axis2-saaj-api-1.4.1.jar lib/axis2-spring-1.4.1.jar lib/axis2-xmlbeans-1.4.1.jar lib/backport-util-concurrent-3.1.jar lib/commons-codec-1.3.jar lib/commons-fileupload-1.2.jar lib/commons-httpclient-3.1.jar lib/commons-io-1.4.jar lib/commons-logging-1.1.1.jar lib/geronimo-annotation_1.0_spec-1.1.jarlib/geronimo-stax-api_1.0_spec-1.0.1.jar lib/httpcore-4.0-beta1.jar lib/httpcore-nio-4.0-beta1.jar lib/jalopy-1.5rc3.jar lib/jaxb-api-2.1.jar lib/jaxb-impl-2.1.6.jar lib/jaxb-xjc-2.1.6.jar lib/jaxen-1.1.1.jar lib/jettison-1.0-RC2.jar lib/jibx-bind-1.1.5.jar lib/jibx-run-1.1.5.jar lib/log4j-1.2.15.jar lib/mail-1.4.jar lib/mex-1.4.1.jar lib/neethi-2.0.4.jar lib/soapmonitor-1.4.1.jar lib/woden-api-1.0M8.jar lib/woden-impl-dom-1.0M8.jar lib/wsdl4j-1.6.2.jar lib/wstx-asl-3.2.4.jar lib/xalan-2.7.0.jar lib/xercesImpl-2.8.1.jar lib/xml-apis-1.3.04.jar lib/xml-resolver-1.2.jar lib/xmlbeans-2.3.0.jar lib/XmlSchema-1.4.2.jar lib/Ftf2Mpeg7.jar lib/M7v2schema.jar lib/xbean.jar lib/xbean_xpath.jar lib/xmlbeans-qname.jar lib/xmltypes.jar lib/ShotMpeg7.jar lib/pharos-imageis-lib.jar"/>
|
---|
| 121 | <attribute name="Main-Class" value="imageis.ImageIS"/>
|
---|
| 122 | </manifest>
|
---|
| 123 | </jar>
|
---|
[21258] | 124 |
|
---|
| 125 | </target>
|
---|
| 126 |
|
---|
[21277] | 127 | <target name="install" description="copy all the necessary files into gs3 web area">
|
---|
[21258] | 128 | <copy todir="${gsdl3home}/WEB-INF/classes">
|
---|
| 129 | <fileset dir="${basedir}/classes"/>
|
---|
| 130 | </copy>
|
---|
[21268] | 131 | <copy file="${basedir}/pharos-imageis.jar" todir="${gsdl3home}/WEB-INF/lib"/>
|
---|
| 132 | <copy file="${basedir}/lib/pharos-imageis-lib.jar" todir="${gsdl3home}/WEB-INF/lib"/>
|
---|
[21258] | 133 | </target>
|
---|
[20983] | 134 | </project>
|
---|
| 135 |
|
---|
| 136 |
|
---|
| 137 |
|
---|