Getting events for all actions start\end in one place

 I'd like to be able to iterate over all the actions in the current project and add custom "before" and "after" actions via script. Right now I have to do it manually for each action.

at the very least, I'd like to be able to get an event before and after all actions are invoked to handle this in one place.

 

is there a way to do it with FB 6\7? 

Hi Roy

There isn’t currently a way to do this, I’ll take a look at this after the holidays and see what can be done. It may be we can allow the user to provide a specifically named function in the project global script. As for meta data, not all actions are the same, as some are implemented in Delphi, some in script, some in C#/.net.

What exactly are you trying to achieve, perhaps I can suggest a different way?

Hi Roy

I just had a quick look at this, the script objects themselves are not exposed to scripting, so I will have to look at what needs to be done for that. I also had a look at using the xml actions to manipulate a project, whilst it should be possible the xml schema doesn’t make it easy (or perhaps my xpath skills are a bit rusty).

 I'm trying to add a global "logging" for each action being run, into teamcity. It's just using Action.SendLogMessage with the action title.

I'd like to not have to go through every action manually to achieve that.