ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ciramella, EJ" <ECirame...@emptoris.com>
Subject RE: Anything like a "<foreach>" task ?
Date Mon, 14 Apr 2003 19:29:18 GMT
HAHAHA, you win - just as long as the build file that uses this foreach is
the highest level build file.

Just moaning from my past experiences of adding third party jars to the
build process and all developers hating it...

-----Original Message-----
From: Matt Benson [mailto:gudnabrsam@yahoo.com]
Sent: Monday, April 14, 2003 3:17 PM
To: Ant Users List
Subject: RE: Anything like a "<foreach>" task ?


And now for a vote on which is more evil: 
supplemental jars or platform-dependent <exec> tasks?


--- "Ciramella, EJ" <ECiramella@emptoris.com> wrote:
> If you want to not use these other jars, use "exec"
> and the windows "for"...
> 
> -----Original Message-----
> From: Rich Wagner [mailto:richmwagner@hotmail.com]
> Sent: Monday, April 14, 2003 3:05 PM
> To: user@ant.apache.org
> Subject: Re: Anything like a "<foreach>" task ?
> 
> 
> >Everyone on the list will be racing to answer this
> one.
> 
> Oops: I was afraid I was asking a FAQ; sorry...
> 
> 
> >Both the ant-contrib and Antelope projects (both
> >on Sourceforge) provide a <foreach> task.
> 
> Thanks, Matt, I got the "ant-contrib" version.
> 
> (NO NEED FOR OTHERS TO ANSWER !)
> 
> -- Rich
> 
> 
> 
> >--- Rich Wagner <richmwagner@hotmail.com> wrote:
> > > Hi Folks,
> > >
> > > I've been converting several Windows batch and
> UNIX
> > > shell scripts to Ant
> > > build files (quite successfully, I might add:
> > > platform independence is a
> > > good thing).  But the last script includes a
> "for"
> > > loop that I don't know
> > > how to convert: it's basically doing something
> like
> > > this pseudo-code:
> > >
> > >     $parentDir := "C:\x\y\z"
> > >     foreach $subdir in $parent\*
> > >         java -classpath ... MyMainClass $subdir
> > >     end
> > >
> > > I know I could write my own custom "foreach"
> task,
> > > and I know I could write
> > > a simple Java "main" wrapper which invokes
> > > "MyMainClass#main" for each
> > > subdirectory in a given parent, but...
> > >
> > > I was hoping Ant provides an "off-the-shelf" way
> of
> > > expressing what I need
> > > to do.  Any help ?  I've searched the Ant manual
> and
> > > haven't found what I'm
> > > looking for: have I missed something ?
> > >
> > > Many thanks,
> > > Rich Wagner
> > >
> > >
> > > P.S.  I've only been using Ant for a few weeks,
> but
> > > I've quickly become
> > > quite a fan.  It's WAAAYYY better than "make".
> > >
> > > But beyond being a great replacement for "make",
> > > I've been able to replace
> > > lots of redundant script pairs, i.e. (1) I used
> to
> > > have functionally
> > > equivalent pairs of Windows 98 and Windows NT
> > > scripts with stupid little
> > > variations like "deltree" vs "rmdir": converting
> > > those pairs to single Ant
> > > files solves that, and (2) likewise for
> functionally
> > > equivalent Windows and
> > > UNIX script pairs...  Many thanks to all those
> > > involved in providing this
> > > great tool...
> > >
> > >
> > >
>
>_________________________________________________________________
> > > STOP MORE SPAM with the new MSN 8 and get 2
> months
> > > FREE*
> > > http://join.msn.com/?page=features/junkmail
> > >
> > >
> > >
>
>---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > > user-unsubscribe@ant.apache.org
> > > For additional commands, e-mail:
> > > user-help@ant.apache.org
> > >
> >
> >
> >__________________________________________________
> >Do you Yahoo!?
> >Yahoo! Tax Center - File online, calculators,
> forms, and more
> >http://tax.yahoo.com
> >
>
>---------------------------------------------------------------------
> >To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> >For additional commands, e-mail:
> user-help@ant.apache.org
> >
> 
> 
>
_________________________________________________________________
> The new MSN 8: advanced junk mail protection and 2
> months FREE*  
> http://join.msn.com/?page=features/junkmail
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com

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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message