Re: [NAnt-users] FTP Task

2009-01-28 Thread Karl Stubsjoen
Does anyone have any ideas on this??

On Tue, Jan 27, 2009 at 10:18 AM, Karl Stubsjoen kst...@gmail.com wrote:
 Hello,
 I need to make a tweak to the FTP task.  When it compares dates from
 my local system to remote system, the date of the remote system is off
 by 1 hour, so code I've made changes to inside this hour do not get
 ftp'd when overwrite is false.  I'm hoping to:

 a)  configure the FTP task somehow
 b)  tweak the source code

 If option b, where can I find the source code?

 Thanks,

 Karl..


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] FTP Task

2009-01-28 Thread Ron Grabowski
What FTP task are you referring to? This one from Google?

 http://www.google.com/search?q=nant+ftp+task
 http://www.spinthemoose.com/~ftptask/

If so, it looks like the date comparisons are hard-coded:

// snip
DateTime.Compare(
 _client.ModTime(Path.GetFileName(remoteFilePath)),
 (new FileInfo(fileName)).LastWriteTime)=0
// snip
this.Log(this.LevelLogfiles, Remote file is newer.);

It doesn't look like it can be easily extended. The task comes with a build 
script. You could modify the code then submit your changes back to the author. 
Maybe move DateTime.Compare into an interface:

public interface IDateTimeCompare
{
int Compare(DateTime t1, DateTime t2);
}

public class DefaultDateTimeCompare : IDateTimeCompare
{
public int Compare(DateTime t1, DateTime t2)
{
return DateTime.Compare(t1, t2);
}
}

public class OneHourBehindDateTimeCompare : IDateTimeCompare
{
public int Compare(DateTime t1, DateTime t2)
{
return DateTime.Compare(t1.AddHours(-1), t2);
}
}

Or add a timeOffset attribute to the connection task and move the 
DateTime.Compare calls into a helper method that normalizes the times.



- Original Message 
From: Karl Stubsjoen kst...@gmail.com
To: nant-users@lists.sourceforge.net
Sent: Wednesday, January 28, 2009 3:03:34 PM
Subject: Re: [NAnt-users] FTP Task

Does anyone have any ideas on this??

On Tue, Jan 27, 2009 at 10:18 AM, Karl Stubsjoen kst...@gmail.com wrote:
 Hello,
 I need to make a tweak to the FTP task.  When it compares dates from
 my local system to remote system, the date of the remote system is off
 by 1 hour, so code I've made changes to inside this hour do not get
 ftp'd when overwrite is false.  I'm hoping to:

 a)  configure the FTP task somehow
 b)  tweak the source code

 If option b, where can I find the source code?

 Thanks,

 Karl..


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


[NAnt-users] FTP Task

2009-01-27 Thread Karl Stubsjoen
Hello,
I need to make a tweak to the FTP task.  When it compares dates from
my local system to remote system, the date of the remote system is off
by 1 hour, so code I've made changes to inside this hour do not get
ftp'd when overwrite is false.  I'm hoping to:

a)  configure the FTP task somehow
b)  tweak the source code

If option b, where can I find the source code?

Thanks,

Karl..

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


[Nant-users] Ftp task?

2004-07-13 Thread Bonnett, Evan A
Title: Ftp task?





Is there a need for an ftp task? I tar up all my files and ftp them to my servers. Now that I am getting close to putting Nant into production, I am thinking about an ftp and a tar task. Is this something anyone would be interested in?

Just curious.


Evan A. Bonnett
Reynolds and Reynolds, IT





RE: [Nant-users] Ftp task?

2004-07-13 Thread Castro, Edwin Gabriel (Firing Systems Engr.)
Title: Ftp task?



At one point I had thought of using webdav to upload 
files to our site. It's not any more secure than FTP but the functionality would 
have allowed our team to "auto-post" build/testing results to our intranet team 
SharePoint website.

IMHO,aftp (and/or webdav) 
task could be a really cool addition to NantContrib.




--
Edwin G. Castro
[EMAIL PROTECTED]



  
  
  From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] On Behalf Of Dan 
  PupekSent: Tuesday, July 13, 2004 1:03 PMTo: NAnt Users 
  List; Bonnett, Evan ASubject: RE: [Nant-users] Ftp 
  task?
  
  FTP 
  is very unsecure (most of the time)and I believe this is the reason no 
  real effort has been made in this regard.
  
  I, 
  personally, wouldn't use it for production code.
  
  
  Dan Pupek
  Software 
  Engineer
  Advanced Systems 
  Technology, Inc
  [EMAIL PROTECTED]
  (850) 
  475-4038
  
