Yeah, there was a check to make sure that you didn't operate the delete task on anything too close (ie c:\, c:\windows) to the root of a drive.
This restriction has been removed (as of 2/25/03). Please use the latest stable build (nant.sf.net/builds) or the latest release version 0.8.1. I have forwarded this message to the nant-users list. Please post there in the future. It is possible that I may not be available to respond in a timely manner. ----- Original Message ----- From: Overton, Ed Subject: Error in NAnt Here is the listing of t.xml: <?xml version="1.0"?> <!-- This is a template file for the NAnt build process of CPS. --> <project name="template" default="clean"> <property name="Debug" value="true"/> <property name="Verbose" value="true"/> <target name="clean" description="Remove all files and dir"> <property name="userwork" value="z:\user\vs"/> <echo message="to be removed [${userwork}]" if="${Debug}"/> <delete dir="${userwork}" verbose="${Verbose}"/> <echo message="Removed [${userwork}]" if="${Debug}"/> </target> </project> I run the following command in the z:\nant directory: z:\nant\bin\nant -buildfile:z:\nant\t.xml I get the following message: Buildfile: file:///z:/nant/t.xml clean: [echo] to be removed [z:\user\vs] BUILD FAILED z:\nant\t.xml(15,4): Cannot delete directory z:\user\vsPath is too close to root to delete. Try 'nant -help' for more information The directory does exist and contains other directories and files. What am I doing wrong? Any help would be great. Thanks ------------------------------------------------------- This SF.net email is sponsored by: The Definitive IT and Networking Event. Be There! NetWorld+Interop Las Vegas 2003 -- Register today! http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users