I have read lots of articles on Ant that explain all sorts of options, and I've read much of the documentation for Ant, but I don't really know the "right" way to do many things. Can anyone recommend a Good Example illustrating how to use Ant? Something that is not too complicated but also not too simple.
I found this one by Doug Sparling (specifically related to Hibernate) and it looks pretty good but was wondering if you folks could comment on it, because I don't want to adopt the style of someone who has questionable habits, but it seems good to me.
You might want to also look at the Ant Usage Guides from the Ant Wiki.
I suggest you look at the ant scripts of open source implementations that use ant for their build script. Typically the ant scripts don't get tremendous love, but they are more robust than a typical in-house job because they are distributed to so many developers that are expected to just run them in a variety of environments.
I would argue that it is a best practice to not worry about your build script beyond the point where it gets the job done and is reasonably maintainable. It is, after all, not the goal of most projects to produce a good build script. Of course, as with any best practice, there are exceptions.
Off hand, the one I looked at for JSR-310 was decent.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With