ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ron Jeffries <>
Subject Re: Exception in Style
Date Tue, 25 Apr 2006 10:25:31 GMT
On Tuesday, April 25, 2006, at 5:53:51 AM, Steve Loughran wrote:

>> What's known "out there" about how to test and regression test an
>> Ant script?

> the purpose of a sequence of tasks is to move a build from one state
> "clean" to another "ready-to-ship" or "deployed".  All you need is 
> assertions in the build to verify that the final state meets the 
> criteria you desire.

Hmm ... so for my site's script, I could, if the assertions were
strong enough, assert (for all x, x.html is newer than x.xml), plus
similarly for some named files (index.html newer than *.xml except

That would be handy ... in fact it would be handy if Ant just let me
assert the end state and did the job. ;->

> If you check out Ant from SVN, there is an antunit antlib that provides
> a set of assertions for testing things. I'll cover it the forthcoming
> 2nd edition of Java Development with Ant, albeit in the context of 
> testing tasks you write yourself.

I'll watch for the assertions to become part of the release, and for
the book. As I'm just using Ant for this one task in my life,
creating my web site, I may choose not to go down the SVN path.

I'll probably have to at least take a look, though -- it sounds

Ron Jeffries
You have to either laugh or cry.  -- Bill Rogers

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message