Dan, This is indeed an interesting suggestion. I think there was talk about adding a <try><catch><finally> set of tasks. Could this work for you?
I'm really confused about your idea of a "default" init and "default" cleanup routines. NAnt is a general purpose build tool, what should it know about "default" task initialization(I'm not even sure what that means)? Can you give us some real examples of what you would use this for? ----- Original Message ----- From: "Daniel Bron" <[EMAIL PROTECTED]> > I'd like to see targets in Nant enhanced so that I can specify > initialization and cleanup operations. I often find myself following the > model: > > <target name="foo"> > <property name="foo.initialize.succeeded" value="false" /> > <call target="foo.initialize" /> > <call target="foo.initialize" > if="${foo.initialize.succeeded}" /> > </target> > > <target name="foo.initialize"> > <property name="foo.initialize.succeeded" value="true" /> > </target> > > <target name="foo.cleanup"> > </target> > > What I would really like is to get the same results by saying: > > <target name="foo"> > <initialize> > </initialize> > <cleanup> > </cleanup> > </target> > > Often the initialization has an obvious corresponding cleanup operation: if > I rename a file in my initialization, I restore its name in my cleanup. If > I create a file in initialization, I delete it in cleanup, etc. So, as an > extension to this enhancement, I would like it if Nant could create > "default" cleanup operations for the most common initializations, and > provide an option to use this default cleanup operation in place of writing > one myself. > > Comments? > > -D. Bron ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users