ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Walter, Matthias" <>
Subject ant-problem after upgrading from junit 4.4 to junit 4.6
Date Thu, 14 May 2009 08:49:37 GMT
Hello there,

I'm not quite sure if this is the correct mailing list for my problem,
please forgive me, if not.

I have a problem after upgrading junit from 4.4 to 4.6 on a Hudson

I get the error message:

[junit] Running
[junit] Testsuite:

/some/path/to/my/build.xml:188: java.lang.NoClassDefFoundError:

If I downgrade to junit 4.4 the problem disappears.

Hudson uses a build.xml for performing the tests:

	<target name="test" depends="test-compile" description="runs the
		<junit fork="yes" forkmode="once" printsummary="true" >
			<!-- cobertura.ser Datei einbinden -->
(file)}" />
				<!-- instrumented-cobertura-classes
einbinden -->
					Note the classpath order:
instrumented classes are before the
					original (uninstrumented)
classes.  This is important.
location="${build(folder)}/${build.instrumented-classes(folder)}" />
location="${build(folder)}/${build.classes(folder)}" />	
location="${source(folder)}/${source.resources(folder)}" />
der)}" />
(folder)}" />
dir="${test(folder)}/${test.lib(folder)}" includes="**/*.jar" />
				<fileset dir="${lib(folder)}"
includes="**/*.jar" />
				<path refid="cobertura.classpath" />
			<formatter type="brief" usefile="false" />
			<formatter type="xml" />
dir="${test(folder)}/${test.source(folder)}" includes="**/*" />

older)}" />

I reported the problem in the junit-forum and I was given the advice:

This appears to be a hard-coded dependency from ant to an internal class
in JUnit. Can you bring it up on an ant forum? Encourage them to report
problems to, or the JUnit issue tracker.

This is why I'm posting it here.

Can you help me?

Thanks in advance, Matthias

Informationen (einschliesslich Pflichtangaben) zu einzelnen, innerhalb der EU
taetigen Gesellschaften und Zweigniederlassungen der CITTI-Gruppe finden Sie unter Diese E-Mail enthaelt vertrauliche
und/oder rechtlich geschuetzte Informationen. Wenn Sie nicht der richtige Adressat
sind oder diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort
den Absender und vernichten Sie diese E-Mail. Das unerlaubte Kopieren sowie die
unbefugte Weitergabe dieser E-Mail ist nicht gestattet.

Please refer to for information
(including mandatory corporate particulars) on selected CITTI branches and group
companies registered or incorporated in the European Union. This e-mail may contain
confidential and/or privileged information. If you are not the intended recipient
(or have received this e-mail in error) please notify the sender immediately and
delete this e-mail. Any unauthorized copying, disclosure or distribution of the
material in this e-mail is strictly forbidden.


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

View raw message