Re: how to access environment variable in NAnt

Martin Gainty <[email protected]>
Newsgroups gmane.comp.windows.dotnet.nant.user
Message-ID <[email protected]>
Good Afternoon

 

Apache Ant implments a scope attribute to identify the variable duration.

For Example:
Request: Variable is valid for only the request that browser sends to server
Page: Variable is valid when used only within the confines of the web page

Application: Variable is set thru Application's webapp configuration and is valid for entire webapp

System wide: Variable is available for all webapps within webserver

Environment: as stated

 

does Nant (or more specifically MS) support scope attribute for variables?

 

Cheers,
Martin 
______________________________________________ 
American Wireshark Operators: do not alter or modify this transmission.


 




Date: Thu, 22 Jul 2010 09:05:44 +0100
To: [email protected]; [email protected]
From: [email protected]
Subject: Re: [NAnt-users] how to access environment variable in NAnt









Use the environment::get-variable function.
 
http://nant.sourceforge.net/release/latest/help/functions/environment.get-variable(System.String).html
 
Cheers,
Bill

 



From: [email protected] [mailto:[email protected]] 
Sent: 22 July 2010 08:59
To: [email protected]
Subject: [NAnt-users] how to access environment variable in NAnt
 

Hi,

i am using Luntbuild as CI tool for my project. I want to copy the resulting installer to artifact directory of the appropriate version. I am using NAnt script to build my solution and create the installer. How do i do that?

i am setting the artifact directory path as environment variable in LuntBuild. How do i acces those variables in NAnt script?

 

Regards,

Subrat Agasti


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________


IMPORTANT 
The information contained in this e-mail and any attachments is intended for the addressee only
and may contain legally privileged or confidential information. If you are not the intended
recipient you must not use, disclose, copy, distribute, alter, or take any action in reliance
on the information and Avon Insurance plc will not accept liability for any loss or damage howsoever
arising, directly or indirectly in reliance on it and gives no warranty or representation as to its
accuracy or reliability. If you are not the addressee, please notify us immediately on 01789 202121*
and delete the material from your computer and destroy any copies.

Avon Insurance plc reserves the right to monitor and record incoming and outgoing email messages for
the purposes of investigating or detecting unauthorised use of its system and ensuring its effective operation.
Avon Insurance plc will not accept liability for any loss or damage as a result of any virus being passed on.

Avon Insurance plc (No. 209606).
Registered in England.
Registered Office: Tiddington Road, Stratford-upon-Avon, Warwickshire CV37 7BJ.
Authorised and regulated by the Financial Services Authority.
A member of the NFU Mutual group of companies and the Association of British Insurers.
For security and training purposes telephone calls may be recorded and monitored. 		 	   		  
_________________________________________________________________
Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first

_______________________________________________
NAnt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.