Changeset 165

Show
Ignore:
Timestamp:
08/19/09 13:55:13 (2 years ago)
Author:
martijn
Message:

Fix for classpath problems in picr

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/picr/build.xml

    r152 r165  
    1212  </target> 
    1313 
     14  <path id="class.path"> 
     15    <fileset dir="lib"> 
     16      <include name="*.jar"/> 
     17    </fileset> 
     18    <fileset dir="../dist"> 
     19      <include name="bridgedb.jar"/> 
     20      <include name="bridgedb-bio.jar"/> 
     21    </fileset> 
     22  </path> 
     23 
    1424  <target name="build" depends="prepare"> 
    1525        <javac srcdir="src" 
     
    1727                   debug="true" 
    1828                   destdir="build"> 
    19                 <classpath> 
    20                         <pathelement location="../dist/bridgedb.jar"/> 
    21                         <pathelement location="../dist/bridgedb-bio.jar"/> 
    22                 </classpath> 
     29                <classpath refid="class.path"/> 
    2330        </javac> 
    2431  </target> 
    2532   
    2633  <target name="jar" depends="build"> 
     34    <manifestclasspath property="manifest.cp" jarfile="${jar.name}"> 
     35      <classpath refid="class.path" /> 
     36    </manifestclasspath> 
     37    <echo>${manifest.cp}</echo> 
    2738        <jar jarfile="${jar.name}"> 
    2839          <manifest> 
    29                 <attribute name="Class-Path" value="bridgedb-bio.jar bridgedb.jar"/> 
     40                <attribute name="Class-Path" value="${manifest.cp}"/> 
    3041          </manifest> 
    3142          <fileset dir="build"/> 
    3243          <fileset dir="src" includes="**/*.properties"/> 
    3344        </jar> 
     45    <copy toDir="../dist"><path refid="class.path"/></copy> 
    3446  </target> 
    3547