----- Original Message ----- 
From: "Vincent Erickson" <[EMAIL PROTECTED]>
To: "'Gert Driesen'" <[EMAIL PROTECTED]>
Sent: Tuesday, October 14, 2003 8:56 PM
Subject: RE: [Nant-users] Latest nightly build not smart about project
dependencies anymore ?


> Very helpful. Thanks! Thanks also for the help with the BuildAll problem.
As
> you may have guessed, I am very new to NAnt.

No problem, we all have to start somewhere ...

> BTW, I like it very much.

Thanks, we do our best ...

Gert

PS. One small remark, if you post something to a mailing list you should
also post subsequent responses to that mailing list.  That way other people
can learn from your problems and its solutions as well ...


>
> -----Original Message-----
> From: Gert Driesen [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 14, 2003 11:42 AM
> To: Vincent Erickson
> Cc: NAnt Mailing List (E-Mail)
> Subject: Re: [Nant-users] Latest nightly build not smart about project
> dependencies anymore ?
>
>
>
> ----- Original Message ----- 
> From: "Vincent Erickson" <[EMAIL PROTECTED]>
> To: "'Gert Driesen'" <[EMAIL PROTECTED]>
> Sent: Tuesday, October 14, 2003 8:26 PM
> Subject: RE: [Nant-users] Latest nightly build not smart about project
> dependencies anymore ?
>
>
> > As long as I have your ear, you might be able to answer this question
for
> > me. As you can see from my build script, I have it sending me an email
> upon
> > the successful completion of the build. I want to add a feature to have
it
> > send me an email when the build fails, but I see no mechanism for adding
a
> > simple global error handler in the script. What is the easiest way to
> detect
> > and trap build errors during NAnt script execution? In my VBScript, I
> could
> > declare error handlers directly in the script.
>
> you actually have two options :
>
> 1. use the NAnt.Core.MailLogger :
>
> NAnt.exe -buildfile:.... -logger:NAnt.Core.MailLogger
>
> you need to configure the MailLogger using a predefined set of properties
in
> your buildfile (see the NAnt SDK docs for more information) :
>
>     <property name="MailLogger.mailhost" value="mail.dunnowhat.com" />
>     <property name="MailLogger.from" value="[EMAIL PROTECTED]" />
>     <property name="MailLogger.failure.notify" value="true" />
>     <property name="MailLogger.success.notify" value="true" />
>     <property name="MailLogger.failure.to"  value="[EMAIL PROTECTED]" />
>     <property name="MailLogger.success.to" value="[EMAIL PROTECTED]" />
>     <property name="MailLogger.failure.subject" value="build failure" />
>     <property name="MailLogger.success.subject" value="build success" />
>
>
> 2. use the special nant.onsuccess and nant.onfailure properties to
designate
> the targets that should be executed when the build succeeds or fails.
>
> for example :
>
> <property name="nant.onsuccess" value="successtarget" />
> <property name="nant.onfailure" value="failuretarget" />
>
> <-- this target will be executed when the build succeeds -->
> <target name="successtarget" />
>
> <-- this target will be executed when the build fails -->
> <target name="failuretarget" />
>
>
> Hope this helps,
>
> Gert
>
> >
> > -----Original Message-----
> > From: Gert Driesen [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, October 14, 2003 11:06 AM
> > To: Vincent Erickson; [EMAIL PROTECTED]
> > Subject: Re: [Nant-users] Latest nightly build not smart about project
> > dependencies anymore ?
> >
> > Are you using the <call> task to handle the dependencies ?
> >
> > If you are, then there has indeed been a change in behaviour.  As from
> NAnt
> > 0.8.4, the call task will always execute the specified target and its
> > dependencies.  This is more powerful and matches the behaviour of Ant.
> >
> > Normal target dependencies should be implemented using the depends
> attribute
> > of target.
> >
> > If you aren't using the call task to handle dependencies, you should
send
> me
> > a copy of your build file ...
> >
> > Thanks,
> >
> > Gert
> >
> > ----- Original Message ----- 
> > From: "Vincent Erickson" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, October 14, 2003 7:53 PM
> > Subject: [Nant-users] Latest nightly build not smart about project
> > dependencies anymore ?
> >
> >
> > > I downloaded and built the 10/13 nightly build. I have 4 vbc project
> > > targets. Projects B, C, and D are all dependent on project A. When I
was
> > > using the last stable release version of NAnt, it was smart enough to
> only
> > > compile project A once when I ran my target which builds all 4
projects.
> > In
> > > the latest version, project A was built 4 times. Did something break
in
> > the
> > > vbc task, in NAnt itself, or is this an intentional behavior change
that
> > > hopefully has some work around?
> > >
> >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: SF.net Giveback Program.
> > SourceForge.net hosts over 70,000 Open Source Projects.
> > See the people who have HELPED US provide better services:
> > Click here: http://sourceforge.net/supporters.php
> > _______________________________________________
> > Nant-users mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/nant-users
> >
> >
> >
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> SourceForge.net hosts over 70,000 Open Source Projects.
> See the people who have HELPED US provide better services:
> Click here: http://sourceforge.net/supporters.php
> _______________________________________________
> Nant-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/nant-users
>
>
>



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to