Ignore:
Timestamp:
2012-10-25T19:20:58+13:00 (12 years ago)
Author:
ak19
Message:

The build.xml file will now additionally call updateIndex CreateEmpty on installing Fedora Gsearch, so that the usual error message about an empty index doesn't appear when building with FLI for the first time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs3-extensions/fedora/build.xml

    r26391 r26404  
    1515
    1616  <!-- PROPERTIES -->
     17
     18  <!-- need to have FEDORA_HOME env correctly defined -->
    1719
    1820  <!--<property name="gsdl3src.home" value="../..${basedir}"/>-->
     
    9698      *********************************************************
    9799      1. Adjust ${gsdl3src.home}/build.properties to set up Fedora.
    98       2. Then restart the Greenstone tomcat. Once it's started up,
    99       3. Return to this extension directory and run: ant continue-fedora-install
     100      2. Then restart the Greenstone 3 tomcat. This will take some time the first time around.
     101      3. Once tomcat's started up, return to this extension directory and run: ant continue-fedora-install
    100102      *********************************************************
    101103    </echo>
     
    111113    <!-- call the fgsconfig-basic.xml buildfile in GS3/packages/tomcat/webapps/fedoragsearch/FgsConfig's
    112114     ant -f fgsconfig-basic.xml -->
     115    <echo>
     116      Configuring Fedora GSearch
     117    </echo>
    113118    <ant dir="${gsdl3src.home}/packages/tomcat/webapps/fedoragsearch/FgsConfig" antfile="fgsconfig-basic.xml"/>
    114119   
    115120    <!-- give read execute permissions to all (755) for the fedoragsearch files -->
     121    <echo>
     122      Giving executable permissions to Fedora GSearch scripts
     123    </echo>
    116124    <chmod file="${gsdl3src.home}/packages/tomcat/webapps/fedoragsearch/client/runRESTClient.sh" perm="755"/>
    117125    <chmod file="${gsdl3src.home}/packages/tomcat/webapps/fedoragsearch/client/runSOAPClient.sh" perm="755"/>
    118126   
     127    <!-- call Update EmptyIndex on GSearch to create the initial index (segments) file:
     128     .../webapps/fedoragsearch/client/runRESTClient.sh <host:port> updateIndex createEmpty <indexName>   
     129
     130     Where the indexName is FgsIndex. If it is made customisable, then template files need
     131     to change to contain placeholders wherever the indexName is mentioned.
     132     To run the upateIndex command, need GSearch username and pwd set in the environment. -->
     133    <echo>
     134      Calling UpdateIndex CreateEmpty on Fedora GSearch to create a new index
     135    </echo>
     136    <exec osfamily="unix" spawn="false"
     137      executable="${gsdl3src.home}/packages/tomcat/webapps/fedoragsearch/client/runRESTClient.sh">   
     138      <env key="fgsUserName" value="fedoraAdmin"/>
     139      <env key="fgsPassword" value="${fedora.password}"/>
     140      <arg value="${tomcat.server}:${tomcat.port}"/>
     141      <arg value="updateIndex"/>
     142      <arg value="createEmpty"/>
     143      <arg value="FgsIndex"/>
     144    </exec>
     145   
     146    <exec osfamily="windows" spawn="false"
     147      executable="cmd">
     148      <env key="fgsUserName" value="fedoraAdmin" />
     149      <env key="fgsPassword" value="${fedora.password}" />
     150      <arg value="/c"/>
     151      <arg value="${gsdl3src.home}\\packages\\tomcat\\webapps\\fedoragsearch\\client\\runRESTClient.bat"/>
     152      <arg value="${tomcat.server}:${tomcat.port}" />
     153      <arg value="updateIndex" />
     154      <arg value="createEmpty" />
     155      <arg value="FgsIndex" />
     156    </exec>
     157
    119158    <echo>
    120159      *********************************************************
    121       1. Stop the Greenstone Tomcat. (Check it's stopped: ps aux | grep tomcat)
    122       2. Then to complete fedora installation, return to this extension directory and run: ant finish-fedora-install.
    123       This will clear the war files since they have already been deployed.
     160      0. Don't worry about the IndexNotFoundException message. It always does this.
     161      1. Stop your Greenstone 3 tomcat. (Check it's stopped: ps aux | grep tomcat)
     162      2. Then, to complete fedora installation, return to this extension directory and run: ant finish-fedora-install.
     163      This will clear the war files, since they have already been deployed by now.
    124164      *********************************************************
    125165    </echo>
Note: See TracChangeset for help on using the changeset viewer.