Return-Path: X-Original-To: apmail-tomcat-dev-archive@www.apache.org Delivered-To: apmail-tomcat-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 B8BBCB214 for ; Tue, 17 Jan 2012 01:16:08 +0000 (UTC) Received: (qmail 88668 invoked by uid 500); 17 Jan 2012 01:16:08 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 88525 invoked by uid 500); 17 Jan 2012 01:16:07 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 88516 invoked by uid 99); 17 Jan 2012 01:16:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jan 2012 01:16:07 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of knst.kolinko@gmail.com designates 209.85.220.173 as permitted sender) Received: from [209.85.220.173] (HELO mail-vx0-f173.google.com) (209.85.220.173) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jan 2012 01:15:59 +0000 Received: by vcbfk14 with SMTP id fk14so1307752vcb.18 for ; Mon, 16 Jan 2012 17:15:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=VPsAKb6FtCUMQwAmKa/KUv0NRSCv7dqMny2fen6002g=; b=K/5TZlgE1lWe8AIIHbwrQNlv3HlOWl6A9p9oz5rCULpv5P5bd3+G8pYTFDKStw22Cb tvkYnfriHKpIUQO52pfOoWf1OvkRo8zVynCX2pVHRgGdvpyLcPsODrlzPfsabGW9Y2Ic oeHwGvBwACmAwwm9mJUkDCfHzBgQupaZjTinw= MIME-Version: 1.0 Received: by 10.52.71.168 with SMTP id w8mr7190864vdu.58.1326762938481; Mon, 16 Jan 2012 17:15:38 -0800 (PST) Received: by 10.52.110.137 with HTTP; Mon, 16 Jan 2012 17:15:38 -0800 (PST) In-Reply-To: <4F148C52.6070308@apache.org> References: <4F136148.6050205@apache.org> <4F13F192.5020702@kippdata.de> <9586CA8A-5930-452C-B99D-793204B7E845@m4x.org> <4F148C52.6070308@apache.org> Date: Tue, 17 Jan 2012 05:15:38 +0400 Message-ID: Subject: Re: [VOTE] Release Apache Tomcat 7.0.24 From: Konstantin Kolinko To: Tomcat Developers List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org 2012/1/17 Mark Thomas : > On 16/01/2012 19:04, Sylvain Laurent wrote: >> >> On 16 janv. 2012, at 10:44, Rainer Jung wrote: >>> >>> 1) Unit test failure due to missing target directory in src dist >>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >>> >>> I noticed that test/webapp-3.0-virtual-library/target is missing from t= he src dist. So when rebuilding from src dist and running unit tests, I get= a failure in TestVirtualContext, because some resource which is usually re= trieved form the target dir is missing: >>> >>> Testcase: testVirtualClassLoader took 7.434 sec >>> =A0 =A0 =A0 =A0FAILED >>> expected:<200> but was:<404> >>> junit.framework.AssertionFailedError: expected:<200> but was:<404> >>> =A0 =A0 =A0 =A0at org.apache.catalina.loader.TestVirtualContext.assertP= ageContains(TestVirtualContext.java:302) >>> =A0 =A0 =A0 =A0at org.apache.catalina.loader.TestVirtualContext.assertP= ageContains(TestVirtualContext.java:294) >>> =A0 =A0 =A0 =A0at org.apache.catalina.loader.TestVirtualContext.testVir= tualClassLoader(TestVirtualContext.java:100) >>> >>> AFAIK the root cause is, that we exclude **/target/** in the ant target= dist-source from being copied. >>> >>> Note that there is also test/webapp-3.0-virtual-library/target. >>> >>> I don't know, whether we can simply drop this exclude, or should rename= the directory. I CC'd Sylvain explicitely, maybe he can comment on it. >> >> If there are no side effect to dropping this exclude, you may do it (I r= eally don't know enough of the build system of tomcat). >> Otherwise I can rename those directories so that it is not excluded. Jus= t let me know. > > If I recall correctly, those directories are excluded because some IDEs > use that name by default. If you could rename them that would be great. Not IDEs, but Maven. It writes its output into directories named "target", in each of its modules. (I guess that is not configurable, grr...) That is why "target" was present in .gitignore when it was first added, [1] http://svn.apache.org/viewvc?view=3Drevision&revision=3D1187740 This fault is a combination of mine [2] http://svn.apache.org/viewvc?view=3Drevision&revision=3D1204938 that applied patterns from gitignore to src distribution and of Sylvain's [3] http://svn.apache.org/viewvc?view=3Drevision&revision=3D1209731 when Sylvain removed that line from ".gitignore" and used that name in his commit. I am generally in favor of using more targeted patterns in "dist-source" ta= rget, (That is, comment out "**/target/**" for now, with a comment that we use that name, and add the same comment to .gitignore and later exclude more specific patterns when a need comes) but consider if one of developers used Maven to work on something in module= s. Currently modules/jdbc-pool and modules/tomcat-lite have pom.xml, though svn:ignore property on those directories does not list "target" as excluded. Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org