Return-Path: Delivered-To: apmail-james-mime4j-dev-archive@minotaur.apache.org Received: (qmail 68684 invoked from network); 16 Mar 2009 13:24:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Mar 2009 13:24:22 -0000 Received: (qmail 80316 invoked by uid 500); 16 Mar 2009 13:24:22 -0000 Delivered-To: apmail-james-mime4j-dev-archive@james.apache.org Received: (qmail 80289 invoked by uid 500); 16 Mar 2009 13:24:22 -0000 Mailing-List: contact mime4j-dev-help@james.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mime4j-dev@james.apache.org Delivered-To: mailing list mime4j-dev@james.apache.org Received: (qmail 80278 invoked by uid 99); 16 Mar 2009 13:24:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Mar 2009 06:24:22 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of robertburrelldonkin@gmail.com designates 209.85.218.164 as permitted sender) Received: from [209.85.218.164] (HELO mail-bw0-f164.google.com) (209.85.218.164) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Mar 2009 13:24:15 +0000 Received: by bwz8 with SMTP id 8so3896450bwz.4 for ; Mon, 16 Mar 2009 06:23:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=NZ94JY3L9WIIwWKP+FBayGhGnMObRLrcTqbEJ3qcwgs=; b=EUmZnqSw0lyg+2vVLX4uvEM4TEYf+MkPvCz1YI/Ys+lqXsS4Rop+aW9LK0KoLjxlq7 y4t7p9SQatZ8U1e+fsKDZMUeP8yH2dBzIly2T+DG23UbvuzTWei2AV+/Ur0+MH5OP6Q5 oYePxNfRQGKwFery/L5eB1HNlZa1x5MPYjOzE= 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:content-transfer-encoding; b=PuzLSiGv8XomCwEbvXfSyGyDTi4q2wcCrROHA4GZ/TfADH/frnVKmMTWpzIxGDRRBh SS9YGsfITdX1heeWVV/niZUkDBg2msCQYLJRMp6s/oQUqTnU/wY4m/E37ADzr2Vypp3h BoR83XRIXpn+wIBEobsPQxHU3O6r2DCXRplDc= MIME-Version: 1.0 Received: by 10.204.56.13 with SMTP id w13mr1629647bkg.131.1237209833441; Mon, 16 Mar 2009 06:23:53 -0700 (PDT) In-Reply-To: References: <9ceb1e7a0903100413q15f370d2l5fbbc7b94272f2ae@mail.gmail.com> <49B6518C.5000606@bago.org> <9ceb1e7a0903160510m5e0cea6h4a6a337346957ef6@mail.gmail.com> Date: Mon, 16 Mar 2009 13:23:53 +0000 Message-ID: Subject: Re: mime4j and OSGi From: Robert Burrell Donkin To: mime4j-dev@james.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Mon, Mar 16, 2009 at 12:52 PM, Markus Wiederkehr wrote: > On Mon, Mar 16, 2009 at 1:10 PM, Wim Jongman wrote: >>> >>> mime4j package already contains Bundle-/Import directives in the >>> MANIFEST file. What else is needed? >>> >>> Stefano >>> >> >> That depends on your needs/commitment to OSGi. For instance, I see that all >> packages are exported where only API should be exported. I will study the >> mime4j software and get back with recommendations of osgi content in the >> manifest > > In my opinion the following packages should not be exported because > they are automatically generated from JavaCC sources and are not part > of the public API: > > org.apache.james.mime4j.field.address.parser > org.apache.james.mime4j.field.contentdisposition.parser > org.apache.james.mime4j.field.contenttype.parser > org.apache.james.mime4j.field.datetime.parser > org.apache.james.mime4j.field.language.parser > org.apache.james.mime4j.field.mimeversion.parser > org.apache.james.mime4j.field.structured.parser > > Or in other word *.parser except org.apache.james.mime4j.parser. IIRC some of this stuff is used downstream by james but perhaps it's not longer necessary > I tried to exclude these packages from the Javadoc by adding exclude > directives to the POM but for some reason they seem to have made it > into the current release.. > > Maybe we should also emphasize the fact that these packages are not > public by renaming them into o.a.j.mime4j.private.* or something like > that.. Opinions? IMO any code that isn't intended to be used by downstream projects should be packaged as you suggest - robert