File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes IDEs, Version Control and other tools and the fly likes Ant Junit integration . Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Ant Junit integration ." Watch "Ant Junit integration ." New topic

Ant Junit integration .

jay vas
Ranch Hand

Joined: Aug 30, 2005
Posts: 407
Hi guys .... Im used to doing builds with maven, and am looking at an ant file. Can somebody tell me where the "magic" happens, where in ant recursively "finds" all the test classes ? the **Test seems like it might be the source, but I'm wondering how exactly ant interprets the lines following "batchtest fork...".

Peter Johnson

Joined: May 14, 2008
Posts: 5812

In Ant, using "**/" within a filename means that Ant will consider all subdirectories, starting from the directory mentioned in <fileset>, when looking for the files.

JBoss In Action
It is sorta covered in the JavaRanch Style Guide.
subject: Ant Junit integration .
Similar Threads
Ant/JUnit, BatchTest: ClassNotFound...
Ant build failed: Reference application not found
Ant/JUnit, BatchTest: ClassNotFound...
Ant with JUnit
ant and junit, kicking my butt