Bugs item #1685036, was opened at 2007-03-21 10:14 Message generated for change (Comment added) made by cchan_qa You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1685036&group_id=31650
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Core Group: None >Status: Closed >Resolution: Wont Fix Priority: 5 Private: No Submitted By: Fabien Poirier (pogzy) Assigned to: Nobody/Anonymous (nobody) Summary: Copy task failed with PathTooLongException exception Initial Comment: I run Nant 0.85, I've got the following error during a copy task: --- begin log extract ---------- [echo] K:\nobkp\dev\tbu1\appli\prd\pclink\v1.0\buildauto/b2007_03_21/reference/Libraries [echo] D:\PC_Link_v1.0\dev\/Libraries BUILD FAILED INTERNAL ERROR System.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. at System.IO.Path.NormalizePathFast(String path, Boolean fullCheck) at System.IO.Path.GetFullPathInternal(String path) at System.IO.FileInfo..ctor(String fileName) at NAnt.Core.Tasks.CopyTask.ExecuteTask() at NAnt.Core.Task.Execute() at NAnt.Core.Target.Execute() at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies) at NAnt.Core.Tasks.CallTask.ExecuteTask() at NAnt.Core.Task.Execute() at NAnt.Core.Target.Execute() at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies) at NAnt.Core.Project.Execute() at NAnt.Core.Project.Run() Please send bug report to nant-develop...@lists.sourceforge.net. --- end log extract ---------- >From the following build file: --- begin build.build extract ---------- <echo message="${integration.dir}/Libraries"/> <echo message="${home.dir}/Libraries"/> <copy todir="${integration.dir}/Libraries"> <fileset basedir="${home.dir}/Libraries"> <include name="**" /> </fileset> </copy> --- end build.build extract ---------- And i fact, in the D:\PC_Link_v1.0\dev\/Libraries I've got quite long subdirs. ---------------------------------------------------------------------- >Comment By: Charles Chan (cchan_qa) Date: 2010-04-24 22:46 Message: Hello Fabien, As you can see from the error, this is a limitation of Windows. According to MSDN, it states: "Full paths must not exceed 260 characters to maintain compatibility with Windows operating systems. For more information about this restriction, see the entry Long Paths in .NET in the BCL Team blog." http://msdn.microsoft.com/en-us/library/system.io.pathtoolongexception.aspx There is nothing that can be done by NAnt. As a result, I am marking this issue as Won't Fix. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1685036&group_id=31650 ------------------------------------------------------------------------------ _______________________________________________ nant-developers mailing list nant-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-developers