[NAnt-users] Help with resultproperty please

2012-02-21 Thread Chris Fouts
I'm aware of this feature

target name=buildmodule
   exec commandline=buildmodule.bat Failonerror=false 
resultproperty=module_ok /
/target

However, I want to do this...

target name=buildmodule1
   exec commandline=buildmodule1.bat Failonerror=false 
resultproperty=module_ok /
/target
target name=buildmodule2
   exec commandline=buildmodule2.bat Failonerror=false 
resultproperty=module_ok /
/target
target name=buildmodule
   call target=buildmodule1
   call target=buildmodule2
/target

That is, buildmodule needs a lot of buildmoduleN's (two in the example, but can 
be more). I do NOT want the build to stop if one of the buildmoduleN's fails 
(hence, failonerror=false) but I want module_ok to evaluate false if at least 
one of them fails. I know the way I have it, the buildmoduleN build will 
eclipse the buildmoduleN-1 build. So how can I set it up so if one buildmoduleN 
fails, the module_ok property persists?

Thanks!
-Chris









***This e-mail message is intended only for the above named recipient(s)
and may contain information that is sensitive or proprietary. If you have
received this message in error or are not the named recipient(s), please 
immediately notify the sender, delete this e-mail message without making
a copy and do not disclose or relay this e-mail message to anyone.***
--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Help with resultproperty please

2012-02-21 Thread Bob Archer
property name=buildstatus value=true /
target name=buildmodule1
   exec commandline=buildmodule1.bat Failonerror=false 
resultproperty=module_ok /
/target
target name=buildmodule2
   exec commandline=buildmodule2.bat Failonerror=false 
resultproperty=module_ok /
/target

target name=buildmodule
   call target=buildmodule1/
  property name=buildstatus value=${module_ok == 0} if=${buildstatus} /
   call target=buildmodule2/
  property name=buildstatus value=${module_ok == 0} if=${buildstatus} /
/target

In effect you only update buildstatus if it is currently true. Once it is false 
it won't be updated any more.

BOb


From: Chris Fouts [mailto:chris.fo...@caemilusa.com]
Sent: Tuesday, February 21, 2012 9:59 AM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Help with resultproperty please

I'm aware of this feature

target name=buildmodule
   exec commandline=buildmodule.bat Failonerror=false 
resultproperty=module_ok /
/target

However, I want to do this...

target name=buildmodule1
   exec commandline=buildmodule1.bat Failonerror=false 
resultproperty=module_ok /
/target
target name=buildmodule2
   exec commandline=buildmodule2.bat Failonerror=false 
resultproperty=module_ok /
/target
target name=buildmodule
   call target=buildmodule1
   call target=buildmodule2
/target

That is, buildmodule needs a lot of buildmoduleN's (two in the example, but can 
be more). I do NOT want the build to stop if one of the buildmoduleN's fails 
(hence, failonerror=false) but I want module_ok to evaluate false if at least 
one of them fails. I know the way I have it, the buildmoduleN build will 
eclipse the buildmoduleN-1 build. So how can I set it up so if one buildmoduleN 
fails, the module_ok property persists?

Thanks!
-Chris









***This e-mail message is intended only for the above named recipient(s)
and may contain information that is sensitive or proprietary. If you have
received this message in error or are not the named recipient(s), please
immediately notify the sender, delete this e-mail message without making
a copy and do not disclose or relay this e-mail message to anyone.***
--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users