> -----Original Message-----
> From: Gary Feldman [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 24, 2004 11:50 AM
> To: Castro, Edwin Gabriel (Firing Systems Engr.); Bruce Leggett; Nant-
> Developer List
> Subject: Re: [nant-dev] Suggestion for call element
> 
> >From: "Castro, Edwin Gabriel (Firing Systems Engr.)" <[EMAIL PROTECTED]>
> >Sent: Wednesday, November 24, 2004 1:53 PM
> 
> 
> >You know, I was just trying to do something similar to this... I was
> >writing a bash script to automate compilations of a few projects and
> I
> ...
> >couldn't figure out how to mimic functions in make (pass parameters
> to
> >common code) so I gave up. I never thought of using NAnt (since for
> the
> >most part I would need to use <exec> to call other builders) but if I
> >can mimic functions using targets or something else that would be
> great!
> 
> It's easily done in make with recursive calls to make, but that's
> because make originated on platforms with dirt cheap process forks.
> The
> other common mechanism is to write your own pattern rules - but the
> abstruse nature of pattern rules is part of the reason people are
> moving
> away from make.
> 
> Gary
> 

Yeah, but I need the ability to pass parameters to my pattern rules. I
can't figure out how I would do that. Like wise, I might be able to
recursively run make passing some arguments in the command line
(assuming that's possible) but again, I don't know how to do that
either! My point is that I can't think of a way to do what I need to do.
In the end I kept my bash script because I could do what I needed to do
although I had to build significant infrastructure to mimic make or nant
targets.

--Edwin


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to