Thanks very much Jonathon, this did the job for me...

                <setenv name="PATH" value="${fxcop.path};%PATH%" />

Regards,
Grant.

-----Original Message-----
From: Evans, Jonathan (2) [mailto:[EMAIL PROTECTED] 
Sent: 02 June 2006 12:01
To: Drake, Grant: IT (LDN); nant-users@lists.sourceforge.net
Subject: RE: [NAnt-users] <fxcop> task - specifying a path to
fxcopcmd.exe


Change the environment variable on the fly using the <setenv> task:
        
        
http://nant.sourceforge.net/release/latest/help/tasks/setenv.html

This only affects the current process and those it spawns and so doesn't
break anything outside of the build.


_________________________________________

Jonathan Evans 
Developer, ECM-IT 
[EMAIL PROTECTED] 

CREDIT SUISSE SECURITIES (EUROPE) Limited
Desk 2N10141, 17 Columbus Courtyard 
London, E14 4QJ, United Kingdom 
Tel: +44 (0) 20 7888 6145 
Fax: +44 (0) 20 7833 8490 

www.credit-suisse.com 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
[EMAIL PROTECTED]
Sent: Friday, June 02, 2006 11:53 AM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] <fxcop> task - specifying a path to fxcopcmd.exe


I know the documentation for this task says that the fxcop directory
needs to be added to your system path - which when done works fine.
However that is a rather annoying limitation, particularly for people
who want to put all their tools in a relative path to the source.

I can modify the task myself but want to check first I'm not missing
something obvious - are there any alternatives? I want the flexibility
of specifying the list of assemblies to profile dynamically which the
<fxcop> task gives me... has anyone else worked around this same issue?
I assume using an exec task and some funky string building you could do
something similar but seems overkill for such a trivial change to the
task.

I'm using the 0.85 nightly build from 2005-12-13 of NAnt and
NAntContrib.

Thanks,
Grant.
------------------------------------------------------------------------
For more information about Barclays Capital, please visit our web site
at http://www.barcap.com.

Internet communications are not secure and therefore the Barclays Group
does not accept legal responsibility for the contents of this message.
Although the Barclays Group operates anti-virus programmes, it does not
accept responsibility for any damage whatsoever that is caused by
viruses being passed.  Any views or opinions presented are solely those
of the author and do not necessarily represent those of the Barclays
Group.  Replies to this email may be monitored by the Barclays Group for
operational or business reasons.
------------------------------------------------------------------------


_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

========================================================================
======
Please access the attached hyperlink for an important electronic
communications disclaimer: 

http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
========================================================================
======



_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to