Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

a Good Example of ant best practices [closed]

Tags:

java

ant

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.

like image 989
Jason S Avatar asked Jun 05 '09 13:06

Jason S


2 Answers

You might want to also look at the Ant Usage Guides from the Ant Wiki.

like image 178
Kathy Van Stone Avatar answered Sep 22 '22 07:09

Kathy Van Stone


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.

like image 33
Yishai Avatar answered Sep 21 '22 07:09

Yishai