Return-Path: X-Original-To: apmail-geronimo-xbean-dev-archive@minotaur.apache.org Delivered-To: apmail-geronimo-xbean-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2FEF4D0F for ; Tue, 3 May 2011 00:58:08 +0000 (UTC) Received: (qmail 87062 invoked by uid 500); 3 May 2011 00:58:08 -0000 Delivered-To: apmail-geronimo-xbean-dev-archive@geronimo.apache.org Received: (qmail 87029 invoked by uid 500); 3 May 2011 00:58:07 -0000 Mailing-List: contact xbean-dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: xbean-dev@geronimo.apache.org Delivered-To: mailing list xbean-dev@geronimo.apache.org Received: (qmail 87021 invoked by uid 99); 3 May 2011 00:58:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 May 2011 00:58:07 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of xhhsld@gmail.com designates 74.125.82.182 as permitted sender) Received: from [74.125.82.182] (HELO mail-wy0-f182.google.com) (74.125.82.182) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 May 2011 00:58:01 +0000 Received: by wyf23 with SMTP id 23so6031974wyf.13 for ; Mon, 02 May 2011 17:57:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=2NwNBgIqhfqE2UFLmxPao0N5QjMM6swXzfTq1Rb4Dmw=; b=BRX1XZQH+R3CW9BZfBO1avnQdxlNnSPA0VPFzmyxeXcmhiVhhpSR20BZeSnFSUmZe6 IGkau837MjzUPRtjg9iM8Whwh6aNMtQcSNMf0nknJSunJ2sTktT+vvZ0zoWGVnFUGjTQ eMyoehGqmaWQAPbtNEZghZnYDd/EYFT30WHg4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=AyJgZFbwWeKa84o6B/g4CMi35NkTMWR74FNFFDmDBfXZyM02fh6cbhFhySPmC04nn/ yYRZDJyIL70mI4mhmr76XdvSsLOT8T57UXca6aWiVr5jzLxXNfDao3sWTvCgd0fHgpH9 faTxe0BxUbkJnSbJGLTGDrSOaqksBVVidqCes= MIME-Version: 1.0 Received: by 10.216.159.75 with SMTP id r53mr4629752wek.98.1304384259835; Mon, 02 May 2011 17:57:39 -0700 (PDT) Received: by 10.216.138.91 with HTTP; Mon, 2 May 2011 17:57:39 -0700 (PDT) In-Reply-To: References: Date: Tue, 3 May 2011 08:57:39 +0800 Message-ID: Subject: Fwd: The change in xbean/trunk@1095593 brought some regressions to ejblite. From: Ivan To: xbean-dev@geronimo.apache.org Content-Type: multipart/alternative; boundary=00163683303a75479b04a254a09b --00163683303a75479b04a254a09b Content-Type: text/plain; charset=ISO-8859-1 I am thinking that we should have a uniform style what the directory structure is expected while invoking the callback methods, with slash suffix or not. ---> public boolean directoryDiscoveryRequired(String url) { return true; } <--- >From the initial design, it looks that we should always expect a slash suffix with directory ---> public BundleResourceFinder(PackageAdmin packageAdmin, Bundle bundle, String prefix, String suffix, ResourceDiscoveryFilter discoveryFilter) { this.packageAdmin = packageAdmin; this.bundle = bundle; this.prefix = addSlash(prefix.trim()); .... <--- I did not have a special favor for this, but need to keep the consistency. Thoughts ? ---------- Forwarded message ---------- From: Shawn Jiang Date: 2011/5/2 Subject: Re: The change in xbean/trunk@1095593 brought some regressions to ejblite. To: Ivan In persistencethe finder can't find s =" /WEB-INF/classes/" because the string in manifestcp is "/WEB-INF/classes" org.apache.geronimo.persistence.builder.PersistenceUnitBuilder.initContext(...).new ResourceDiscoveryFilter() {...}.directoryDiscoveryRequired(String){ return manifestcp.contains(s); } On Mon, May 2, 2011 at 9:46 PM, Ivan wrote: > Hi, Shawn > I did not see there is an issue for the code changes, > ---> > continueScanning = scanDirectory(callback, bundle, > prefix.startsWith("/") ? name + prefix : name + "/" + prefix) > <--- > It justs make sure the correct path is built, could you give any hit ? > Thanks. > > > 2011/5/2 Shawn Jiang > >> Author: Haihong Xu 2011-04-21 10:56:03 >> Committer: Haihong Xu 2011-04-21 10:56:03 >> Parent: e6c32dd892f15927ea1ca1687c2ef5db039cc57b (use the original bundle >> passed for resource lookup) >> Child: 5de3a3e1b5a783a1913aacf4d53ad50e89a249ea (Pass the native bundle >> instance for wired bundles calculation) >> Branches: remotes/origin/trunk, trunk >> Follows: >> Precedes: >> >> The elements in the bundle-classpath do not end with '/', need to add >> the slash based on the value of prefix >> >> git-svn-id: >> https://svn.apache.org/repos/asf/geronimo/xbean/trunk@109559313f79535-47bb-0310-9956-ffa450edef68 >> >> >> Hi Ivan, >> >> The change above brought some regressions to ejblite. >> >> >> https://phoebe.apache.org:9443/jobs/artifacts/164/2098049/Geronimo_3_0_M2_Web_Profile_jetty_web_Test_Results/iteration-5.html >> >> >> -- >> Shawn >> > > > > -- > Ivan > -- Shawn -- Ivan --00163683303a75479b04a254a09b--