getPackage() returning null when my JUnit test is run from Ant
- by philharvey
I'm having problems running a JUnit test.
It runs fine in Eclipse, but now I'm trying to run it from the command-line using Ant. The problem is that the following code is returning null: getClass().getPackage().
I'm running my JUnit test like so:
<junit fork="no" printsummary="yes" haltonfailure="no">
<classpath…