I’ve just been tripped up by ant & JUnit. I’m appalled. All the proposed solutions are both hackish and ugly. I don’t actually care about the intricacies of ClassLoaders. I just want a simple way to tell ant “junit is over here” so that my build and tests will work on whatever system I check out on. I don’t want to have to install stuff into the ant directory on each system. I already have junit.jar
in my codebase, and it should be able to use it.
I suppose I could get around it by writing a build.sh
which sets the CLASSPATH correctly, but I thought ant was supposed to avoid all that?