Return-Path: X-Original-To: apmail-karaf-user-archive@minotaur.apache.org Delivered-To: apmail-karaf-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 190FE18EF3 for ; Fri, 21 Aug 2015 13:42:00 +0000 (UTC) Received: (qmail 15021 invoked by uid 500); 21 Aug 2015 13:41:59 -0000 Delivered-To: apmail-karaf-user-archive@karaf.apache.org Received: (qmail 14970 invoked by uid 500); 21 Aug 2015 13:41:59 -0000 Mailing-List: contact user-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@karaf.apache.org Delivered-To: mailing list user@karaf.apache.org Received: (qmail 14960 invoked by uid 99); 21 Aug 2015 13:41:59 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Aug 2015 13:41:59 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 79EE6182684 for ; Fri, 21 Aug 2015 13:41:59 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.765 X-Spam-Level: ** X-Spam-Status: No, score=2.765 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_ENVFROM_END_DIGIT=0.25, NML_ADSP_CUSTOM_MED=1.2, URIBL_BLOCKED=0.001, URI_HEX=1.313] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id hk9agWsdsOuO for ; Fri, 21 Aug 2015 13:41:52 +0000 (UTC) Received: from mwork.nabble.com (mwork.nabble.com [162.253.133.43]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTP id 6936B42B18 for ; Fri, 21 Aug 2015 13:41:52 +0000 (UTC) Received: from mben.nabble.com (unknown [162.253.133.72]) by mwork.nabble.com (Postfix) with ESMTP id 952E626C7461 for ; Fri, 21 Aug 2015 06:42:13 -0700 (PDT) Date: Fri, 21 Aug 2015 06:41:52 -0700 (MST) From: maggu2810 To: user@karaf.apache.org Message-ID: In-Reply-To: References: <1440158682665-4041994.post@n3.nabble.com> <55D71743.70109@nanthrax.net> Subject: Re: system properties file (multiple ones) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 2015-08-21 15:25 GMT+02:00 Benson Margulies [via Karaf] : > It is read at startup. The important question is whether it ends up in the > etc directory. Have you looked at the generated assembly to see if the file > is in the right place? Perhaps it's not travelling from src/main/resources > to etc correctly. Tried that one: === $ cat etc/overrides.properties test_overrides=true The file overrides.properties must not be used for this, Karaf cannot be started: 2015-08-21 15:37:50,481 | ERROR | pool-1-thread-1 | BootFeaturesInstaller | 8 - org.apache.karaf.features.core - 4.0.0 | Error installing boot features java.lang.IllegalArgumentException: No path specified on clause: test_overrides = true at org.apache.felix.utils.manifest.Parser.parseClauses(Parser.java:73)[8:org.apache.karaf.features.core:4.0.0] === $ cat etc/override.properties test_override=true karaf@root()> system:property | grep test karaf@root()> So, the file is not evaluated and the content is not set as system properties. === $ tail -n 1 etc/system.properties test_system=true karaf@root()> system:property | grep test test_system=true That was expected. -- View this message in context: http://karaf.922171.n3.nabble.com/system-properties-file-multiple-ones-tp4041994p4042001.html Sent from the Karaf - User mailing list archive at Nabble.com.