Changeset 27846


Ignore:
Timestamp:
07/13/13 19:56:45 (8 years ago)
Author:
davidb
Message:

Target added that means the Solr extension is now automatically added to main java code, and installs an example collection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/build.xml

    r27834 r27846  
    620620  <!-- ==================== Primary and Global Targets ============================= -->
    621621
    622   <target name="prepare" depends="accept-properties,init,prepare-core,prepare-packages,prepare-common-src,prepare-collection-building,prepare-tomcat,prepare-axis,prepare-web,prepare-collections, prepare-flax"
     622  <target name="prepare" depends="accept-properties,init,prepare-core,prepare-packages,prepare-common-src,prepare-collection-building,prepare-tomcat,prepare-axis,prepare-web,prepare-collections,prepare-solr-ext, prepare-flax"
    623623    description="Use this when you first checkout the code: 'ant prepare install'. This will do some additional subversion checkouts and downloads, so you need to be online to run this.">
    624624
     
    10421042    <echo>collection lucene-jdbm-demo installed</echo>
    10431043  </target>
     1044
     1045 
     1046  <target name="prepare-solr-ext" depends="init" >
     1047    <exec executable="ant" dir="${solr-ext.home}" spawn="false">
     1048      <arg value="add-service"/>
     1049    </exec>
     1050    <antcall target="solr-jdbm-demo-install"/>
     1051  </target>
     1052
     1053  <target name="solr-jdbm-demo-prepare" if="collect.dir">
     1054    <property name="solr-jdbm-demo.dir" value="${collect.dir}/solr-jdbm-demo"/>
     1055    <available file="${solr-jdbm-demo.dir}/${index.zip}" property="solr-jdbm-demo.present"/>
     1056  </target>
     1057
     1058  <target name="solr-jdbm-demo-install" if="solr-jdbm-demo.present" depends="solr-jdbm-demo-prepare">
     1059    <unzip dest="${solr-jdbm-demo.dir}" src="${solr-jdbm-demo.dir}/${index.zip}"/>
     1060    <echo>collection solr-jdbm-demo installed</echo>
     1061  </target>
     1062
    10441063
    10451064  <target name="set-perl-shebangs" depends="perl-for-building">
Note: See TracChangeset for help on using the changeset viewer.