Show
Ignore:
Timestamp:
10/27/09 13:17:57 (3 years ago)
Author:
martijn
Message:

Created test target for all modules

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/webservice/build.xml

    r139 r221  
    1313  </target> 
    1414 
     15        <path id="class.path"> 
     16                <pathelement location="../dist/bridgedb.jar"/> 
     17                <pathelement location="../dist/bridgedb-bio.jar"/> 
     18                <pathelement location="lib/restlet-2.0m3/org.restlet.jar"/> 
     19        </path> 
     20         
    1521  <target name="build" depends="prepare"> 
    1622        <javac srcdir="src" 
     
    1824                   debug="true" 
    1925                   destdir="build"> 
    20                 <classpath> 
    21                         <pathelement location="../dist/bridgedb.jar"/> 
    22                         <pathelement location="../dist/bridgedb-bio.jar"/> 
    23                         <pathelement location="lib/restlet-2.0m3/org.restlet.jar"/> 
    24                 </classpath> 
     26                <classpath refid="class.path"/> 
    2527        </javac> 
    2628  </target> 
     
    4951        <delete dir="${dist.dir}/org.restlet.jar"/> 
    5052  </target> 
     53   
     54        <target name="test" depends="build"> 
     55                <path id="test.classpath"> 
     56                        <path refid="class.path"/> 
     57                        <pathelement location="build"/> 
     58                        <pathelement location="../corelib/lib/derby.jar"/> 
     59                        <pathelement location="../corelib/build-lib/junit.jar"/> 
     60                </path> 
     61                <javac srcdir="test" debug="true"  
     62                                        includes="**" 
     63                                        destdir="build" 
     64                                        source="1.5"> 
     65                        <classpath refid="test.classpath"/> 
     66                </javac>                 
     67<!-- Disabled for now...                 
     68        <junit printsummary="on" haltonfailure="true" fork="true"> 
     69                        <formatter type="brief" usefile="false"/> 
     70                        <classpath refid="test.classpath"/> 
     71                        <batchtest> 
     72                                <fileset dir="test"> 
     73                                        <include name="**/*Test*.java"/> 
     74                                </fileset> 
     75                        </batchtest> 
     76                </junit> --> 
     77        </target> 
     78         
    5179</project>