nant-developers

All,
I have the "get" task completed and tested for HTTP support. I even added a
proxy attribute for us corporate types that sit behind firewalls all day.
However, MSFT doesn't provide an implementation of WebRequest/WebResponse
for FTP protocol. I found an example class that may provide this capability,
but I am not sure how long it will take to get it working and tested.
So, in following true XP tradition, I need some guidance from the customer.
What is more critical: FTP support or starting on the mail task?
Regards,
Jay Turpin
Intel Corporation
"The only place success comes before work is in the dictionary." - Donald
Kendall
-----Original Message-----
From: Turpin, Jay
Sent: Wednesday, October 10, 2001 9:08 AM
To: nant-developers@...
Subject: RE: [nant-dev] Touch and Get implementation questions
OK. I'll take care of that.
Additionally, I think I've found a bug with the File.GetLastWriteTime()
method. This code should ASSERT to TRUE:
string destination = @"c:\temp\logo.txt";
if (File.Exists(destination))
File.Delete(destination);
StreamWriter writer = File.CreateText(destination); writer.Write("It's OK to
delete this file."); writer.Close();
DateTime touchDate = DateTime.Parse("2000/12/31 23:59");
File.SetLastWriteTime(destination, touchDate); DateTime lastWriteTime =
File.GetLastWriteTime(destination);
TimeSpan timeSpan = touchDate.Subtract(lastWriteTime);
string tmp = timeSpan.ToString();
// This assert fails
Assert(touchDate.Equals(lastWriteTime));
FileInfo fileInfo = new FileInfo(destination); fileInfo.LastWriteTime =
touchDate; lastWriteTime = fileInfo.LastWriteTime;
timeSpan = touchDate.Subtract(lastWriteTime);
tmp = timeSpan.ToString();
// This assert succeeds Assert(touchDate.Equals(lastWriteTime));
But for me, File.GetLastWriteTime() returns a time that is 2-3 minutes
earlier than the "real" LastWriteTime. I visually verified the file
timestamp.
Can anyone else reproduce this?
Regards,
Jay Turpin
Intel Corporation
"Don't take yourself too serious, nobody else does." - Clint Eastwood
-----Original Message-----
From: Gerry Shaw [mailto:gerry_shaw@...]
Sent: Tuesday, October 09, 2001 4:06 PM
To: nant-developers@...
Subject: RE: [nant-dev] Touch and Get implementation questions
> My take is that only the LastWriteTime should be updated. Opinions?
This seems like a reasonable thing to do. It should probably be documented
in the <remarks> section of the task class to avoid any ambiguity.
> -----Original Message-----
> From: nant-developers-admin@...
> [mailto:nant-developers-admin@...] On
> Behalf Of Turpin, Jay
> Sent: October 9, 2001 3:25 PM
> To: nant-developers@...
> Subject: [nant-dev] Touch and Get implementation questions
>
>
> All,
>
> Here's a nit-picky implementation question regarding touch: When a
> file is "touched" would you expect both the CreationTime and
> LastWriteTime to be changed to the touched date, or just the
> LastWriteTime?
>
> Also, for get: When you "get" a file, would you expect the
> CreationTime and LastWriteTime to match? I ask because I running into
> problems trying to "test" if a new file has been downloaded. If the
> file already exists locally, "get" simply opens the file and updates
> it with the new content, leaving the create date the same.
>
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
_______________________________________________
Nant-developers mailing list Nant-developers@...
https://lists.sourceforge.net/lists/listinfo/nant-developers

> So, in following true XP tradition, I need some guidance from
> the customer. What is more critical: FTP support or starting
> on the mail task?
I'd say the <mail> task. If the user wants to get a file via ftp they
should use the <ftp> task which should support downloading and
uploading. I noticed some ftp code on http://www.gotdotnet.com, is that the
code you mentioned?
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com