I'm not quite sure I understand what you are doing... it would probably
help to see the applicable parts of your script. I'm not sure I
understand how a property can not be set if you are setting it on the
command line. 

 

One thing you might be able to try is to use the dynamic=true attribute
when you set the MailLogger.failure.subject property. This will tell it
not to expand the value when you set it, but when you actually access
the property you are setting. 

 

Another option would be to not use the mail logger and add a notify
target to your scripts using the email task. This will allow you to
control the email a bit better.

 

BOb

 

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nikesh
Patel
Sent: Friday, April 13, 2007 5:01 AM
To: [EMAIL PROTECTED]
Subject: [NAnt-users] Setting the MailLogger.failure.subject property

 

Hi all,

 

I've got a maillogger which works perfectly fine. I'm now tring to set
the MailLogger.failure.subject propety so it tells me which build fails
in particular. Currently in my build system i build 3 or more builds and
all the emails have the same header. I now want to add the name of the
sytem i'm building to the subject of the email. The name of the system
is entered as a parameter in the command propmt. I've tried setting the
MailLogger.failure.subject to this parameter but i get the error
'parameter xxx not been set' since i have no default value for this
parameter. I dont want to set a default parameter because the build
could fail before this parameter is set and hence give me an incorrect
e-mail subject.

 

My alternative approach was to set the value of the
MailLogger.failure.subject to call a target, which would then calculates
the subject name. However, since i'm new to nant i'm struggling to do
this. Does any one have any ideas on how to do this and is it even
possible?

 

Cheers in advance 

 

Nik




________________________________

MSN Hotmail is evolving - check out the new Windows Live Mail
<http://g.msn.com/8HMAENUK/2728??PS=47575>  

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NAnt-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to