Sunday, May 16, 2010

lib/optional vs. lib directories

I tried running "ant test" and every test failed. For some reason it would not find junit-3.8.5.jar in the path even though "ant -Ddest=optional -buildfile fetch.xml" automatically put it in my lib/optional directory.

I moved junit-3.8.5.jar from lib/optional to lib and started seeing successful tests.

Not all tests passed though. The ones which depended upon other optional jar files still failed, such as the ones using the JAI jars.

What I found was that fetch.xml needs to put ALL of the optional jar files in the lib directory, not lib/optional.

Once I moved them all, all tests passed.

No comments:

Post a Comment