felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Kriens <Peter.Kri...@aQute.se>
Subject Re: Fw: [jira] Created: (FELIX-48) Bundle names should conform to the spec and not contain spaces
Date Fri, 17 Mar 2006 15:35:01 GMT
Well, I disagree. The bundle name is intended to be a short handle to
the bundle (start/stop etc). Using spaces makes tempts people to
change it to the description, for which we have a separate header.
Making very spacious names for bundles is very awkward, and tends to
become messy when used in lists. It also requires escaping if you have
to type the name in a shell. E.g. "start mybundle" is a lot easier to
handle then "start my\ fine\ acme\ bundle". There will be other places
where spaces need to be escaped.

We specifically have a description field that can tell you what the
bundle does. You can of course always abuse the name field for
advertising, but the name field was never meant to convey the exact
functionality of your bundle, it is a mnemonnic.

Anyway, it is a should and not a must. We were just trying to set some
conformity, which we can of course abolish in a next release.

Kind regards,

     Peter Kriens



 


JM> Forwarding this to the OSGi general list as it is a spec question.  Please
JM> continue any discussion there rather than cross posting.

JM> Jeff

JM> ----- Forwarded by Jeff McAffer/Ottawa/IBM on 03/17/2006 09:58 AM -----

JM> Jeff McAffer/Ottawa/IBM
JM> 03/17/2006 09:44 AM

JM> To
JM> felix-dev@incubator.apache.org
JM> cc

JM> Subject
JM> Re: [jira] Created: (FELIX-48) Bundle names should conform to the spec and
JM> not contain spaces





JM> FWIW I think that "human readable" and "no spaces" are contradictory. 
JM> Names should be meaningful.  Names should be translatable.  Names *should*
JM> have spaces.

JM> I have entered http://membercvs.osgi.org/bugs/show_bug.cgi?id=265 to look
JM> at this in future versions of the spec.

JM> Jeff




JM> "Marcel Offermans (JIRA)" <jira@apache.org> 
JM> 03/17/2006 06:27 AM
JM> Please respond to
JM> felix-dev


JM> To
JM> felix-dev@incubator.apache.org
JM> cc

JM> Subject
JM> [jira] Created: (FELIX-48) Bundle names should conform to the spec and not
JM> contain spaces






JM> Bundle names should conform to the spec and not contain spaces
JM> --------------------------------------------------------------

JM>          Key: FELIX-48
JM>          URL: http://issues.apache.org/jira/browse/FELIX-48
JM>      Project: Felix
JM>         Type: Bug
JM>     Reporter: Marcel Offermans
JM>  Assigned to: Richard S. Hall 
JM>     Priority: Trivial


JM> The OSGi specification (3.2.1.10) states that:
JM> The Bundle-Name header defines a readable name for this bundle. This 
JM> should be a short, human-readable name containing no spaces.

JM> Currently, we do generate bundle names with spaces. Admittedly, this is
JM> done by many others too but I think we should stick to the specifications
JM> (even though "should" is not "must").



-- 
Peter Kriens                              Tel +33870447986
9C, Avenue St. Drézéry                    AOL,Yahoo: pkriens
34160 Beaulieu, France                    ICQ 255570717
Skype pkriens                             Fax +1 8153772599


Mime
View raw message