Yes, it does.  We use it here for the same reason as Michael was looking
for.  There are several nested elements comes with the <nant> task that
I thought were quite useful.  You can check NAnt docs for more details
on this topic, but here's one of the examples --
 
 
<nant buildfile="${src.dir}/Extras/BuildServer/BuildServer.build">
    <properties>
        <property name="build.dir" value="c:/buildserver" />
        <property name="build.debug" value="false" />
        <property name="lib.dir" value="c:/shared/lib" readonly="true"
/>
    </properties>
</nant>

 
Hope this help.
 
Daniel
 
 
________________________________

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

Sent: Wednesday, November 15, 2006 12:44 PM
To: Nguyen, Daniel
Subject: Re: [NAnt-users] Does NAnt have a "while" capability?



Does that work? 
It is elegant and not a hack 

Thanks 



"Nguyen, Daniel" <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED] 

11/15/2006 10:33 AM 

To
"Michael Frederick" <[EMAIL PROTECTED]>,
nant-users@lists.sourceforge.net 
cc
Subject
Re: [NAnt-users] Does NAnt have a "while" capability?

        




Michael, 
  
My following suggestions may sound like a quick, ugly *hack*, so please
take it with a grain of salt. 
  
If project B has to wait for project A to complete, can you place a call
at the end of the project A to call project B once it's completed its
run? 
  
Example: 

<project name="ProjectA" default="build" basedir="."
xmlns="http://nant.sf.net/schemas/nant-0.85.win32.net-1.0.xsd";> 

    <target name="build" description="builds the application" > 

        ........ 

        

        <nant buildfile="${projectB.buildfile}"/> 

    /target> 

</project> 

Daniel 



________________________________

From: Michael Frederick [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 15, 2006 11:51 AM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Does NAnt have a "while" capability?

I need a NAnt project to do some work and then wait for some event to
occur, such as a specific file in a specific directory to appear.  To do
this I will need some sort of "while (file-exists != "true")"
capability.  This means I would need 2 capabilities; a "sleep" taks
(which is present) and a looping construct.  Are there *any* looping
constructs in NAnt? 
  
Let me explain what I am trying to do.  I have a CruiseControl.NET
project which does a <forceBuild> on three other CCNet projects that run
in parallel.  I need something on the back end which waits until all 3
worker projects have completed and then continues on with more build
steps.  I'm not concerned with contention here; the projects literally
running in parallel are not a performance issue.  So I have: 
  
Startup project -> does a <forceBuild> on 3 worker projects -> BackEnd
project waits on all 3 worker projects to complete and does more work. 
  
I had been looking into having the BackEnd project use CCNet for the
sync, but due to limitations there I cannot do this (the worker projects
may finish hours apart).  So I changed the above scheme to be: 
  
Startup project -> does a <forceBuild> on 3 worker projects.  1 of the
worker projects ends by doing a <forceBuild> on the BackEnd project ->
BackEnd project runs a NAnt task which waits for the other 2 worker
projects to complete and then does more work. 
  
I am attempting to write a NAnt project which does a type of multiple
project synchronization.  It seems like I have seen in this list some
references on how to do this, but a quick search of the archives found
nothing.  Any help would be appreciated. 
  
-- 
Mike Frederick 
Software Developer 
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>  
  


------------------------------------------------------------------------
-------------
A.G. Edwards & Sons' outgoing and incoming e-mails are electronically
archived and subject to review and/or disclosure to someone other 
than the recipient.

------------------------------------------------------------------------
------------------------------------------------------------------------
--------------
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=DEVDE
V_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users



======================================================================
Confidentiality Notice: The information contained in and transmitted
with this communication is strictly confidential, is intended only for
the use of the intended recipient, and is the property of Countrywide
Financial Corporation or its affiliates and subsidiaries.  If you are
not the intended recipient, you are hereby notified that any use of the
information contained in or transmitted with the communication or
dissemination, distribution, or copying of this communication is
strictly prohibited by law.  If you have received this communication in
error, please immediately return this communication to the sender and
delete the original message and any copy of it in your possession.
======================================================================

-------------------------------------------------------------------------
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
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to