Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 95778 invoked from network); 21 Feb 2010 14:35:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Feb 2010 14:35:51 -0000 Received: (qmail 9642 invoked by uid 500); 21 Feb 2010 14:35:51 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 9590 invoked by uid 500); 21 Feb 2010 14:35:51 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 9582 invoked by uid 99); 21 Feb 2010 14:35:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Feb 2010 14:35:51 +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; Sun, 21 Feb 2010 14:35:48 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D9F6A29A0013 for ; Sun, 21 Feb 2010 06:35:27 -0800 (PST) Message-ID: <2049388443.420121266762927891.JavaMail.jira@brutus.apache.org> Date: Sun, 21 Feb 2010 14:35:27 +0000 (UTC) From: "fabrizio giustina (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Updated: (JCR-2504) Allow indexingConfiguration to be loaded from the classpath In-Reply-To: <1624529392.420101266762927879.JavaMail.jira@brutus.apache.org> 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/JCR-2504?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] fabrizio giustina updated JCR-2504: ----------------------------------- Attachment: indexingConfiguration_classpath.diff SearchIndex patch > Allow indexingConfiguration to be loaded from the classpath > ----------------------------------------------------------- > > Key: JCR-2504 > URL: https://issues.apache.org/jira/browse/JCR-2504 > Project: Jackrabbit Content Repository > Issue Type: Improvement > Components: indexing > Affects Versions: 1.6.1, 2.0.0 > Reporter: fabrizio giustina > Attachments: indexingConfiguration_classpath.diff > > > The "indexingConfiguration" attribute in the SearchIndex configuration (http://wiki.apache.org/jackrabbit/IndexingConfiguration) actually requires an absolute filesystem path. > It would be nice if SearchIndex would also accept a file available in the classpath... although you can use variables like ${wsp.home} or similar there are many scenarios where a classpath resource would help (for example when creating a new workspace the directory structure is automatically created by jackrabbit and doesn't need to be already available but the indexing configuration file does). > I am attaching a simple patch to SearchIndex that tries to load the file from the classpath if it has not been found. Since priority is given to the old behavior (file before classpath) so it's fully backward compatible. > Diff has been generated against trunk, it would be nice to have this patch also on the 2.0 branch. > > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.