Applies to:
Ant 1.7.0
Description:
Ant 1.7.0 doesn’t build from sources without JUnit
Cause:
When building Ant 1.7.0 from the source release without junit.jar the build fails with the message “We cannot build the test jar unless JUnit is present”.
With Ant 1.7.0 ant-testutil.jar is added as part of the distribution and this causes a hard dependency on JUnit – at least in version 1.7.0.
JAVA-Tools "--without-junit", "we cannot build the test jar unless junit is present", ant, ./build.sh error we cannot build the test jar unless junit is present,, add junit.jar to your classpath when building ant., and we cannot build the test jar unless junit is present, ant build "ant-testutiljar" "test-jar", ant build error junit, ant build error we cannot build the test jar unless junit is present, ant build failed we cannot build the test jar unless junit is present, ant build junit present, ant junit is present, ant junit.present, ant make junit test jar, ant unless junit is present, ant we cannot build the test jar unless junit is present, ant1.7 cannot build the test jar unless junit is present, autowired for workmanager is failing in junit, build ant junit not present, build ant we cannot build the test jar unless junit is present, build failed we cannot build test jar unless junit is present, building ant without junit, cannot ......unless, cannot build test jar unless junit, cannot build test jar unless junit is present, cannot build the test jar unless junit is present,, change ant's buildfile and remove test-jar from the depends list of the dist-lite target., create jar with junit test, e cannot build the test jar unless junit is present, fail unless="junit.present", how to addjunit.jar to your classpath when building ant, how to build test jar, j, jar ant unless, java jna how to build without junit, java test junit present, junit jar present, junit testjar, junit.present, lcd test.jar, lrm-00118: syntax error at '=' at the end of input, the test jar unless junit is present, unless junit, unless junit ant, unless junit is present, unless junit present, we cannot build test jar, we cannot build test jar unless junit is present, we cannot build the test, we cannot build the test jar, we cannot build the test jar unless, we cannot build the test jar unless junit, we cannot build the test jar unless junit is present, we cannot build the test jar unless junit is present ant build error, we cannot build the test jar unless junit is present, as junit is needed to, we cannot build the test jar unless junit is present, as junit is needed to compile the test classes., we cannot build unless the junit is present
There are two workarounds:
1. Add junit.jar to your CLASSPATH when building Ant.
2. Change Ant’s buildfile and remove test-jar from the depends list of the dist-lite target.