Return-Path: Delivered-To: apmail-activemq-camel-user-archive@locus.apache.org Received: (qmail 45024 invoked from network); 31 Mar 2008 08:14:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Mar 2008 08:14:45 -0000 Received: (qmail 79972 invoked by uid 500); 31 Mar 2008 08:14:45 -0000 Delivered-To: apmail-activemq-camel-user-archive@activemq.apache.org Received: (qmail 79958 invoked by uid 500); 31 Mar 2008 08:14:44 -0000 Mailing-List: contact camel-user-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: camel-user@activemq.apache.org Delivered-To: mailing list camel-user@activemq.apache.org Received: (qmail 79949 invoked by uid 99); 31 Mar 2008 08:14:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Mar 2008 01:14:44 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Mar 2008 08:14:03 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1JgF9i-00077b-M6 for camel-user@activemq.apache.org; Mon, 31 Mar 2008 01:14:14 -0700 Message-ID: <16393051.post@talk.nabble.com> Date: Mon, 31 Mar 2008 01:14:14 -0700 (PDT) From: misge To: camel-user@activemq.apache.org Subject: Re: FTP to FILE In-Reply-To: <16380813.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: misge.intra@gmail.com References: <16354813.post@talk.nabble.com> <16380813.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Ok, I will check it also with the 1.3RC davsclaus wrote: > > Hi > > For what it is worth I got this code working fine in Camel 1.3: > > String fileUrl = > "file:target/ftptest/?append=false&noop=true"; > from(ftpUrl).setHeader(FileComponent.HEADER_FILE_NAME, > constant("deleteme.txt")). > > convertBodyTo(String.class).to(fileUrl).to("mock:result"); > > I will add a unit test (FromFtpToAsciiFileTest) that verifies that it > works on Camel 1.3+ > > /Claus > > misge wrote: >> >> Hello, >> I'm using the following in order to fetch a file though FTP and then >> store it locally in my client. As a result, i have a directory created >> instead of a file even though that i set the >> FileComponent.HEADER_FILE_NAME. >> I'm getting the same behaviour with or without the >> FileComponent.HEADER_FILE_NAME set. >> >> String ftpReceive = >> "ftp://xxx@111.111.11.111:21/Adobe/delme.txt?password=xxx&binary=false&directory=false"; >> >> from(ftpReceive).setHeader(FileComponent.HEADER_FILE_NAME,constant("delmeTo.txt")).to("file:inputdir/?append=false&noop=true"); >> >> I'm using mina 1.2.0 >> >> Regards, >> >> > > -- View this message in context: http://www.nabble.com/FTP-to-FILE-tp16354813s22882p16393051.html Sent from the Camel - Users mailing list archive at Nabble.com.