Hi,

One of the steps of the build of my project requires updating a database.

I have a small utility which is run as the first task and mounts the
database. That's the "setup" part.

I am also invoking the utility as the last task to dismount the
database. That's the "teardown" part.

Problem is when the build fails for some reason, CC.NET never executes
the teardown part, therefore the database connection remains open,
which causes trouble.

Is it possible to force-run some tasks, even after an exception? Something like:

try {
   All the steps in the build process go here
} finally {
   Teardown
}

Thank you

-- 
Pau Garcia i Quiles
http://www.elpauer.org
(Due to my workload, I may need 10 days to answer)

Reply via email to