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