ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cos...@apache.org
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
  Log:
  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}" />
      </path>
  
      <classloader pathRef="myJars" 
                   reverse="true" >
        
      </classloader>
      <junit />
    
    </target>
  
    <target name="main" depends="init">
      <echo message="Found JUNIT" />
    </target>
  
  </project>
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message