Changeset 15124


Ignore:
Timestamp:
03/23/08 15:57:45 (13 years ago)
Author:
shaoqun
Message:

add codes for flax and remove all annoying Ms

File:
1 edited

Legend:

Unmodified
Added
Removed
  • greenstone3/trunk/build.xml

    r15098 r15124  
    11<?xml version="1.0"?>
    2 
    32<!-- ======================================================================
    43     March 2005                                                   
    54
    65     Greenstone3 build and install script
    7                    
     6                 
    87     kjdon                                                               
    98     ====================================================================== -->
     
    1817
    1918    <!-- ============ self defined tasks =================== -->
    20 
    2119    <taskdef name="mysetproxy" classname="org.greenstone.anttasks.MySetProxy" classpath="${basedir}/lib/java/anttasks.jar"/>
    2220    <taskdef name="getuserandpassword" classname="org.greenstone.anttasks.MyGetUserAndPassword" classpath="${basedir}/lib/java/anttasks.jar"/>
     
    7068  <!-- other files needed by the servlet go here -->
    7169  <property name="web.classes" value="${web.home}/WEB-INF/classes"/>
     70  <!--- flax: the WordNet home -->
     71  <property name="wn.home" value="${web.home}/WEB-INF/classes/flax/WordNet"/>
     72
    7273  <!-- jni libraries and java wrappers go here -->
    7374  <property name="lib.jni" value="${basedir}/lib/jni"/>
     
    256257    <pathelement path="${env.PATH}"/>
    257258    <pathelement path="${env.Path}"/>
     259    <pathelement path="${wn.home}/bin"/>
    258260  </path>
    259261
     
    296298    description="Configure the installation. Includes setting up config files. Should be re-run if you change the build.properties file."/>
    297299
    298   <target name="clean" depends="init,clean-gdbm,clean-packages,clean-core,clean-gs2building"
     300  <target name="clean" depends="init,clean-packages,clean-core,clean-gs2building"
    299301    description="Remove all old compiled code. Includes core, packages and gs2building if necessary"/>
    300302 
     
    597599      <env key="LD_LIBRARY_PATH" path="${env.LD_LIBRARY_PATH}:${lib.jni}"/>
    598600      <env key="DYLD_LIBRARY_PATH" path="${env.DYLD_LIBRARY_PATH}:${lib.jni}:${gdbm.installed.path}/lib"/> <!-- for mac os -->
     601      <env key="WNHOME" path="${wn.home}"/>
    599602    </exec>
    600603    <exec executable="${catalina.home}/bin/startup.bat" os="${os.windows}" dir="${catalina.home}/bin" spawn="true">
     
    11251128            <export srcUrl="${svn.root}/gsdl/${branch.path}/WIN32cfg.h" destPath="gs2build/WIN32cfg.h"/>
    11261129        </svn>
    1127 
    11281130  </target>
    11291131 
     
    11361138  <target name="prepare-gs2building" depends="init,prepare-gs2build,prepare-gli" if="collection.building.enabled">
    11371139  </target>
    1138 
    11391140    <target name="checkout-gs2build" depends="init" if="collection.building.enabled" unless="nocvs.mode">
    11401141        <!-- please keep this function in sync with update-gs2build -->
     
    12121213            <export srcUrl="${svn.root}/gsdl/${branch.path}/WIN32cfg.h" destPath="gs2build/WIN32cfg.h"/>
    12131214        </svn>
    1214 
    12151215    </target>
    12161216
     
    14921492    <mkdir dir="${basedir}/web/interfaces/flax"/>
    14931493    <mkdir dir="${basedir}/web/sites/flax"/>
    1494      <mkdir dir="${basedir}/flax-resources"/>
     1494    <mkdir dir="${basedir}/flax-resources"/>
     1495    <mkdir dir="${basedir}/flax-lib"/>
    14951496    <svn>
    14961497      <checkout url="${flax.svn.root}/flax1.0/trunk/src/java/org/flax/" 
     
    15061507      <checkout url="${flax.svn.root}/flax1.0/trunk/flax-resources"
    15071508                destPath="${basedir}/flax-resources"/>
     1509      <checkout url="${flax.svn.root}/flax1.0/trunk/lib"
     1510                destPath="${basedir}/flax-lib"/>
    15081511    </svn>
    15091512     <echo>prepare flax files...</echo>
     
    15111514    <antcall target="flax-copy-files" />
    15121515    <antcall target="unzip-flax-collections" />
     1516    <antcall target="unzip-flax-resources" />
    15131517   </target>
    15141518
     
    15371541    </delete>
    15381542  </target>
     1543
     1544 <target name="unzip-flax-resources" >
     1545    <property name="classes.dir" value="${basedir}/web//WEB-INF/classes/flax"/>
     1546    <unzip dest="${classes.dir}"> 
     1547      <fileset dir="${classes.dir}">
     1548    <include name="*.zip"/>
     1549       </fileset>   
     1550    </unzip>   
     1551    <delete>
     1552      <fileset dir="${classes.dir}" includes="*.zip"/>
     1553    </delete>
     1554  </target>
    15391555   
    15401556   <target name="flax-copy-files" description="copy some flax files into the appropriate greenstone3 directories">
     
    15441560           <copy file="${basedir}/web/WEB-INF/classes/flax/server-config.wsdd" todir="${basedir}/web/WEB-INF" overwrite="true" />
    15451561           <copy file="${basedir}/flax-resources/flax-build.xml" todir="${basedir}" overwrite="true" />
    1546    
     1562           <copy file="${basedir}/flax-lib/opennlp-tools-1.3.0.jar" todir="${basedir}/web/WEB-INF/lib" overwrite="true" />   
    15471563   </target>
    15481564      <!--install gdbm stuff -->
    15491565
    15501566  <!-- downloads the gdbm library -->
    1551   <target name="prepare-gdbm" depends="init" if="install.gdbm"> 
     1567  <target name="prepare-gdbm" depends="init" if="install.gdbm">
    15521568      <get src="http://www.greenstone.org/gs3files/gdbm-1.8.3.tar.gz"
    15531569       dest="${src.packages.home}/gdbm-1.8.3.tar.gz"  usetimestamp="true"/>
Note: See TracChangeset for help on using the changeset viewer.