Is it possible to use a user defined variable in the
nant build file?  

My goal is to set the MailLogger.success.subject and
MailLogger.failure.subject using the base target name
used...whether it was the default target, or a target
specified on the command line.

It seems like the way to do this is to use a variable.
 A property doesn't appear to work, because the
MailLogger.*.subject value is set when the file is
loaded, so a global property would be read before the
property could potentially be reset to have the
appropriate target name.  

I don't want to use an environment variable, because I
want to be able to type that nant command line
manually.  I could use a batch/command file that sets
an environment variable to a command line argument,
but I would still rather use some form of a
variable/property within the nant build file.

Any suggestions?

Thank you,
Lee



__________________________________________________
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: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to