ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Berry <>
Subject Java Resources and JUnit task
Date Mon, 14 May 2001 22:52:47 GMT
I am attempting to read a System Resource (i.e.
ClassLoader.getSystemResource( resourceName ). Where resource name is
something like: "/config/". I am trying to do this in a JUnit
task. I don't know why, but the file is not found. (Although I am certain
that it is in the Classpath).
Does anyone have any insight for me???

-- Chris

The build.xml snippet follow::

  <property name="efc.lib" value="${basedir}/lib" />
  <property name="" value="${basedir}/build/java" />
  <property name="efc.ted.toplevel" value="${basedir}/../ted" />

  <path id="et-classpath">
    <pathelement location="${}" />
    <fileset id="efc_jars" dir="${efc.lib}">
      <include name="**/*.jar" />
    <pathelement location="${efc.ted.toplevel}" />

  <target name="test-1" if="testcase">
    <junit printsummary="yes" haltonfailure="yes" fork="no">
      <jvmarg value="-classic"/>
      <classpath refid="et-classpath"/>
      <formatter type="plain" usefile="false" />
      <test name="${testcase}" />

View raw message