Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@apache.org Received: (qmail 9048 invoked from network); 22 Jul 2002 15:32:14 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 22 Jul 2002 15:32:14 -0000 Received: (qmail 19663 invoked by uid 97); 22 Jul 2002 15:32:29 -0000 Delivered-To: qmlist-jakarta-archive-ant-dev@jakarta.apache.org Received: (qmail 19629 invoked by uid 97); 22 Jul 2002 15:32:28 -0000 Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 19602 invoked by uid 50); 22 Jul 2002 15:32:27 -0000 Date: 22 Jul 2002 15:32:27 -0000 Message-ID: <20020722153227.19600.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: ant-dev@jakarta.apache.org Cc: Subject: DO NOT REPLY [Bug 11044] New: - FTP chmod from Windows-UNIX: wrong separator X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11044 FTP chmod from Windows-UNIX: wrong separator Summary: FTP chmod from Windows-UNIX: wrong separator Product: Ant Version: 1.5 Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: Other Component: Optional Tasks AssignedTo: ant-dev@jakarta.apache.org ReportedBy: cmcfarland@onebox.com FTP chmod from Windows to UNIX-style environment does not work. Verbose output shows ant attempting to chmod remote files using Windows style separator ("\") instead of the UNIX-style ("/") separator. I noticed a potential problem in the optional task FTP.java file, which I will cover at the bottom of this message. Here is stripped down ant script which I use to duplicate the problem. Note that you must be executing from Windows to the target environment requiring "/" separators. EXAMPLE SCRIPT: Looking in FTP.java source, I noticed recursive FTP.FTPDirectoryScanner.scandir () method implements hard-coded "File.separator" as the path separator, where I would have expected the FTP attribute "remoteFileSep" to be used instead. Obviously, since I am executing the script on Windows, the File.separator will be Windows style, but we are doing our directory scan targeted for the remote platform. As an interim solution I replaced the "File.separator" occurances w/ "remoteFileSep" and it works. A possibly separate, but related bug: the following ftp "put/send" script does not work for same reason; that is, verbose output shows windows separators for chmod on remote machine. The interim fix above did not fix this. EXAMPLE SCRIPT: -- To unsubscribe, e-mail: For additional commands, e-mail: