• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Ant tutorial

 
Ranch Hand
Posts: 2676
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can anyone recommend a basic tutorial on Ant? I have never used a build tool so I would like to see what one can do for me.
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Drat. I saw this topic name from the 'main' page, and thought someone was announcing a tutorial.

Most people give the advice of looking at a bunch of ant build scripts to get the idea, but unfortunately, they are all either too simple, or WAY too complex for a beginner like me.
 
Matthew Phillips
Ranch Hand
Posts: 2676
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That is the problem that I am having. My wife really doesn't want me to buy another book, but I may have to put my foot down (so she can step on it ).
 
Sheriff
Posts: 17734
302
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thomas Paul wrote an article for the newsletter. See his post in MO on Feb 25. It has the link to his article in the temp directory.
Junilu
 
mister krabs
Posts: 13974
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Junilu Lacar:
Thomas Paul wrote an article for the newsletter. See his post in MO on Feb 25. It has the link to his article in the temp directory.
Junilu


Of course, until published only bartenders and sheriffs can see it.
Meanwhile, JavaReport had an article in their October 2001 issue and JavaDevelopersJournal had an article in their June 2001 issue.
 
Thomas Paul
mister krabs
Posts: 13974
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you can wait until May:
http://www.amazon.com/exec/obidos/ASIN/0596001843/
 
Thomas Paul
mister krabs
Posts: 13974
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Junilu Lacar:
Thomas Paul wrote an article for the newsletter. See his post in MO on Feb 25. It has the link to his article in the temp directory.
Junilu



It was published in this month's newsletter!
 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Some Ant links:
Ant in Anger
Extending Ant to support interactive builds
Incremental Development with Ant and JUnit
Ant User Manual
 
Ranch Hand
Posts: 1953
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You Can download Ant Document from Jakarta site. It is pretty good.
 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I found this article on O'Reilly's pages quite helpful to understand some of the basic terminology, it also contains some mroe links to example implementations:
http://www.onjava.com/pub/a/onjava/2001/02/22/open_source.html
 
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 885
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here's a link to another ant tutorial. I hope it helps!
http://softwaredev.earthweb.com/sdtech/article/0,,12065_989631,00.html
 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Matthew Phillips
Ranch Hand
Posts: 2676
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
try this:
http://www.ant.harvard.edu/ANT-1.0/ant.ps
 
Nicholas Lesiecki
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The best place to start with Cactus is:
Cactus Home Page
The best place to start with JUnit:
JUnit.org
Good luck!
Nicholas Lesiecki
 
Thomas Paul
mister krabs
Posts: 13974
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Nicholas Lesiecki:
Also, Manning has a book in production on Ant, authored by Steve Loughran and Erik Hatcher.

O'Reilly has an upcoming book on Ant.
http://www.amazon.com/exec/obidos/ASIN/0596001843
reply
    Bookmark Topic Watch Topic
  • New Topic