First the obvious to stay on topic, just so that I can include a neat little hint :-)
Either there should be a try-catch around the Path.GetFullPath method, or (better) use Directory.GetFiles and loop through the files found to allow wildcards. So the tip: if you want to avoid typing full directory and file names in NT or later, modify the following registry keys: HTLM\Software\Microsoft\Command Processor CompletionChar=9 PathCompletionChar=9 Both are DWORDS. Start cmd.exe and you can use TAB to complete file names and loop through the matches found. Dag -----Original Message----- From: Brian Davis [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 11, 2002 5:47 PM To: [EMAIL PROTECTED] Subject: [nant-dev] Command line parsing bug New user to nant - not at the stage of trying to fix bugs myself yet, so for now I'll just report it as instructed :) --------------------------------------------------------------------- Probably worth catching errors like the one pasted below... (I was attempting to avoid typing the full name of the build file) D:\Temp>nant -buildfile:mybuildfile* INTERNAL ERROR System.ArgumentException: Illegal characters in path. at System.Security.Permissions.FileIOPermission.HasIllegalCha at System.Security.Permissions.FileIOPermission.AddPathList(F h) at System.Security.Permissions.FileIOPermission..ctor(FileIOP at System.IO.Path.GetFullPath(String path) at SourceForge.NAnt.Location.Init(String fileName, Int32 line at SourceForge.NAnt.Location..ctor(String fileName) at SourceForge.NAnt.Project.LoadBuildFile(String source) at SourceForge.NAnt.Project..ctor(String source) at SourceForge.NAnt.NAnt.Main(String[] args) Please send bug report to [EMAIL PROTECTED] _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ _______________________________________________ Nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers ########################################### This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange. For more information, connect to http://www.F-Secure.com/ ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ _______________________________________________ Nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
