You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Marc H. Graham" <dr...@bellatlantic.net> on 2005/11/03 22:21:31 UTC

A newbie question: how not to do anything

Most make systems I'm familiar with have a "don't do it; just tell me
what you would do if you were going to do anything." This is a really
useful service when you're debugging a script, just to see if you've got
the logic/parameters right. I can't find that in Ant. A serious
drawback, I think. Any workarounds?

Marc H. Graham
Sr. Director, Technology
SS&C Technologies
mgraham@sscinc.com

412 421 9407


Re: A newbie question: how not to do anything

Posted by Matt Benson <gu...@yahoo.com>.
--- "Marc H. Graham" <dr...@bellatlantic.net> wrote:

> Most make systems I'm familiar with have a "don't do
> it; just tell me
> what you would do if you were going to do anything."
> This is a really
> useful service when you're debugging a script, just
> to see if you've got
> the logic/parameters right. I can't find that in
> Ant. A serious
> drawback, I think. Any workarounds?

One technique I use is to use <preset|macro|scriptdef>
internally to your build file.  You can set these
conditionally depending on what "mode" you are running
in, but this is only useful up to a point, mostly for
fairly atomic operations.  This technique could become
exponentially difficult with each subsequent "task".

FWIW,
Matt


> 
> Marc H. Graham
> Sr. Director, Technology
> SS&C Technologies
> mgraham@sscinc.com
> 
> 412 421 9407
> 
> 



		
__________________________________ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com

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