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 DB2F310707 for ; Thu, 31 Oct 2013 11:11:09 +0000 (UTC) Received: (qmail 50011 invoked by uid 500); 31 Oct 2013 11:11:08 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 49715 invoked by uid 500); 31 Oct 2013 11:11:08 -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 49707 invoked by uid 99); 31 Oct 2013 11:11:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Oct 2013 11:11:08 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of claus.ibsen@gmail.com designates 209.85.223.180 as permitted sender) Received: from [209.85.223.180] (HELO mail-ie0-f180.google.com) (209.85.223.180) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Oct 2013 11:11:04 +0000 Received: by mail-ie0-f180.google.com with SMTP id e14so4543910iej.39 for ; Thu, 31 Oct 2013 04:10:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=Fe2+pM31Xxh2dQuk6oX4BLLuGrj43MMbIXHIhhHMcjg=; b=xnBvPAFtQuBgYEGix7kBvFdlQaHkJ0x8kqvsX78ZBwnwmlywe0EoGdvD2Gg/M5/OcD rPK6JDBpOJ3kum7OKIRKO9O6ZTxXgqh8zee73b7oSJQsq5s2zwproCwZF0WhTie+hAaz SvltiOSL6kNWT0wt/p3vCkak+UotVKfuXz16ebDsy9ishE1ZJ2qvQ6DbDYsv963RApSp xeDQqME/7xZ7xkUcNehBLdiq+LtS6qbShzliXo0H/9IPjoHHFFGgoG0SNgURSrsnbwDT x/E/URd6gUj0lk49MNRVtnfsFx2H663bviV0Wo9lSG2sMUmy6+tgMtZv45auGYhZR4U4 cbHQ== X-Received: by 10.42.35.5 with SMTP id o5mr1863543icd.8.1383217842117; Thu, 31 Oct 2013 04:10:42 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.168.38 with HTTP; Thu, 31 Oct 2013 04:10:22 -0700 (PDT) In-Reply-To: References: From: Claus Ibsen Date: Thu, 31 Oct 2013 12:10:22 +0100 Message-ID: Subject: Re: IgnoreMissingLocation does not ignore env and sys variables in property component To: "users@camel.apache.org" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org IgnoreMissingLocation is for ignoring a location of the properties if it cannot be found, such as a file not found etc. It is not for ignoring missing keys. What you are looking for is something like a ignoreUnresolvablePlaceholders=3Dtrue to ignore unresolved keys. Spring has such an option, we could add similar to Camel itself as well. Fell free to log a JIRA ticket On Thu, Oct 31, 2013 at 12:01 PM, S=E9bastien BROUSSE wrote: > Hi, > > In my camel context I have declared a "propertyPlaceholder" wich load > a local properties file and a system variable to be able to override > by an external configuration. > > But when launching unit tests, I failed to load the context beacause > It check the presence of the system variable even if I set the > ignoreMissingLocation to true. > > Sample configuration & code is joined, just launch "mvn test". > > Can you confirm me, if it is an issue or did I misunderstand something ? > > Thx --=20 Claus Ibsen ----------------- Red Hat, Inc. Email: cibsen@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen