Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B4AA810DE0 for ; Wed, 11 Dec 2013 16:12:42 +0000 (UTC) Received: (qmail 43528 invoked by uid 500); 11 Dec 2013 16:12:42 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 43367 invoked by uid 500); 11 Dec 2013 16:12:41 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 43359 invoked by uid 99); 11 Dec 2013 16:12:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Dec 2013 16:12:41 +0000 X-ASF-Spam-Status: No, hits=3.8 required=5.0 tests=FREEMAIL_REPLY,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of kraythe@gmail.com designates 209.85.220.170 as permitted sender) Received: from [209.85.220.170] (HELO mail-vc0-f170.google.com) (209.85.220.170) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Dec 2013 16:12:34 +0000 Received: by mail-vc0-f170.google.com with SMTP id la4so2776756vcb.29 for ; Wed, 11 Dec 2013 08:12:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=XVsI8jWR/E715GQIe9MQs1iMiduSmFoPD2KsANrwZUU=; b=RFac1umbP+Z2iFjssqT+2yvo461gSALrE/WAftohq7NfKtZQ08hK/h9jrJV4o9O63u 6xThj7o/96qJ+Pk3NB+r8COzyTa9jXx/IkRmPLaQoaBkazN3Q783hv9MiTMjSS0Yn3/n hXqWQmfbQz57HdJBoKn4wccuOJ5k7VVFlmwmmfExcHzsoEa9Eleh9Fss1WiPlJRV/+w4 r+9bA0QGPTTrfPd0hSKSW/XmMdr+Na4SsojSiEJ+Q8fENNULG/Pw8b8PtZFL+uOOWe/J FZTtu4Y1D+2q/cdvWkoyz1iFLNnYCQaVuTfts2RbUP0MgxQ0AQYLnRwUCD1SATjH3cH3 +E1w== MIME-Version: 1.0 X-Received: by 10.58.178.239 with SMTP id db15mr890912vec.9.1386778333315; Wed, 11 Dec 2013 08:12:13 -0800 (PST) Received: by 10.58.172.34 with HTTP; Wed, 11 Dec 2013 08:12:13 -0800 (PST) In-Reply-To: <1386742952946-5744592.post@n5.nabble.com> References: <1386742952946-5744592.post@n5.nabble.com> Date: Wed, 11 Dec 2013 10:12:13 -0600 Message-ID: Subject: Re: Apache Camel File component preMove, move and moveFailed relative rather than absolute From: "kraythe ." To: Camel Users List Content-Type: multipart/alternative; boundary=047d7b672a96f08a3504ed447d45 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b672a96f08a3504ed447d45 Content-Type: text/plain; charset=ISO-8859-1 Its working according to the documentation. try ../done to make done a sibling to staging. *Robert Simmons Jr. MSc. - Lead Java Architect @ EA* *Author of: Hardcore Java (2003) and Maintainable Java (2012)* *LinkedIn: **http://www.linkedin.com/pub/robert-simmons/40/852/a39 * On Wed, Dec 11, 2013 at 12:22 AM, richie.riviere@gmail.com < richie.riviere@gmail.com> wrote: > Hi guys, > > I've got a question about preMove, move and moveFailed. PreMove seems to be > relative to the input directory and move seems to be relative to the > preMove > directory. For example if I do a.. > > from("file:{{dir.item.inbox}}?" > + "doneFileName={{filename.item.trigger}}&" > + "preMove={{dir.item.staging}}&" > + "move={{dir.item.done}}&" > + "moveFailed={{dir.item.error}}") > > where .... > > dir.item.inbox=src/inbox/items/ > dir.item.staging=staging > dir.item.done=.done > dir.item.error=.error > filename.item.trigger=NEWFILES.TRG > > when the file is processed successfully I get the original file moved into > a > done directory in the following folder structure... > > src>inbox>items>staging>.done > > I assume it is the same for error although I haven't been able to test this > yet. > > Is there anyway to make the paths not relative to each other. For example > is > t here someway I could specify.... > dir.item.inbox=src/inbox/items/ > dir.item.staging=src/inbox/items/staging > dir.item.done=src/inbox/items/done > dir.item.error=src/inbox/items/error > filename.item.trigger=NEWFILES.TRG > > I've actually tried this but the directory structure that was created was > nasty. lol > > thanks for your help. > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Apache-Camel-File-component-preMove-move-and-moveFailed-relative-rather-than-absolute-tp5744592.html > Sent from the Camel - Users mailing list archive at Nabble.com. > --047d7b672a96f08a3504ed447d45--