Registry / build-tool / ant-junit

ant-junit

JSON →
library1.10.17javamavenunverified

Contains Ant tasks for running JUnit tests and generating reports.

<dependency> <groupId>org.apache.ant</groupId> <artifactId>ant-junit</artifactId> <version>1.10.17</version> </dependency>
INSTALL
IMPORT
SIG · ANT-JUNIT
A
ant-junit
build-tooljavav1.10.17
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

JUnitTask
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask

Execute JUnit tests via Ant task.

import org.apache.tools.ant.taskdefs.optional.junit.JUnitTask; import org.apache.tools.ant.BuildException; JUnitTask task = new JUnitTask(); task.setHaltonfailure(true); task.execute();
Debug
Known issues
breakingAnt JUnit tasks require JUnit 3 or 4; not compatible with JUnit 5.
fix
Use the junitlauncher task for JUnit 5 or migrate to Maven/Gradle.
affects: >=1.10.0
Upgrade
Version history
1.10.17latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
57 hits · last 30 days
node
48
Amazon
1
OpenAI (training)
1
Resources
ant-junit — mvn dependency:get ant-junit · libregistry