This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I wrote one, but it is too specific for our co. I need make it more general, then put in my FAQ collection. Unfortunately, I don't have the time for now. However, I found Log4J project's build.xml is simple enough for beginner to digest, and complete enough to learn a lot of ant. Just a suggestion. Need Java real project experience? Join our project team here!
Here's a very good introduction from Builder.com. In case you haven't known yet, Builder.com is a newly-launced site for developers by TechRepublic. Also, don't forget to read the sequel which is currently featured at the home page. Ex Animo Java! -- Val
"Knowledge is power, but enthusiasm is the key." -- Lavern Barn
Ant 101 from a junior programmer: I downloaded Ant from Jakarta and set the ANT_HOME variable and added ANT_HOME\bin to the path. Then I started reading the documentation in the manual (\docs\manual\index.html). I took the build.xml example from the section Using Ant in the manual and started playing with it. When it dawned on me how it worked, I kept adding more and more tasks. I was amazed at the power and speed of Ant. The build.xml is basically a lists of tasks you CAN do (compile, copy, create a war file, etc.), combined with target directives which specify which tasks you WILL do with a particular target setting. The first time I used Ant I just used someone else's build.xml and changed some variables. It did the job, but I did not really understand how it worked. The second time I built my own build file, and then I was able to do much more with it, because I had grasped the idea behind it. Enjoy Ant! It can save you a lot of time.
As several people have mentioned, the Ant Documentation is very good. This week's book giveaway features Java Tools for Extreme Programming, which is all about integrating Ant and other open source tools into real projects. Also, Manning has a book in production on Ant, authored by Steve Loughran and Erik Hatcher. I've gotten a sneak peek at it, and if you need more information than JTFXP can provide, it should be the definitive reference. Cheers, Nicholas Lesiecki
Principal Software Engineer<br />eBlox, Inc.<br />(520) 615-9345 x104<br />Check out my new book!:<br /><a href="http://www.amazon.com/exec/obidos/ASIN/047120708X/" target="_blank" rel="nofollow"><br />Java Tools for Extreme Programming: Mastering Open Source Tools, including Ant, JUnit, and Cactus<br /></a><br /><a href="http://www.rickhightower.com/JavaXPToolkit/" target="_blank" rel="nofollow">More Info</a><br /> <br /><br />Check out my article on <a href="http://www-106.ibm.com/developerworks/java/?loc=dwmain" target="_blank" rel="nofollow">AspectJ.</a>
Thanks for the links everyone, i started reading the ant documentation 2 weeks ago.....and neede some more source, to confirm that i was actually understanding what was going on... but i do have another question Nicholas, do you know of any good links for JUnit, and Cactus??? if you know of some, please let me know... thanks
---<br />Nothing is impossible, only improbable !!!
Joined: Mar 09, 2001
The ant documentation is very good, but it is not a tutorial. I was looking for something more along those lines. I was looking for the "quick fix" for learning ant. I will check out some of the links you have posted. Thanks.