Malcolm,

I don't have NAnt installed here so can't verify, but perhaps it is
having a problem with the '..' in the path?  Try using
${path::combine(nant::get-base-directory(),
'..\..\nantcontrib-0.85-rc3\bin')}, this is the recommended (if more
verbose) method for creating a path relative to another path.

It's probably worth testing with a hard-coded path, too, just to make
sure NAnt can scan the assemblies in that folder.

Personally, I would recommend setting an environment variable
NANT_CONTRIB_HOME, and loading the assemblies relative to this
variable... the major reason for this is that currently your build
script is tightly coupled to the _version_ of NAntContrib you have
installed, as well as its location relative to NAnt.  If you decouple
this with an environment variable (which can be set locally in a shell
if you have multiple versions side-by-side), then upgrading will be
easier, as will setting up the build on a different machine, which may
or may not have a different structure.

Regards, and good luck,

-- 
Troy

On 6/2/05, Malcolm Anderson <[EMAIL PROTECTED]> wrote:
> I am trying to get my nant contrib task to load from a relative path.
> 
> here's my tools directory
> C:\tools\
>       nantcontrib-0.85-rc3
>       nant-0.85-rc3
> 
> I have tried this,
> <loadtasks path="${nant::get-base-directory()}..\..\nantcontrib-0.85-rc3\bin"
> />
> and this
> <loadtasks>
>         <fileset>
>                 <include 
> name="${nant::get-base-directory()}..\..\nantcontrib-0.85-rc3\bin"/>
>         </fileset>
> </loadtasks>
> 
> which should both work, but the error I'm getting for both is:
> 
> notice           \ (leading backslash)
> 
> Failure scanning \"c:\Tools\nantcontrib-0.85-rc3\bin\" for extensions.
>     One or more of the types in the assembly unable to load.
> 
> I'm not sure where the leading "\" is coming from, but echo works just fine
>         <echo 
> message="${nant::get-base-directory()}..\..\nantcontrib-0.85-rc3\bin"/>
> yeilds
>      [echo] c:\Tools\nant-0.85-rc3\bin\..\..\nantcontrib-0.85-rc3\bin
> 
> heck, I can even do this (that took some work, there is no dir.exe I guess)
> 
>         <exec program="cmd.exe">
>                 <arg line="/c dir
> ${nant::get-base-directory()}..\..\nantcontrib-0.85-rc3\bin"/>
>         </exec>
> 
> 
> 
>      [echo] c:\Tools\nant-0.85-rc3\bin\..\..\nantcontrib-0.85-rc3\bin
>      [echo] C:\Tools\nantcontrib-0.85-rc3\bin\NAnt.Contrib.Tasks.dll
>      [exec]  Volume in drive C has no label.
>      [exec]  Volume Serial Number is 5848-A979
>      [exec]
>      [exec]  Directory of c:\Tools\nantcontrib-0.85-rc3\bin
>      [exec]
>      [exec] 06/01/2005  12:19 PM    <DIR>          .
>      [exec] 06/01/2005  12:19 PM    <DIR>          ..
>      [exec] 06/07/2002  17:32 PM            73,728 CollectionGen.dll
>      [exec] 08/07/2002  19:03 PM            11,776 Interop.MsmMergeTypeLib.dll
>      [exec] 07/19/2002  21:31 PM           462,848 Interop.StarTeam.dll
>      [exec] 07/18/2002  12:56 PM            32,768 
> Interop.WindowsInstaller.dll
>      [exec] 07/18/2002  12:57 PM            27,136 MSITaskErrors.mst
>      [exec] 03/10/2005  05:51 AM           294,400 MSITaskTemplate.msi
>      [exec] 03/31/2003  18:44 PM            27,136 MSMTaskErrors.mst
>      [exec] 03/10/2005  05:51 AM           249,344 MSMTaskTemplate.msm
>      [exec] 04/16/2005  16:01 PM           442,368 NAnt.Contrib.Tasks.dll
>      [exec] 04/16/2005  16:01 PM           814,724 NAnt.Contrib.Tasks.xml
>      [exec] 04/16/2005  16:01 PM            53,248 SLiNgshoT.Core.dll
>      [exec] 04/16/2005  16:01 PM             6,144 SLiNgshoT.exe
>      [exec] 10/05/2002  05:36 AM            61,440 SourceSafe.Interop.dll
>      [exec]               13 File(s)      2,557,060 bytes
>      [exec]                2 Dir(s)  148,714,475,520 bytes free
> 
> 
> Bottom line
> 
> Is this a bug?  Or am I missing something stupid?
> 
> Thanks
> 
> Malcolm
> 
> "Oh Bother!" said the Borg, "We just assimilated Pooh."
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by Yahoo.
> Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
> Search APIs Find out how you can build Yahoo! directly into your own
> Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
> _______________________________________________
> Nant-users mailing list
> Nant-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nant-users
>


-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to