----- Original Message ----- From: "Matthew Oatham" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 07, 2003 04:48 Subject: Java Development with ANT
>Recently got Java Development with ANT book, while it is proving to be extremely useful and well written I feel I am >missing something. well, lets try and clarify it. There is also a web page discussion on the publishers site (under http://manning.com/antbook ) so that ant users dont get too distracted by details related to a particular book. >on page 113 the Search class is listed, it imports 2 other classes supposedly created by the reader >org.example.antbook.common.Document and SearchUtil . Where in the previous pages of the book were these >classes created? Or weren't they? I'm a littled confused about the application the example tries to create, is it >introduced later in the book? The overall applicaiton was released and updated by erik recently (http://www.ehatchersolutions.com/servlets/blogscene/JavaDevWithAnt/) ...it is essentially a web app to do full text searching of documents; we chose the ant docs themselves. You can find the classes you need there. The reason we left stuff out the book was that we were trying to show ant build files, rather than random bits of code, >I've just read CH4 (the one about JUnit) this also seemed a little vague about the test classes to create. Are these >introduced later on? No, if there is confusion here we should clarify it now. What do you mean by the test classes? To do a unit test, you write a class that extends junit.TestCase, the convention in ant based dev being to call it SomethingTest so that *Test.java can find all tests in a directory. In each TestCase subclass, you write methods called testSomeFeature() then run the junit gui, the IDE junit hosting or ant's <junit> class over them. Is that any clearer? -steve --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]