Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 94977 invoked from network); 2 Jul 2004 17:33:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 2 Jul 2004 17:33:04 -0000 Received: (qmail 25722 invoked by uid 500); 2 Jul 2004 17:33:00 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 25608 invoked by uid 500); 2 Jul 2004 17:32:58 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 25578 invoked by uid 99); 2 Jul 2004 17:32:58 -0000 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [200.255.122.202] (HELO mail1.embratel.com.br) (200.255.122.202) by apache.org (qpsmtpd/0.27.1) with ESMTP; Fri, 02 Jul 2004 10:32:57 -0700 Sensitivity: Subject: ANT - FTP - Unknown parser type: MVS is the operating system of this server To: user@ant.apache.org From: ERDUTRA@embratel.com.br Date: Fri, 2 Jul 2004 14:10:29 -0300 Message-ID: X-MIMETrack: Serialize by Router on ntrjo008/Embratel(Release 5.0.11 |July 24, 2002) at 07/02/2004 02:33:10 PM MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I'm trying to make FTP using ANT. But, after to connect I receive this error message: "Unknown parser type: MVS is the operating system of this server." I think that this error is caused because the class DefaultFTPFileEntryParserFactory.java, used to make FTP on ANT doesn't support the operation system MVS. But, I know that others people are using ANT to make FTP with MVS without problems. What can I do? Thanks, Evandro Dutra Consultor Java 5521 2121-7844 The font code: .... public FTPFileEntryParser createFileEntryParser(String key) { Class parserClass = null; try { parserClass = Class.forName(key); return (FTPFileEntryParser) parserClass.newInstance(); } catch (ClassNotFoundException e) { String ukey = null; if (null != key) { ukey = key.toUpperCase(); } if (ukey.indexOf("UNIX") >= 0) { return createUnixFTPEntryParser(); } else if (ukey.indexOf("VMS") >= 0) { return createVMSVersioningFTPEntryParser(); } else if (ukey.indexOf("WINDOWS") >= 0) { return createNTFTPEntryParser(); } else if (ukey.indexOf("OS/2") >= 0) { return createOS2FTPEntryParser(); } else if (ukey.indexOf("OS/400") >= 0) { return createOS400FTPEntryParser(); } else { throw new ParserInitializationException("Unknown parser type: " + key); // this is my exception } } catch (ClassCastException e) { throw new ParserInitializationException(parserClass.getName() + " does not implement the interface " + "org.apache.commons.net.ftp.FTPFileEntryParser.", e); } catch (Throwable e) { throw new ParserInitializationException("Error initializing parser", e); } } ----------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org