Gert,
this looks like a common thing to do. Can we add a shortcut
function, like this:
"framework::get-sdk-file(filename) ".
(Name is subject to negotiations). This would be equal to:
path::combine(framework::get-sdk-directory(framework::get-target-framework()),
filename)
Same thing could be added for the runtime files:
"framework::get-runtime-file(filename)."
General question is: should we have more helper functions like
that?
From your example looks like it would be nice to support
function overloads (or default parameters). For example:
framework::get-sdk-file() could be called as:
framework::get-sdk-file(filename) - to get the file from the target framework
or
framework::get-sdk-file(filename, framework)
- to get the file from a specific
framework.
Same thing would apply to most other
"framework::" functions. Should I add
support for overloading to NAnt?
Ian, Scott - what do you think?
Jarek
----- Original Message -----
From: "Gert Driesen" <[EMAIL PROTECTED]>
To: "Jaroslaw Kowalski" <[EMAIL PROTECTED]>; "Steven Hawkes" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Saturday, March 06, 2004 9:27 PM
Subject: Re: [Nant-users] Path to SoapSuds
> framework::get-sdk-directory() function
>
> to get the sdk directory of the current target framework, use :
>
> framework::get-sdk-directory(framework::get-target-framework())
>
> <project>
> <property
> name="soapsuds.path"
> value="${path::combine(
> framework::get-sdk-directory(framework::get-target-framework())
> ,'soapsuds.exe')}" />
>
> Gert
>
> ----- Original Message -----
> From: "Jaroslaw Kowalski" <[EMAIL PROTECTED]>
> To: "Steven Hawkes" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Saturday, March 06, 2004 8:21 PM
> Subject: Re: [Nant-users] Path to SoapSuds
>
>
> > Try
> >
> > nant.settings.currentframework.sdkdirectory instead.
> >
> > More specific: use
> >
> > <project>
> > <property name="soapsuds.path"
> >
> >
> value="${path::combine(nant.settings.currentframework.sdkdirectory,'soapsuds
> > .exe')}" />
> > <echo message="soapsuds.path: ${soapsuds.path}" />
> > </project>
> >
> > Jarek
> >
> > ----- Original Message -----
> > From: "Steven Hawkes" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Saturday, March 06, 2004 8:03 PM
> > Subject: [Nant-users] Path to SoapSuds
> >
> >
> > Hi,
> >
> > I am trying to find a defined path in the NANT framework to the
> Soapsuds.exe
> > file
> > located in the framework BIN directory.
> >
> > Tried "nant.settings.defaultframework.sdkdirectory" as a starting point
> but
> > it did not work,
> > it complained that the variable has not been set.
> >
> > Any ideas.
> >
> > TIA
> >
> > Steve
> >
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by: IBM Linux Tutorials
> > Free Linux tutorial presented by Daniel Robbins, President and CEO of
> > GenToo technologies. Learn everything from fundamentals to system
> > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> > _______________________________________________
> > Nant-users mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/nant-users
> >
> >
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> Nant-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/nant-users
>