I'm running NAnt 0.84.

If I do a CVS checkout with a <cvs-checkout> target, it works.  The only unusual thing 
about my check out request is that I've requesting a sub-project of the CVS repository 
rather than the entire repository project.

If I follow the above with a second run of NAnt doing <cvs-update> (which should find 
nothing to do), it fails with the following:
===================================
BUILD FAILED

INTERNAL ERROR

System.IO.FileNotFoundException: 
path=[C:\DOCUME~1\mcornish\LOCALS~1\Temp\QAFrameworkSrc\hdt/Source/QAFramework\hdt]fileType=[Repository]File
not found.  
   at ICSharpCode.SharpCvsLib.FileSystem.Manager.FetchSingle(String path, FileType
fileType)
   at ICSharpCode.SharpCvsLib.FileSystem.Manager.FetchFilesToUpdateRecursive(ArrayList
folders, String directory)
   at ICSharpCode.SharpCvsLib.FileSystem.Manager.FetchFilesToUpdateRecursive(ArrayList
folders, String directory)
   at ICSharpCode.SharpCvsLib.FileSystem.Manager.FetchFilesToUpdate(String directory)
   at NAnt.SourceControl.Tasks.UpdateTask.PopulateFolders(WorkingDirectory 
workingDirectory)
   at NAnt.SourceControl.Tasks.UpdateTask.CreateCommand()
   at NAnt.SourceControl.Tasks.AbstractCvsTask.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 [EMAIL PROTECTED]
===================================

The <cvs-checkout> task is as follows:

   <cvs-checkout cvsroot="${cvsroot}" password="${cvspswd}"
      module="hdt/Source/QAFramework" destination="${QAFramework.src}" />

The <cvs-update> task is as follows:

   <cvs-update cvsroot="${cvsroot}" password="${cvspswd}"
      module="hdt/Source/QAFramework" destination="${QAFramework.src}" />

As you can see, only the task name is different.  If the module attribute had been
"hdt", the entire repository would have been checked out.

The <cvs-checkout> task results in a directory structure in the destination
directory that looks like this:

   hdt/
      Source/
         QAFramework/
            CVS/
            ...all of the checked out CVS files and directories

which is what I would expect.  However, the hdt/ and Source/ directories are empty
and do not even contain a CVS directory (which to my uneducated eyes, sort of sounds
like what the "Repository not found" error message is complaining about).

The intent is that if the NAnt script has been called with my -D:rebuild=true
command line option,  <cvs-checkout> is called.  If called with -D:rebuild=false,
the previous CVS checkout is used, if it exists.  If it does not exist, a new checkout
is done.

Any suggestions?

Merrill


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to