ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher" <>
Subject Re: Dumb question: equivalent of make -n?
Date Fri, 25 Jan 2002 15:35:29 GMT
This is what JUnit is for!  :)

Write some test cases to ensure that your tasks are behaving as expected.
Ant's codebase has infrastructure I encourage you to investigate and perhaps
borrow for your own custom tasks.

You could workaround by having some conditional targets that depended on
targets that output key properties, and just run once without setting the
property, and then again after you've verified things are set as you desire
with the conditional property set.


----- Original Message -----
From: <>
To: <>
Sent: Friday, January 25, 2002 9:58 AM
Subject: Re: Dumb question: equivalent of make -n?

> On 25 Jan, Erik Hatcher wrote:
> > No, Ant has no such option.  This would be difficult given Ant's
> > differences with make - make handles the dependency checking itself,
> > whereas Ant's tasks handle it.
> >
> > What exactly do you want to "verify" about a new task?
> >
> That I've written it correctly and that the operations that will take
> are really those I expect. It's more to verify that I'm correct rather
> that ant is correct. This is more important to me when I'm writing a
> destructive task (a task that can change data in a database, that deletes
> renames files, stuff like that).
> For example, I've had at least one instance where my file
> contained the incorrect schema for a test I was doing and I modified the
> wrond data. It wasn't a critical error but it coulda been.
> L
> --
> Laurent Duperval <>
> "I realized that the purpose of writing is to inflate ideas, obscure poor
> reasoning, and inhibit clarity."
>                                     -Calvin
> --
> To unsubscribe, e-mail:   <>
> For additional commands, e-mail: <>

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

View raw message