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.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact