Yep, this is true. The first run builds the usertask sample and copies it to the current nant.exe directory. The second run tests the sample usertask. There is really no dynamic (on-the-fly without restarting nant) way to load a user defined task right now. The NAntContrib project uses a custom usertask called taskdef, but that is really not the best way. There will need to be a better solution developed before the 1.0 release.
----- Original Message ----- From: James Lewis To: '[EMAIL PROTECTED]' Sent: Monday, March 31, 2003 7:52 AM Subject: [Nant-users] Nested build failed I'm new to NANT so I'm working my way through the examples. We are very likely to need a use task similar to the usertask example so I've been concentrating on that one. My problem is I can't get the sample usertask to build. The first time I build it (nant with no parameters) I get this message: C:\Program Files\nant\nant-0.8.01\examples\UserTask>nant Buildfile: file:///C:/Program Files/nant/nant-0.8.01/examples/UserTask/default.build [csc] Compiling 1 files to C:\Program Files\nant\nant-0.8.01\examples\UserTask\UserTasks.dll test: [copy] Copying 1 files to c:\program files\nant\nant-0.8.01\bin\ [nant] C:\Program Files\nant\nant-0.8.01\examples\UserTask\default.build UserTask Buildfile: file:///C:/Program Files/nant/nant-0.8.01/examples/UserTask/default.build UserTask: BUILD FAILED C:\Program Files\nant\nant-0.8.01\examples\UserTask\default.build(31,4): Unknown task <usertask> BUILD FAILED Nested build failed. Refer to build log for exact reason. Try 'nant -help' for more information However, when I run the build again, it works. Presumably because the copy in the previous attempt work. By the way I can build the other example successfully, and I do have nant in my path. Any thoughts?? ------------------------------------------------------- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users