Ignore:
Timestamp:
2008-05-27T19:29:06+12:00 (16 years ago)
Author:
ak19
Message:

Added in the targets for GSearchInstaller.jar

File:
1 edited

Legend:

Unmodified
Added
Removed
  • other-projects/trunk/gs3-webservices-democlient/build.xml

    r15734 r15735  
    1515 <property name="src.dir" value="${basedir}/src" />
    1616 <property name="democlient.rootdir" value="${src.dir}/GS3DemoClient" />
     17 <property name="democlient.src" value="${democlient.rootdir}/org" />
    1718 <property name="fedorags3.rootdir" value="${src.dir}/GS3Fedora" />
    18  <property name="democlient.src" value="${democlient.rootdir}/org" />
    1919 <property name="fedorags3.src" value="${fedorags3.rootdir}/org" />
     20 <property name="gsearchinstaller.rootdir" value="${src.dir}/GSearchInstaller" />
     21 <property name="gsearchinstaller.src" value="${gsearchinstaller.rootdir}/org" />
     22
    2023 <property name="build" value="${basedir}/build" />
    2124 <property name="dist" value="${basedir}/dist" />
     
    6568        <echo>- ant update</echo>
    6669        <echo>  for getting the latest version of CheckJavaVersion.java, and the files for creating the gs3_for_client.jar dependency from Greenstone's SVN repository</echo>
     70    <echo>- ant GSearchInstallerjar</echo>
     71        <echo>  for generating the GSearchInstaller.jar application that helps in installing Fedora Generic Search (if you have Fedora installed).</echo>
    6772</target>
    6873
     
    8085</target>
    8186
    82 <target name="make-dist" description="Generates the zip file of the lib and src folders and the executable ${exec.jar.name} file" depends="get-zipformat,ensure-exec-jar" if="zip.type">
     87<target name="make-dist" description="Generates the zip file of the lib and src folders and the executable ${exec.jar.name} file" depends="get-zipformat,ensure-exec-jar,ensure-gsearchinstall-jar" if="zip.type">
    8388   <mkdir dir="${dist}" />
    8489   <antcall target="create-${zip.type}"/>
     
    100105</target>
    101106
    102 <target name="clean" description="Removes all class files from the GS3DemoClient and GS3Fedora source folders" depends="clean-democlient">
     107<target name="clean" description="Removes all class files from the GS3DemoClient, GS3Fedora, GSearchInstaller source folders" depends="clean-democlient">
    103108   <delete>
    104109    <fileset dir="${fedorags3.src}" includes="**/*.class"/>
    105    </delete>
    106 </target>
    107 
    108 <target name="dist-clean" description="Removes the project-specific jars fedoraGS3.jar, QBRdata.jar, ${exec.jar.name} files AND all class files from the GS3DemoClient and GS3Fedora source folders" depends="clean">
     110    <fileset dir="${gsearchinstaller.src}" includes="**/*.class"/>
     111   </delete>
     112</target>
     113
     114<target name="dist-clean" description="Removes the project-specific jars fedoraGS3.jar, QBRdata.jar, ${exec.jar.name} files AND all class files from the GS3DemoClient, GS3Fedora and GSearchInstaller source folders" depends="clean">
    109115   <delete includeEmptyDirs="true" failonerror="false">
     116    <fileset file="${basedir}/GSearchInstaller.jar"/>
    110117    <fileset file="${basedir}/lib/fedoraGS3.jar"/>
    111118    <fileset file="${basedir}/lib/QBRdata.jar"/>
     
    196203</target>
    197204
     205<!-- Target that generates the GSearchInstaller jar file -->
     206<target name="GSearchInstallerjar" description="Compiles and creates the jar file for the stand-alone GSearchInstaller application">
     207   <javac srcdir="${gsearchinstaller.rootdir}"/>
     208   <jar destfile="GSearchInstaller.jar"
     209     basedir="${gsearchinstaller.rootdir}/"
     210     manifest="${gsearchinstaller.rootdir}/Manifest.MF"/>
     211</target>
     212
    198213<!-- Targets that check for and ensure the existence of project-specific jar files -->
    199214<target name="check-QBRdata-jar" description="Checks for existence of dependency file QBRdata.jar">
     
    226241<target name="ensure-exec-jar" description="Will generate ${exec.jar.name} if it did not exist" depends="check-exec-jar" unless="executable.exists">
    227242    <antcall target="build-demo-client"/>
     243</target>
     244
     245<!-- Targets that check for and ensure the existence of standalone application GSearchInstaller.jar -->
     246<target name="check-gsearchinstall-jar" description="Checks for existence of stand-alone application GSearchInstaller.jar">
     247    <condition property="gsearchinstaller.exists">
     248    <available file="GSearchInstaller.jar"/>
     249    </condition>
     250</target>
     251
     252<target name="ensure-gsearchinstall-jar" description="Will generate GSearchInstaller.jar if it did not exist" depends="check-gsearchinstall-jar" unless="gsearchinstaller.exists">
     253    <antcall target="GSearchInstallerjar"/>
    228254</target>
    229255
Note: See TracChangeset for help on using the changeset viewer.