ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Herman, Dave" <>
Subject RE: init
Date Wed, 09 Jan 2002 21:53:30 GMT
This isn't an answer to your question, but I was thinking about starting a
"Best Practices" page, perhaps for the developers to put up on the Ant web
site. I've had the same problems as you, trying to learn the Right way.

Would people be interested in such a web page? I'll be glad to head off the
effort. Perhaps it could just start as a conversation here on the mailing
list, and I could collect the results in the web page.

Since these things tend towards holy wars, I'd try to be pretty moderate and
collect the generally accepted practices, and then maybe have a separate
section for more controversial topics.

Dave Herman

> -----Original Message-----
> From: Joe Cheng []
> Sent: Wednesday, January 09, 2002 2:41 PM
> To: 'Ant Users List'
> Subject: init
> Is there something wrong with this:
> <target name="init">
>     ... set some properties ...
> </target>
> <target name="compile" depends="init">
>     ... some tasks ...
> </target>
> as opposed to doing the init tasks outside of any target, 
> which is what most
> examples seem to do?  I moved all that stuff to an init 
> target because now
> an "available" task needs to be part of it.  But someone 
> mentioned on this
> list that doing so was a bad thing but didn't elaborate on it...
> I've been working with Ant for a while now but I'm no release 
> engineer, so
> it's been a struggle trying to figure out what the Ant 
> developers consider
> the Right way to do a buildfile.
> Thanks,
> -jmc
> --
> To unsubscribe, e-mail:   
> <>
> For additional commands, e-mail: 
> <>

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

View raw message