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 CCF9ED736 for ; Fri, 28 Sep 2012 10:01:11 +0000 (UTC) Received: (qmail 1173 invoked by uid 500); 28 Sep 2012 10:01:09 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 621 invoked by uid 500); 28 Sep 2012 10:01:09 -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 580 invoked by uid 99); 28 Sep 2012 10:01:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Sep 2012 10:01:07 +0000 Date: Fri, 28 Sep 2012 21:01:07 +1100 (NCT) From: "Uwe Schindler (JIRA)" To: dev@lucene.apache.org Message-ID: <842107376.138594.1348826467601.JavaMail.jiratomcat@arcas> In-Reply-To: <526447239.138593.1348826467529.JavaMail.jiratomcat@arcas> Subject: [jira] [Updated] (LUCENE-4445) Fix clover to correcty instrument all packages, improve permgen 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-4445?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Uwe Schindler updated LUCENE-4445: ---------------------------------- Attachment: LUCENE-4445.patch > Fix clover to correcty instrument all packages, improve permgen > --------------------------------------------------------------- > > Key: LUCENE-4445 > URL: https://issues.apache.org/jira/browse/LUCENE-4445 > Project: Lucene - Core > Issue Type: Bug > Components: general/test > Affects Versions: 4.0 > Reporter: Uwe Schindler > Assignee: Uwe Schindler > Fix For: 4.1, 5.0 > > Attachments: LUCENE-4445.patch > > > This is a very stupid problem, but after a long time sitting in fornt of the build.xml's I found it: > 1. The biggest problem was: the target "-clover.init" was made in a way that it used the clover.loaded sysprop to avoid permgen issues. Unfortunatley it not only loaded clover, it also set it up in this task (setting the java source file folders). If the taskdef was then loaded for the first time, it had its source folders set up with the module it was called first. The later coming compilation of another module did not run clover.setup anymore, so no new source folders were configured. I splitted the IVY-Load+Taskdef from the clover setup. > 2. I also improved the code duplication for compile in test-framework. I made it inherit from common-build, but disable clover instrumentation for test-framework by overriding -clover.setup target in the test-frameworks (Lucene+Solr). > 3. I fixed some permgen issues, so -clover.load is only executed onec. I had to use a trick to pass the classpath to ivy's cachepath down to the subants, because we don't inherit refs. The trick was to make the clover.loaded property contain a stringified version of the clover classpath instead of a simple "true". By that it is automatically passed down using the propertyset. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators 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