ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher" <jakarta-...@ehatchersolutions.com>
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.

    Erik


----- Original Message -----
From: <lduperval@microcelli5.com>
To: <ant-user@jakarta.apache.org>
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
place
> are really those I expect. It's more to verify that I'm correct rather
than
> 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
or
> renames files, stuff like that).
>
> For example, I've had at least one instance where my .ant.properties 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 <mailto:lduperval@microcelli5.com>
>
> "I realized that the purpose of writing is to inflate ideas, obscure poor
> reasoning, and inhibit clarity."
>                                     -Calvin
>
>
>
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message