ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Berry <christopher.be...@etrade.com>
Subject RE: looping (RE: Foreach task)
Date Tue, 12 Jun 2001 15:39:26 GMT
> 
> The way I'd solve this problem in app management ( which is 
> not necessarily
> the same as the problem in ant ) is to have a separate 
> task/script/whatever
> that reproducably generated a list of the interesting apps.  
> This would
> probably start with something vaguely like a
> 
> find . -name build.xml -ls \
>        | decide-if-my-map-needs-updating \
>        | munge-list-into-properties-enumeration  \
>        > to-be-included-in-build.xml
> 
> But I tend to see it as a meta-build problem.  And you see, 
> the problem is
> -not- "how do I run ant on a bunch of dependant build.xml 
> files", but rather,
> "how do I specify a changing set of build.xml files, oh and I 
> think I'd like
> to do it -this- way."
> 

But aren't portability and simplicity also goals?? Scripts tend to be
non-portable (although Jython is a 100% Java possibility here), and
defintely result in more artifacts. And to my sensibility, it is nice having
a seamless solution.  But yes, yours is an alternate solution. Thanks.

Mime
View raw message