ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 7081] New: - junit class loading problems
Date Wed, 13 Mar 2002 11:27:37 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7081>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7081

junit class loading problems

           Summary: junit class loading problems
           Product: Ant
           Version: 1.4.1
          Platform: Other
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: pete.cant@digitalbridges.com


error with following target

<target name="test" depends="build,properties">
    <junit printsummary="yes" haltonerror="yes" haltonfailure="yes">
      <formatter type="brief"/>
      <classpath>
        <pathelement location="${classes.dir}"/>
        <pathelement location="${base.dir}\properties"/> 
        <pathelement location="${unity.jar}"/>
        <fileset dir="${lib.dir}">
          <include name="**/*.jar"/>
      	</fileset>
      </classpath>
      <test name="test.AllTests"/>
    </junit>

  </target>

where lib.jar contains both mytask.jar and junit.jar

The ant junit task does not utilise the settings of the classpath correctly.
It seems to expect the junit jar to be made available prior to the classpath
statement telling it where to locate the jar and thus fails.

Its clearly visible in the ant code.

I have had to deploy junit.jar into the ant lib folder which is not good.

Also an additional task I have written needs to be deployed into the 
lib folder before it will pick it up, is there any way around this.

--
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