Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2C19094FB for ; Tue, 22 Nov 2011 21:59:05 +0000 (UTC) Received: (qmail 95067 invoked by uid 500); 22 Nov 2011 21:59:04 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 94976 invoked by uid 500); 22 Nov 2011 21:59:04 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 94899 invoked by uid 99); 22 Nov 2011 21:59:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Nov 2011 21:59:04 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Nov 2011 21:59:01 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 9E120986F1 for ; Tue, 22 Nov 2011 21:58:40 +0000 (UTC) Date: Tue, 22 Nov 2011 21:58:40 +0000 (UTC) From: "mohan pindyala (Issue Comment Edited) (JIRA)" To: issues@commons.apache.org Message-ID: <1670300375.4075.1321999120648.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Issue Comment Edited] (VFS-182) Usage of FTP with heterogene FTP server (possibility of using Ascii file type) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/VFS-182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13155474#comment-13155474 ] mohan pindyala edited comment on VFS-182 at 11/22/11 9:57 PM: -------------------------------------------------------------- Hi Magnus, we are trying to use common-vfs for doing sftp tasks. Our sftp server is windows based. Client is a java module which will grab text files from linux server and using sftp we want to transfer these text files to windows ftp. All we need is when we transfer end of line(EOL) character should be take care. UNIX LR character should be converted to CRLF for windows. We searched all over but there was no concrete answer on how to set in common-vfs so that it takes care of these characters. Can you point me to the right location or source code sample which does this? Thanks was (Author: mpindyala): Hi Magnus, we are trying to use common-vfs for doing sftp tasks. Our sftp server is windows based. Client is a java module which will grab text files from linux server and using sftp we want to transfer these text files to windows ftp. All we need is when we transfer end of line(EOL) character should be take care. UNIX LR character should be converted to CRLF for windows. We searched all over but there was no concrete answer on how to set in common-vfs so that it takes care of these characters. Can you point me to the right locations or source code sample which does this? Thanks > Usage of FTP with heterogene FTP server (possibility of using Ascii file type) > ------------------------------------------------------------------------------ > > Key: VFS-182 > URL: https://issues.apache.org/jira/browse/VFS-182 > Project: Commons VFS > Issue Type: Improvement > Environment: Mainframe BULL GCOS8 > Reporter: Christian Bastin > Attachments: vfs-182_allow_ascii_file_type.diff > > > Using VFS with ftpServer on Mainframe Bull. I need the posibility to set the file type to Ascii. The navigation in the directory and the filesystem work properly but the accessing of a data file is not possible. > I saw that the FtpClienFactory allways set the file type to binary, is it possible to give an external parameter, .. > FtpClienFactory : > .... > // Set binary mode > if (!client.setFileType(FTP.BINARY_FILE_TYPE)) > { > throw new FileSystemException("vfs.provider.ftp/set-binary.error", hostname); > } > ... > Christian Bastin. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira