Return-Path: Delivered-To: apmail-jackrabbit-commits-archive@www.apache.org Received: (qmail 76728 invoked from network); 21 May 2009 07:17:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 May 2009 07:17:58 -0000 Received: (qmail 43761 invoked by uid 500); 21 May 2009 07:18:11 -0000 Delivered-To: apmail-jackrabbit-commits-archive@jackrabbit.apache.org Received: (qmail 43695 invoked by uid 500); 21 May 2009 07:18:11 -0000 Mailing-List: contact commits-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 commits@jackrabbit.apache.org Received: (qmail 43686 invoked by uid 99); 21 May 2009 07:18:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 May 2009 07:18:11 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 May 2009 07:18:08 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 3F7A7238889C; Thu, 21 May 2009 07:17:47 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r776985 - /jackrabbit/branches/1.x/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/TransientRepository.java Date: Thu, 21 May 2009 07:17:47 -0000 To: commits@jackrabbit.apache.org From: jukka@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090521071747.3F7A7238889C@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: jukka Date: Thu May 21 07:17:46 2009 New Revision: 776985 URL: http://svn.apache.org/viewvc?rev=776985&view=rev Log: JCR-2119: Method to create default RepositoryConfig from just the repository directory Keep the "throws IOException" declarations in TransientRepository constructors to avoid compile failures in clients. The signatures can be fixed in Jackrabbit 2.0 Modified: jackrabbit/branches/1.x/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/TransientRepository.java Modified: jackrabbit/branches/1.x/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/TransientRepository.java URL: http://svn.apache.org/viewvc/jackrabbit/branches/1.x/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/TransientRepository.java?rev=776985&r1=776984&r2=776985&view=diff ============================================================================== --- jackrabbit/branches/1.x/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/TransientRepository.java (original) +++ jackrabbit/branches/1.x/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/TransientRepository.java Thu May 21 07:17:46 2009 @@ -155,10 +155,9 @@ * are not found, then the default values "repository.xml" * and "repository" are used. * - * @throws IOException if the static repository descriptors cannot be loaded + * @throws IOException not thrown, to be removed in Jackrabbit 2.0 */ - public TransientRepository() - throws IOException { + public TransientRepository() throws IOException { this(System.getProperty(CONF_PROPERTY, CONF_DEFAULT), System.getProperty(HOME_PROPERTY, HOME_DEFAULT)); } @@ -168,7 +167,7 @@ * configuration to initialize the underlying repository instance. * * @param config repository configuration - * @throws IOException if the static repository descriptors cannot be loaded + * @throws IOException not thrown, to be removed in Jackrabbit 2.0 */ public TransientRepository(final RepositoryConfig config) throws IOException { @@ -187,9 +186,10 @@ * @see #TransientRepository(File, File) * @param config repository configuration file * @param home repository home directory - * @throws IOException if the static repository descriptors cannot be loaded + * @throws IOException not thrown, to be removed in Jackrabbit 2.0 */ - public TransientRepository(String config, String home) { + public TransientRepository(String config, String home) + throws IOException { this(new File(config), new File(home)); }