Is it possible to create a task that would preprocess a build and cleanup after itself without resorting to final build tasks? My scenario is:
* Run task (MyTask) that modifies version information before build
* Run build task
* Run MyTask's "finally block" that reverts changes made to files
This is quite similar to what TeamCity has to offer for .NET builds: http://confluence.jetbrains.net/display/TCD65/AssemblyInfo+Patcher
So I guess I'm lookin for a task that could register itself both for running as part of process and to get a chance at the finally part to always clean up if somethings goes wrong.
Community moderators have prevented the ability to post new answers.
No, you'd need to write a plugin for that - which is not much more complicated than writing a task.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.