Hi,

 

I have been doing some testing on this end and have not managed to
replicate the error.  What I can tell you now though is that the problem
is occurring when the update task is going through the local directory
and looking for files to update it is parsing the date from each ENTRIES
file.  What seems to be happening is that one of these dates is in a
format that is not understood. 

 

So having said that there is one thing that sticks out to me, it is the
line where you are logging in to the cvsnt server:

            sspi:[EMAIL PROTECTED]:2401:/test

I know earlier it looked like you were using the pserver protocol but
here it looks like the sspi (nt protocol, correct?) is being used.  This
would either be grabbed by an environmental variable or if you did a
checkout using the protocol earlier it would grab this value from the
Root file in the CVS folder (actually I think most cvs implementations
grab it from the Root folder if it exists before looking in the
environment but it is late and I can't find where I read that, sorry).  

 

Would it be possible to try a clean checkout and specify the pserver
protocol:

            cvs -d:pserver:[EMAIL PROTECTED]:2401:/test login 

            cvs -d:pserver:[EMAIL PROTECTED]:2401:/test co examples

 

Then run the update task against it (or alternatively run the checkout
task and then the update task).  If this fixes the problem then I can be
sure it is a problem with the sspi protocol date format from an initial
checkout.  Thanks!

 

 

Clayton

 

 

 

-----Original Message-----
From: Are Bj�lseth [mailto:[EMAIL PROTECTED] 
Sent: August 9, 2003 6:33 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: [nant-dev] 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> 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> http://nant.sourceforge.net 

Buildfile:  <file:///F:\cvsdev\test\examples\examples.build>
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] 
  



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to