Koen Mayens wrote:
I'm looking for a way where I can restart a build from the last not succeeded part or task. This is because our build proces takes more than an hour, and it's not an option to rebuild the whole stuff after the build failed.
Most NAnt tasks are designed to not redo things that have already been done. This can be confusing, because the targets are still reported. So the first question is what pieces are actually being redone? Have you compared the timings of tasks when you build from scratch versus building from an interrupted build?
I was thinking about using some kind of status file which contains a status of each step in the buildfile and wich will be created at the start of the build. (this because there will always be somebody who forgets to update the status file :)) Is there somebody who has some experience or information about this, or is this possible with nant commands?
NAnt has an <uptodate> tasks, which is useful for manually controlling rebuilds. Alternatively, you might have an include file with property definitions that control each of the major targets, and then just update that file using <xmlpoke>. For example, <target name="TimeConsumingTarget" unless="${property::exists('TimeConsumingTargetIsDone')}" > ...
Gary ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users