Return-Path: X-Original-To: apmail-karaf-dev-archive@minotaur.apache.org Delivered-To: apmail-karaf-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 411AA1040D for ; Fri, 12 Apr 2013 07:37:10 +0000 (UTC) Received: (qmail 12853 invoked by uid 500); 12 Apr 2013 07:37:09 -0000 Delivered-To: apmail-karaf-dev-archive@karaf.apache.org Received: (qmail 12719 invoked by uid 500); 12 Apr 2013 07:37:09 -0000 Mailing-List: contact dev-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list dev@karaf.apache.org Received: (qmail 12688 invoked by uid 99); 12 Apr 2013 07:37:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Apr 2013 07:37:08 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [217.70.183.197] (HELO relay5-d.mail.gandi.net) (217.70.183.197) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Apr 2013 07:37:02 +0000 Received: from mfilter18-d.gandi.net (mfilter18-d.gandi.net [217.70.178.146]) by relay5-d.mail.gandi.net (Postfix) with ESMTP id 6547841C08F for ; Fri, 12 Apr 2013 09:36:40 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter18-d.gandi.net Received: from relay5-d.mail.gandi.net ([217.70.183.197]) by mfilter18-d.gandi.net (mfilter18-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id 2D1G-yiiW+GC for ; Fri, 12 Apr 2013 09:36:38 +0200 (CEST) X-Originating-IP: 82.238.224.4 Received: from [192.168.134.15] (bre91-1-82-238-224-4.fbx.proxad.net [82.238.224.4]) (Authenticated sender: jb@nanthrax.net) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 9569241C06B for ; Fri, 12 Apr 2013 09:36:38 +0200 (CEST) Message-ID: <5167B986.7050806@nanthrax.net> Date: Fri, 12 Apr 2013 09:36:38 +0200 From: =?ISO-8859-1?Q?Jean-Baptiste_Onofr=E9?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 MIME-Version: 1.0 To: dev@karaf.apache.org Subject: Re: Warning when files are not deployed by a feature References: <5166B780.8030201@die-schneider.net> <5167B1D4.2030802@nanthrax.net> <5167B7F5.4010005@die-schneider.net> In-Reply-To: <5167B7F5.4010005@die-schneider.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Awesome, thanks a lot Christian Regards JB On 04/12/2013 09:29 AM, Christian Schneider wrote: > I created the issue as https://issues.apache.org/jira/browse/KARAF-2266= . > > Christian > > On 12.04.2013 09:03, Jean-Baptiste Onofr=E9 wrote: >> Hi Christian, >> >> We have an option "overwrite" to define if the file should be >> overwritten or not during feature installation. >> >> I'm agree with you, we should log a warn message to inform the user if >> a configfile or config (resulting to a file) don't overwrite the final >> file. >> >> For the -f, I'm not sure: overriding the option in the features XML >> could be risky, but basicly, it's the user responsibility. >> >> It sounds good to me. >> >> Do you want that I create the Jira about that ? >> >> Regards >> JB >> >> On 04/11/2013 03:15 PM, Christian Schneider wrote: >>> Hi all, >>> >>> karaf can deploy files like config files during the installation of a >>> feature. If the file is already present then it is not overwritten. >>> I wonder if we should print a warning in this case. One use case for >>> this is a new version of a feature that adds a new needed property >>> to a config file. If the old feature was already present then the old >>> config will be present and the user may also have done changes. >>> >>> So there might be cases where a feature works if it can install its >>> default configs but does not work when they are already present but >>> invalid. >>> So we could write for each file that is already present: >>> "Warning: file to be deployed is already present and will not = be >>> changed." >>> >>> We could also provide an option in feature:install like -f that force= s >>> all files to be overwritten if someone wants to make sure the feature >>> installation should use the defaults. >>> >>> What do you think? >>> >>> Christian >>> >> > > --=20 Jean-Baptiste Onofr=E9 jbonofre@apache.org http://blog.nanthrax.net Talend - http://www.talend.com