Changeset 21258 for gs3-extensions

Show
Ignore:
Timestamp:
04.12.2009 13:29:58 (10 years ago)
Author:
kjdon
Message:

some locations changed, added compile and install targets

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gs3-extensions/pharos/trunk/build.xml

    r21254 r21258  
    44  <!-- ??? whats the best way to get this???--> 
    55  <property name="gsdl3srchome" value="../.."/> 
     6  <property name="gsdl3home" value="../../web"/> 
    67 
    78  <!-- ============ classpath =================== --> 
     
    4647 
    4748    <!-- generate VSprops.properties from .in file--> 
    48     <copy file="${basedir}/VSprops.properties.in" tofile="${basedir}/VSprops.properties" overwrite="true"> 
     49    <copy file="${basedir}/resources/java/VSprops.properties.in" tofile="${basedir}/classes/VSprops.properties" overwrite="true"> 
    4950      <filterset> 
    5051    <filter token="pharosishome" value="${basedir}"/> 
     
    8788    <echo> tomcat url: ${tomcat.server}</echo> 
    8889  </target> 
     90 
     91  <path id="compile.classpath"> 
     92    <pathelement location="${basedir}/pharos-imageis-lib.jar"/> 
     93    <!-- Include all jar files in the lib directory --> 
     94    <fileset dir="${basedir}/lib"> 
     95      <include name="*.jar"/> 
     96    </fileset> 
     97    <!-- Include all jar files in gsdl3 web/lib --> 
     98<!--    <pathelement location="${gsdl3srchome}/web/lib"/>--> 
     99    <fileset dir="${gsdl3home}/WEB-INF/lib"> 
     100      <include name="*.jar"/> 
     101    </fileset> 
     102    <!--<pathelement location="{gsdl3srchome}/build/gsdl3.jar"/>--> 
     103  </path> 
     104   
     105  <target name="compile" description="Compile up the PharosImageIS classes"> 
     106    <javac srcdir="${basedir}/src/java" 
     107      destdir="${basedir}/classes" 
     108      debug="${compile.debug}" 
     109      deprecation="${compile.deprecation}" 
     110      optimize="${compile.optimize}"> 
     111      <classpath> 
     112        <path refid="compile.classpath"/> 
     113      </classpath> 
     114    </javac> 
     115 
     116  </target> 
     117 
     118  <target name="install-into-greenstone" description="copy all the nexessary files into gs3 web area"> 
     119    <copy todir="${gsdl3home}/WEB-INF/classes"> 
     120      <fileset dir="${basedir}/classes"/> 
     121    </copy> 
     122    <copy file="${basedir}/pharos-imageis-lib.jar" todir="${gsdl3home}/WEB-INF/lib"/> 
     123  </target> 
    89124</project> 
    90125