ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Todd" <>
Subject RE: Could you please?
Date Sat, 02 Dec 2000 20:01:40 GMT
This request makes me wonder whether it might be worth it to create some
sort of build file 'repository' or 'library' (in the public library sense,
rather than the programming sense).  While the Ant docs are really good
(IMHO), particularly for an open source project, it sometimes helps newbies
to see examples of entire build files.

I still consider myself an Ant newbie, and I've learned a lot from reading
other peoples' build files, particularly other OSS projects (e.g. JDOM,
Castor, Ant, Tomcat, practically any java-related apache project, etc.).
Seeing how an entire build file is put together is something that is hard to
get from the docs, which present each task on its own and independent of all
other tasks.  Not only am I an Ant newbie, but also a general
Java/programming newbie, and I've learned a lot about how to organize a
software project from examining build files (the 'Developing Web
Applications with Tomcat' doc that comes with Tomcat was also good in that

As I work more and more with Ant, I am beginning to see build-related design
patterns.  Perhaps we could somewhow catalog those Ant-related
design/usage/style patterns?  Just a thought.

Sincerest regards,
Chris Todd
Software Engineer
Alabanza Corporation

>-----Original Message-----
>From: Michael O. Duffy []
>Sent: Saturday, December 02, 2000 2:53 PM
>Subject: Re: Could you please?
>Here's a generic one that I use for projects.  It assumes a
>standard directory
>structure (src for .java files, classes for .class files, lib for
>.jar files,
>docs for javadocs, etc.).  There are five useful tasks:
>clean - flushes out the classes directory and the .jar files.
>compile - compiles all the .java source files.
>deploy - creates a .jar file and puts it in the deploy directory.
>test - runs JUnit tests
>docs - generates javadocs
>I can reuse it for other projects just by changing a few
>parameters.  I hope
>you like it, too.
>If anybody has any suggestions or improvements, please let me
>know.  Thanks -
>Howard Lee wrote:
>> Could any of you please send me a basic build.xml file? I'm new
>to Ant, and
>> am having a tough time getting it to compile when I add classpath in it.
>> Thank you very much.
>> howard

View raw message