Ant Now A Top Level Apache Project 39
hardcorejon writes "Am I the only person who didn't notice that on November
18th 2002, the Apache Ant Project had migrated out from under the Jakarta Project umbrella to become a top-level Apache project, joining the ranks of the Apache HTTP Server Project?
Well, for those of us who use Ant on a regular basis, this is great news. Ant is an incredibly powerful tool, increasingly a standard build system for many new projects."
What is Apache Ant? (Score:5, Informative)
info about ant [apache.org]
Re:What is Apache Ant? (Score:1)
Re:What is Apache Ant? (Score:3, Insightful)
As opposed to make, which is written in C, which only runs on a few platforms?
Of course, if you're writing Java, Ant will run on exactly the platforms you need it on so it's great. It's great anyway because it's just so easy to use. But portability is not an advantage it has over make.
Reminds me of the debate about converting Python to compile using autoconf/automake because it would be 'more portable'. The Python people won't do it, because Python currently runs on a lot more platforms than autoconf...
Re:What is Apache Ant? (Score:3, Informative)
Re:What is Apache Ant? (Score:4, Informative)
As opposed to make, which is written in C, which only runs on a few platforms?
You can't even copy a file in make without knowing what kind of system your on. Take a look at the targets available in ant some time. Its built to remove the need to access the operating system (as opposed to make, which offers dependency checking and little else.
I'm not trying to fault make... it simply wasn't built to be cross-platform. But lets not pretend that being available on many platforms and allowing cross-platform code are even close to the same thing.Re:What is Apache Ant? (Score:5, Informative)
Actually it is. The reason for this is that make (and it's derivatives) relies upon shell commands to extend it's functionality. These shell commands cause the make file to be incompatible to any platform where that shell is not installed. Ant on the other hand can be extended via java, so these extensions are compatible with any other platform that runs the jvm. If make offered some sort of ability to dynamicly add functionality in a platform neutral way, then make would be as portable as ant.
Re:What is Apache Ant? (Score:3, Funny)
Re:What is Apache Ant? (Score:2)
Re:What is Apache Ant? (Score:2)
Re:What is Apache Ant? (Score:1)
Is there anything that ant could do in this situation that JBuilder (which has downloadable 'free beer' versions available) couldn't or is ant more useful in situations where not everybody is using the same IDE.
Re:What is Apache Ant? (Score:1)
I use IDEA as my IDE, but use ant tasks exclusively for the whole cycle from setting up the environment, compiling, testing and deploying. It also builds schemas from DTDs and feeds them to generator packages that automatically produce Java objects to work with.
And thats just a pretty meager example, there are tasks for virtually everything (it's the way to extend ants functionality). If there's one lacking that does what you want, roll your own, it's easy to extend.
When I'm done testing locally I finally use ant to deploy it to the target clusters.
Couple of colleagues use JBuilder or Forte, but use the same ant build file, and it works like a charm.
look it up at ant.apache.org, you won't regret it.
Re:What is Apache Ant? (Score:2)
Yes, but (Score:2, Funny)
Alternatives to ant and autoconf et al? (Score:5, Interesting)
This is somewhat off-topic, but reading about Ant remembered me of a question I've been meaning to ask the net for some time now. Since it involves software for building software, this thread may be a good place to do it (and it's only karma, anyway :-)
For a long time I've been wishing that there was an alternative to autoconf. I mean, autoconf is useful, and I still don't know of a better way to build complex stuff on a lot of platforms. But it is painfully slow on small machines, it's hell to make it run on Win32, and it is way too complex, requiring you to write scripts that run through three different interpreters (sh, m4 and make), each with more than their fair share of syntactic weirdness and idiosyncrasies.
(I'm using it for a product we're developing in my company, and I'm the only one who knows how the build system works. It's black magic for everyone else. I do work with very competent programmers, but only I have the patience for making autoconf scripts. Granted, we push it a bit hard: one of our targets is Win32. That part is the worse. Cross-compiling and running from cygwin, with libtool and all that, is tough shit. Every now and then I get so pissed off with it that I start writing plain Makefiles, one for each architecture/OS. Then I reconsider, realize the maintenance hell that would become, and go back to work even blacker magic on the acinclude.m4's... *sigh*)
So, this Ant here I welcomed with high hopes some months ago, and then dumped it just as fast. The thing is: it's Java. It requires you to install a JVM to build a project. Some of our build machines, the most exotic ones, are so small that I would say they're barely able to run the monstruous configure scripts that autoconf creates... So, run a JVM. Right.
Also, when I tried it, Ant was good to build Java stuff, but required some serious hacking to make it build C or C++ (or anything else, for that matter). Since it was targeted to build projects on essentially one platform (Java), it's really hard to make it check for availability of libraries or headers, and to define macros for conditional compilation and stuff. And of course, it didn't have all that "knowledge" autoconf has accumulated over the years, with regard to the subtle peculiarities of each platform. So I found Ant to be nothing more than a fancy make. And I already have make.
So, I'd like to ask: Is Ant any better for non-Java stuff these days? Is someone using it for non-Java projects? And, while I'm at it, does anyone know of a practical alternative for autoconf?
Re:Alternatives to ant and autoconf et al? (Score:1, Offtopic)
David
Re:Alternatives to ant and autoconf et al? (Score:1)
Re:Alternatives to ant and autoconf et al? (Score:5, Informative)
Some alternatives to ant/make are
There's also something called Cons, but it needs perl to work. See this [gnu.org].
I haven't found a good alternative to autoconf yet. There used to be Metaconfig, but I don't know who maintains it any more (or where). It produces configure scripts similar to what you see when you configure perl. This guy [cr.yp.to] uses some unreleased software package for his build systems that tend to work really well -- for C code under Unix.
Come to think of it, if someone ports/writes a build tool in C#, you'd be set.
Re:Alternatives to ant and autoconf et al? (Score:2, Informative)
http://nant.sourceforge.net/ [sourceforge.net]
For Java, Ant is one of the few options. You cannot be sure perl/make etc are installed on a user's platform, but if they're grabbing Java code, they have Java.
Re:Alternatives to ant and autoconf et al? (Score:2, Interesting)
Re:Alternatives to ant and autoconf et al? (Score:4, Informative)
One nice thing does is dependency check based on header file inclusion info, and your compiler settings. So you dont need to state dependencies, the task works it out for your. slick.
OSS Ant? (Score:1, Offtopic)
Ant, etc.. (Score:4, Interesting)
Imho, I think this was over-due as it was getting a little confusing. I hear talk at one point that apache would become another source-forge, but I'm glad to see the (oldest, most well-known, most respected?) OSS project has maintained focus.
And makes too many assumptions. (Score:3, Interesting)
Re:And makes too many assumptions. (Score:4, Informative)
You can have a very minimal build.xml that does this, and automates things like JAR builds. For a project where you're already using Java, I wouldn't use anything else. It even plugs into most Java IDEs, if you're the sort who uses those
silly things
Re:And makes too many assumptions. (Score:5, Informative)
Re 2: uh ok, add src/ to the runtime classpath
Re 3: uh ok, see Re 1.
Re 0: you can, in fact, put your build and source in the same dir.
Re spellcheck:
Ant is not, as a core distribution, everything and the kitchen sink... it is an, arguably, minimal set of tools required for a meaningful build process. However, ant is completely modular and there are hundreds of articles describing how to add custom tasks to it. It was designed with this clearly in mind. If you have a spellchecker in mind you can build a new task in 20 mins and use it in your next build, or just exec it.
You, sir, make too many assumptions.
Scott
Re:And makes too many assumptions. (Score:5, Informative)
But if we werent strict control freaks, who would be?
As for redisting source in your OSS project, yes, that is trivial; everything does it, just multiple s.
You say the benefit of giving everyone the source is that they can modify it. I agree, but also, what if you want the recipients to build it, That is where ant is great; anyone on PC, Mac, Linux, AS/400, Netware,
-steve
(ant developer, co-author of Java Development with Ant,...)
Visual C++ Development (Score:2, Interesting)
-Mike
Re:Visual C++ Development (Score:2)
IMHO, Ant is really a Java-oriented tool. It will work for other languages, but it shines when used as an incremental class building tool for Java.
Use make. There are plenty of make apps that run on more than one platform. Some even integrate reasonably well with MSVC; though I'm guessing a lot of shops simply use the IDE to do an initial setup, and then hand-edit everything from then on...
Please don't use nmake. It is an abomination.
Not Only Ant... (Score:3, Informative)
db.apache.org [apache.org] (OJB and Torque)
avalon.apache.org [apache.org] (The Avalon server framework).
Plus Tapestry is moving into Jakarta. If you look around there really is a lot going on over at Apache, especially within the Jakarta projects.