Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B369521F6 for ; Thu, 5 May 2011 15:09:43 +0000 (UTC) Received: (qmail 96738 invoked by uid 500); 5 May 2011 15:09:42 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 96696 invoked by uid 500); 5 May 2011 15:09:42 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 96689 invoked by uid 99); 5 May 2011 15:09:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 May 2011 15:09:42 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 May 2011 15:09:41 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 2BC71C2AB0 for ; Thu, 5 May 2011 15:09:03 +0000 (UTC) Date: Thu, 5 May 2011 15:09:03 +0000 (UTC) From: "Uwe Schindler (JIRA)" To: dev@lucene.apache.org Message-ID: <1771311386.24726.1304608143176.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <508984880.24686.1304607303228.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (LUCENE-3076) add -Dtests.codecprovider MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LUCENE-3076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13029359#comment-13029359 ] Uwe Schindler commented on LUCENE-3076: --------------------------------------- bq. possibly containing your own set of huper-duper codecs I will copypaste that to my brain's speech centre before the talk at Lucene Revolution to entertain you again :-) > add -Dtests.codecprovider > ------------------------- > > Key: LUCENE-3076 > URL: https://issues.apache.org/jira/browse/LUCENE-3076 > Project: Lucene - Java > Issue Type: Improvement > Reporter: Robert Muir > Fix For: 4.0 > > Attachments: LUCENE-3076.patch > > > Currently to test a codec (or set of codecs) you have to add them to lucene's core and edit a couple of arrays here and there... > It would be nice if when using the test-framework you could instead specify a codecprovider by classname (possibly containing your own set of huper-duper codecs). > For example I made the following little codecprovider in contrib: > {noformat} > public class AppendingCodecProvider extends CodecProvider { > public AppendingCodecProvider() { > register(new AppendingCodec()); > register(new SimpleTextCodec()); > } > } > {noformat} > Then, I'm able to run tests with 'ant -lib build/contrib/misc/lucene-misc-4.0-SNAPSHOT.jar test-core -Dtests.codecprovider=org.apache.lucene.index.codecs.appending.AppendingCodecProvider', and it always picks from my set of codecs (in this case Appending and SimpleText), and I can set -Dtests.codec=Appending if i want to set just one. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org