Title: NAnt version 0.8.3 : cvs-update task fails

Hi!
I've been using Ant and CVS for years in a java development environment, but recently switched to the .NET platform programming in C#.

I am trying to use the NAnt cvs-update task without success. It crashes with a System.FormatException for DateTime!
Is this a possible bug or error syntax error?

I tried to add a simple cvs-update target to the examples.build file with the following extract:

<target name="cvs-update" description="Do update from CVS">
        <cvs-update destination="F:\cvsdev\test" cvsroot=":pserver:[EMAIL PROTECTED]:/test" password="tbear2" module="examples" />

</target>

Here is the action log, staring with verification of CVS and repository.

[f:\cvsdev\test\examples]textpad setcvsroot.bat

[f:\cvsdev\test\examples]setcvsroot.bat
set CVSROOT=:pserver:[EMAIL PROTECTED]:/test

[f:\cvsdev\test\examples]echo %CVSROOT%
:pserver:[EMAIL PROTECTED]:/test

[f:\cvsdev\test\examples]cvs login
Logging in to :sspi:[EMAIL PROTECTED]:2401:/test
CVS password: ******

[f:\cvsdev\test\examples]cvs version
Client: Concurrent Versions System (CVSNT) 2.0.2 (client/server)
Server: Concurrent Versions System (CVSNT) 2.0.8 (client/server)

[f:\cvsdev\test\examples]cvs -n update
? setcvsroot.bat
? HelloWorld/HelloWorld-cs.pdb
? HelloWorld/HelloWorld-js.pdb
? HelloWorld/HelloWorld-vb.pdb
? UserTask/UserTasks.dll
cvs server: Updating .
M examples.build
cvs server: Updating HelloWindowsForms
cvs server: Updating HelloWorld
cvs server: Updating ScriptTask
cvs server: Updating Simple
cvs server: Updating UserTask

[f:\cvsdev\test\examples]nant -projecthelp
NAnt version 0.8.3 Copyright (C) 2001-2003 Gerry Shaw
http://nant.sourceforge.net

Default Target:

 run

Main Targets:

 cvs-update          Do update from CVS

Sub Targets:

 build
 clean
 run



[f:\cvsdev\test\examples]nant cvs-update
NAnt version 0.8.3 Copyright (C) 2001-2003 Gerry Shaw
http://nant.sourceforge.net

Buildfile: file:///F:/cvsdev/test/examples/examples.build

cvs-update:

Total time: 0 seconds.

BUILD FAILED

INTERNAL ERROR

System.FormatException: String was not recognized as a valid DateTime.
   at System.DateTimeParse.ParseFormatError(Boolean isThrowException, String resourceID)
   at System.DateTimeParse.ParseDigits(__DTString str, Int32 digitLen, Boolean isThrowExp, Int32& re
sult)
   at System.DateTimeParse.ParseByFormat(__DTString str, __DTString format, ParsingInfo parseInfo, D
ateTimeFormatInfo dtfi, Boolean isThrowExp, DateTimeResult result)
   at System.DateTimeParse.DoStrictParse(String s, String formatParam, DateTimeStyles styles, DateTi
meFormatInfo dtfi, Boolean isThrowExp, DateTime& returnValue)
   at System.DateTimeParse.ParseExact(String s, String format, DateTimeFormatInfo dtfi, DateTimeStyl
es style)
   at System.DateTime.ParseExact(String s, String format, IFormatProvider provider)
   at ICSharpCode.SharpCvsLib.FileSystem.Entry.SetTimeStamp()
   at ICSharpCode.SharpCvsLib.FileSystem.Entry.Parse(String line)
   at ICSharpCode.SharpCvsLib.FileSystem.Entry..ctor(String path, String line)
   at ICSharpCode.SharpCvsLib.FileSystem.Factory.CreateCvsObject(String path, FileType fileType, Str
ing line)
   at ICSharpCode.SharpCvsLib.FileSystem.Manager.Fetch(String path, FileType fileType)
   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)
   at NAnt.Core.Project.Execute()
   at NAnt.Core.Project.Run()

Please send bug report to [EMAIL PROTECTED]


[f:\cvsdev\test\examples]

Regards.
Are Bj�lseth
[EMAIL PROTECTED]

�

Reply via email to