Changeset 30246 for gs2-extensions


Ignore:
Timestamp:
09/21/15 10:12:06 (5 years ago)
Author:
jmt12
Message:

Added in commands to install the TDB libraries in the correct place for Greenstone3 to find

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs2-extensions/tdb/trunk/build.xml

    r30179 r30246  
    1 <project name="tdb-edit" basedir="." default="install">
     1<project name="tdb" basedir="." default="compile">
     2  <echo>os.name: ${os.name}</echo>
    23  <property environment="env"/>
    3   <property name="installdir" value="${basedir}/installed/linux"/>
    4  
    5   <target name="install">
     4  <!-- Eventually install.lib needs to be OS aware -->
     5  <property name="installdir" value="${basedir}/linux"/>
     6  <property name="install.lib" value="${basedir}/linux/lib"/>
     7  <property name="lib.jni" value="${basedir}/../../lib/jni"/>
     8
     9  <target name="compile">
    610    <exec executable="/bin/bash">
    711      <arg value="-c"/>
     
    1014  </target>
    1115
    12   <target name="uninstall">
     16  <target name="clean" depends="uninstall">
    1317    <exec executable="/bin/bash">
    1418      <arg value="-c"/>
     
    1721    <delete dir="${installdir}"/>
    1822  </target>
     23
     24  <target name="install" depends="compile">
     25    <echo>Install the TDBJava files into lib/jbi</echo>
     26    <copy file="${install.lib}/TDBJava.jar" todir="${lib.jni}"/>
     27    <copy file="${install.lib}/libTDBJava.so" todir="${lib.jni}"/>
     28    <copy file="${install.lib}/libtdb.so" todir="${lib.jni}"/>
     29  </target>
     30
     31  <target name="uninstall">
     32    <delete file="${lib.jni}/TDBJava.jar" />
     33    <delete file="${lib.jni}/libTDBJava.so" />
     34    <delete file="${lib.jni}/libtdb.so" />
     35  </target>
    1936</project>
Note: See TracChangeset for help on using the changeset viewer.