The availability test in
for the availability of the junit jar is broken because
it tests for
the existence of a particular file in a particular
the jar file may be installed elsewhere (e.g. in
under a different name (e.g. junit-3.8.0.jar).
The attached patch fixes the test to check for the
availability of a
particular class instead.
Also note that assuming you can copy a file into the
directly is broken, because that may be allowed if it
from an rpm (hence is not writable by non-root users); the
$HOME/.ant/lib/ location is a safer place for such things.