ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Danilo B├╝rger <danilo.fabian.buer...@student.uni-augsburg.de>
Subject Junit Integration Problem
Date Sun, 13 Mar 2005 18:42:53 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hey,

I would like to integrate Junit into Ant as specified by 3. in
http://ant.apache.org/manual/OptionalTasks/junit.html ("3. Do neither
of the above, and instead, specify their locations using a <classpath>
element in the build file.  See the FAQ for details.")

Now i have the junit.jar (3.8.1) and also the xalan.jar in my projects
lib/ directory. I have the following target:

      <path id="class.path" description="The main build classpath">
          <pathelement location="${build.dir}/classes"/>
          <fileset dir="${lib.dir}" includes="**/*.jar"/>
      </path>

      <target name="junit" depends="..." description="...">
          <junit printsummary="yes">
              <classpath refid="class.path"/>
          </junit>
      </target>

I am still getting the famous "Ant could not find the task or a class
this task relies upon." error.

It works with methods 1. and 2. specified in the manual but i would
like the 3rd. I also tried to remove the ant-junit.jar as specified in
the faq, that didnt help either.

Any help would be appreciated :-)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Darwin)

iD8DBQFCNInDFG7pbP1EbVMRAkyrAJ9plwfcP5cGRVp95Zf5hIa75avmXwCeNTzV
jNPjIAK6to55HTgtW8NV4Yg=
=fS9H
-----END PGP SIGNATURE-----


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message