Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Feb 2002 11:47:15 -0500 (EST)
From:      patrick@freebsd.org
To:        Jeff Dalton <jeff@aiai.ed.ac.uk>
Cc:        freebsd-java@freebsd.org
Subject:   RE: What is ant good for?
Message-ID:  <XFMail.20020226114715.patrick@freebsd.org>
In-Reply-To: <23033.200202261608@todday>

next in thread | previous in thread | raw e-mail | index | archive | help
Well, you could say the same thing about "make", if you've used it.  

It's funny you should bring this up right now, since I was writing an ant build
file to compile our JMS server code in the office.  Just taking the default
build.xml from the docs did nearly everything I wanted it to do.  I just wrote
it, added a classpath tag, and I was set.

It does work out the dependencies, so that's taken care of.

Whether or not you use it depends on how complex your build is right now.  To
build using ant, you just type "ant".  Then it does the rest for you.  Much
nicer in a group environment than trying to figure out how to compile
something, with a large number of jars, etc.  If you just type "javac
com/blah/test/*.java", you probably don't need ant.  Otherwise, you would be
better off learning ant.  It's not that tough.  Really.

Patrick

On 26-Feb-2002 Jeff Dalton wrote:
> I've been reading the "tools" discussion, and all I use is emacs,
> jdk, and Netscape for reading the on-line documentation.  The only
> change I'm tempted to make is to start using ant.
> 
> But every time I've looked at anyone's ant script (is script
> the right word?), it's seemed alarmingly complex.
> 
> So I'm wondering whether ant does anything that would make it
> worth the effort of learning to use it.
> 
> Does it, for instance, work out the dependencies between files
> to determine what needs to be recompiled and what doesn't?
> 
> -- Jeff
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-java" in the body of the message

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20020226114715.patrick>