Using junit inside ant, I would like to exclude inner classes. Right now I have junit running all classes like **/*Test*, but when I make an anonymous inner class in the Test case it makes a new *.class file like MyTest$1.class in addition to the MyTest.class, and then junit tries to execute the inner class.

Erik Hatcher

Dollar-signs are escaped with another dollar-sign. So use "**/*Test*$$*" as the exclude pattern.

About | Sitemap | Contact