Hi,

This feature does not exist yet, although we are looking at adding a
feature like this for the next release.


Craig

On Mar 13, 6:53 am, rami <[email protected]> wrote:
> Hi.
>
> Is there a way to programmatically determine when the server restarts
> because of an updated ccnet.config?
>
> Using CruiseControl.NET 1.4.2 and WatchConfigFile=true.
>
> I am programmatically manipulating ccnet.config and want to force a
> build on a project that I just updated.
>
> If I save the ccnet.config file and then immediately make a call as
> follows:
>
> RemoteCruiseManagerFactory factory = new RemoteCruiseManagerFactory();
>
> ICruiseManager manager = factory.GetCruiseManager("tcp://localhost:
> 21234/CruiseManager.rem");
>
> manager.ForceBuild(project, "");
>
> ccnet will not have read the updated ccnet.config file yet and so it
> will build with old values.
>
> So I expect the need for the ICruiseManager to expose and fire an
> event which I can use by hooking into it.
>
> Does that seem like something that can be added in a future release if
> such a feature does not already exist?
>
> Are there any other work-arounds that I can use other than parsing the
> ccnet.log file to determine when the server restarts because of an
> updated ccnet.config?
>
> Thank you.

Reply via email to