Are you sure your test class is in the build
folder? You're invoking junit
in a separate JVM (fork=true) so it's possible that working folder would change during that invocation and with build
being relative, that may cause a problem.
Run ant from command line (not from Eclipse) with -verbose or -debug switch to see the detailed classpath / working dir junit
is being invoked with and post the results back here if you're still can't resolve this issue.
Вам не нужно добавлять jar-файл JUnit в путь к классам. Если ant не может его найти, задача
не будет запущена.
Я предлагаю попробовать разные способы указания пути к классам, как описано в документе ant по адресу http: // ant.apache.org/manual/using.html#path; в частности
может помочь.
Если нет, то предложение ChssPly76 о запуске ant -debug из командной строки является лучшим выбором. Вы захотите увеличить буфер в окне командной строки, потому что отладчик ant очень подробный.