-Original Message-From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]On Behalf Of Bonnett, 
Evan ASent: Tuesday, July 13, 2004 2:38 PMTo: 
[EMAIL PROTECTED]Subject: [Nant-users] Ftp 
task?
Is there a need for an ftp task? I tar up all my files 
and ftp them to my servers. Now that I am getting close to putting 
Nant into production, I am thinking about an ftp and a tar task. Is 
this something anyone would be interested in?
Just curious. 
Evan A. Bonnett Reynolds and 
Reynolds, IT 


Re: [Nant-users] Ftp task?

2004-07-13 Thread Scott Hernandez
Title: Ftp task?



There is an scp/* task in nantcontrib... 
That is a secure transfer for files. It also allows for compression during the 
send. It pretty much just wraps scp.exe.

There was also talk of a webdav/ task being 
pulled from the solution/ code, but I don't think anyone ever did it. If 
someone would, that could be included in the dist. :)

*http://nantcontrib.sourceforge.net/nightly/help/tasks/scp.html

PS. webdav over ssl is more secure than ftp, but 
then again, there is sftp out there too... :_)

  - Original Message - 
  From: 
  Castro, Edwin Gabriel 
  (Firing Systems Engr.) 
  To: NAnt Users List 
  Sent: Tuesday, July 13, 2004 1:04 
PM
  Subject: RE: [Nant-users] Ftp task?
  
  At one point I had thought of using webdav to upload 
  files to our site. It's not any more secure than FTP but the functionality 
  would have allowed our team to "auto-post" build/testing results to our 
  intranet team SharePoint website.
  
  IMHO,aftp (and/or webdav) 
  task could be a really cool addition to NantContrib.
  
  
  
  
  --
  Edwin G. Castro
  [EMAIL PROTECTED]
  
  
  


From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Dan 
PupekSent: Tuesday, July 13, 2004 1:03 PMTo: NAnt 
Users List; Bonnett, Evan ASubject: RE: [Nant-users] Ftp 
task?

FTP is very unsecure (most of the time)and I 
believe this is the reason no real effort has been made in this 
regard.

I, 
personally, wouldn't use it for production code.


Dan Pupek
Software 
Engineer
Advanced Systems 
Technology, Inc
[EMAIL PROTECTED]
(850) 
475-4038

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]On Behalf Of 
  Bonnett, Evan ASent: Tuesday, July 13, 2004 2:38 
  PMTo: [EMAIL PROTECTED]Subject: 
  [Nant-users] Ftp task?
  Is there a need for an ftp task? I tar up all my 
  files and ftp them to my servers. Now that I am getting close to 
  putting Nant into production, I am thinking about an ftp and a tar 
  task. Is this something anyone would be interested in?
  Just curious. 
  Evan A. Bonnett Reynolds and 
  Reynolds, IT 


Re: [Nant-users] Ftp task?

2004-07-13 Thread Gert Driesen

- Original Message -
From: Bonnett, Evan A [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 13, 2004 9:37 PM
Subject: [Nant-users] Ftp task?


 Is there a need for an ftp task?  I tar up all my files and ftp them to my
 servers.  Now that I am getting close to putting Nant into production, I
am
 thinking about an ftp and a tar task.  Is this something anyone would be
 interested in?

A tar task would definitely be interesting, and it should be pretty easy to
implement as #ziplib also supports tar.  My might need to refactor the
existing zip / unzip task, to have more code reuse ...

Gert



---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users


RE: [Nant-users] Ftp task?

2004-07-13 Thread Bonnett, Evan A
Title: RE: [Nant-users] Ftp task?





Let me know when you look into this. I would be glad to contribute to the cause by spearheading the tar/ task. For now, I am going to use the exec / but would like it to be a little cleaner. As soon as I get my build running smooth, I will start to work on the task.

By the way, Special thanks to Ryan Cromwell for providing me with an XSLT template and answering a boat load of questions.

Evan A. Bonnett
Reynolds and Reynolds, IT
ERA Integrated Desking Development
937-485-8577
58577



-Original Message-
From: Gert Driesen [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 13, 2004 4:45 PM
To: Bonnett, Evan A; [EMAIL PROTECTED]
Subject: Re: [Nant-users] Ftp task?




- Original Message -
From: Bonnett, Evan A [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 13, 2004 9:37 PM
Subject: [Nant-users] Ftp task?



 Is there a need for an ftp task? I tar up all my files and ftp them 
 to my servers. Now that I am getting close to putting Nant into 
 production, I
am
 thinking about an ftp and a tar task. Is this something anyone would 
 be interested in?


A tar task would definitely be interesting, and it should be pretty easy to implement as #ziplib also supports tar. My might need to refactor the existing zip / unzip task, to have more code reuse ...

Gert