ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject cvs commit: jakarta-ant/src/etc/testcases/taskdefs classloader.xml
Date Tue, 24 Dec 2002 01:21:26 GMT
costin      2002/12/23 17:21:26

  Added:       src/etc/testcases/taskdefs classloader.xml
  A small build test for <classloader>
  I don't know how this can be included in the junit tests
  ( at least the part that loads optional tasks ) since the
  test env already includes most classes.
  In order to test - you need to run this without junit.jar
  in ant/lib and to pass the path to junit.jar
  Revision  Changes    Path
  1.1                  jakarta-ant/src/etc/testcases/taskdefs/classloader.xml
  Index: classloader.xml
  <project name="classloader-test" default="main" basedir=".">
    <target name="init">
      <path id="myJars" >
        <!-- both ant-junit.jar and junit.jar must be loaded from the same path -->
        <pathelement path="${ant.home}/lib/ant-junit.jar" />
        <pathelement path="${junit.jar}" />
      <classloader pathRef="myJars" 
                   reverse="true" >
      <junit />
    <target name="main" depends="init">
      <echo message="Found JUNIT" />

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message