> ----- Original Message -----
> From: "Jean-Michel Theriault" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Cc: "Gert Driesen" <[EMAIL PROTECTED]>
> Sent: Tuesday, July 06, 2004 7:15 PM
> Subject: RE: [Nant-users] Need help with <mail task
>

> I installed the latest NAnt nightly build, and the NAnt contrib as well.
I'm not getting errors from the mail task anymore but I don't get the email
anymore either. I > get this error:
>
> Task <available> is deprecated.  Use functions instead.
>
> Here is the code :
>
> <available type="File" resource="${sys.env.ProjectBase}\build\error.log"
property="myfile2.present" />
>
> What should I change in there to pass that error??

This is not an error, but just a warning as the <available> task is
deprecated, and functions should be used instead (eg. file::exists,
directory::exits, ...).

In your case, you can replace it with :

<if test="${file:exists(path::combine(sys.env.ProjectBase,
'build/error.log'))}">
    ....
</if>

>  Also any ideas as to why I'm not getting the email?? (my log file gives
me this: [mail] Sending mail to [EMAIL PROTECTED])
so I would > think that it is sending it. I'm not receiving it.

No idea on what might be causing this.  If no error is output by the <mail>
task, then the mail should indeed be sent.

Gert



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to