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 F03CB92D1 for ; Thu, 5 Apr 2012 22:34:55 +0000 (UTC) Received: (qmail 10693 invoked by uid 500); 5 Apr 2012 22:34:54 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 10607 invoked by uid 500); 5 Apr 2012 22:34:54 -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 10591 invoked by uid 99); 5 Apr 2012 22:34:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Apr 2012 22:34:54 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,RISK_FREE,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 Apr 2012 22:34:53 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 162BB35B2F6 for ; Thu, 5 Apr 2012 22:34:33 +0000 (UTC) Date: Thu, 5 Apr 2012 22:34:33 +0000 (UTC) From: "Hoss Man (Commented) (JIRA)" To: dev@lucene.apache.org Message-ID: <854520868.20185.1333665273099.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1909947376.20155.1333664664806.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (LUCENE-3961) don't build and rebuild jar files for dependencies in tests 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/LUCENE-3961?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13247778#comment-13247778 ] Hoss Man commented on LUCENE-3961: ---------------------------------- I don't have a strong opinion about this, but there are two counter arguments i've heard from over the years made in favor of *always* building the jar(s) even though it's a bit slower for the tests... 1) it mean you always test against hte same jars that you ship -- so there is no risk that the classpath you build for testing is subtly different then the files that make it into the jar (ie: maybe contrib/cheeseburger/build.xml copies a cheese_types.xml file into it's classes dir, but it accidentally gets excluded from contrib-cheeses.jar 2) it means less risk that someone accidentally uses an older jar then they thing... a) "ant something" ... builds contrib-hamburger.jar and contrib-cheese.jar b) you realize it doesn't work the way you want, so you apply a patch (with tests!) c) "ant test" rebuilds contrib/*/classes and you see your new hamburger test passes d) you copy contrib-hamburger.jar and contrib-cheese.jar not realizing they are still left over from #a above, and don't have your patch. > don't build and rebuild jar files for dependencies in tests > ----------------------------------------------------------- > > Key: LUCENE-3961 > URL: https://issues.apache.org/jira/browse/LUCENE-3961 > Project: Lucene - Java > Issue Type: Improvement > Components: general/build > Reporter: Robert Muir > Fix For: 4.0 > > > Hossman's comments about when jars are built had me thinking, > its not really great how dependencies are managed currently. > say i have contrib/hamburger that depends on contrib/cheese > if I do 'ant test' in contrib/hamburger, you end out with a situation > where you have no hamburger.jar but you have a cheese.jar. > The reason for this: i think is how we implement the contrib-uptodate, > via .jar files. I think instead contrib-uptodate shouldnt use actual > jar files (cheese.jar) but a simple file we 'touch' like cheese.compiled. > This will make the build faster, especially I think the solr tests > which uses these dependencies across a lot of lucene modules. we won't > constantly jar their stuff. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa 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