Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 77069 invoked from network); 23 Apr 2009 18:37:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Apr 2009 18:37:55 -0000 Received: (qmail 85064 invoked by uid 500); 23 Apr 2009 18:37:54 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 84967 invoked by uid 500); 23 Apr 2009 18:37:53 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 84947 invoked by uid 99); 23 Apr 2009 18:37:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Apr 2009 18:37:53 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Apr 2009 18:37:51 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5A79F234C003 for ; Thu, 23 Apr 2009 11:37:30 -0700 (PDT) Message-ID: <948989338.1240511850355.JavaMail.jira@brutus> Date: Thu, 23 Apr 2009 11:37:30 -0700 (PDT) From: "Clement Escoffier (JIRA)" To: dev@felix.apache.org Subject: [jira] Updated: (FELIX-1055) Making FileInstall bundle CDC-1.1/Foundation 1.1 compatible In-Reply-To: <1104004801.1240510650586.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/FELIX-1055?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Clement Escoffier updated FELIX-1055: ------------------------------------- Assignee: Clement Escoffier Remaining Estimate: 0h Original Estimate: 0h > Making FileInstall bundle CDC-1.1/Foundation 1.1 compatible > ----------------------------------------------------------- > > Key: FELIX-1055 > URL: https://issues.apache.org/jira/browse/FELIX-1055 > Project: Felix > Issue Type: Improvement > Components: File Install > Environment: All > Reporter: Ali Naddaf > Assignee: Clement Escoffier > Priority: Minor > Original Estimate: 0h > Remaining Estimate: 0h > > A minor change will make File Install bundle compatible with the CDC-1.1/Foundation-1.1 compatible: > Index: src/main/java/org/apache/felix/fileinstall/FileInstall.java > =================================================================== > --- src/main/java/org/apache/felix/fileinstall/FileInstall.java (revision 761715) > +++ src/main/java/org/apache/felix/fileinstall/FileInstall.java (working copy) > @@ -68,7 +68,7 @@ > Object o = context.getProperty(key); > if (o == null) > { > - o = System.getenv(key.toUpperCase().replaceAll(".", "_")); > + o = System.getProperty(key.toUpperCase().replace('.', '_')); > if (o == null) > { > return; > ---------------------------------------------------------------------------------------------------------- > The only needed change is in the FileInstall class: > 1. replacing String.replaceAll(String, String) with String.replace(char, char) (since replaceAll is not part of that profile and we are only making one char replacement). If a more robust replaceAll functionality is required, please let me know and I provide a simple implementation. > 2. Using System.getProperty(..) instead of System.getenv(...) > Thanks, -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.