2009/2/5 Ikuo Yamasaki <[email protected]> > Hi, > > I have questions regarding expression of attributes in Export-Package > header. > > 3.6.5 section of r4.1.core.pdf has the following example. > ----- > For example, the following statements will match. > A: Import-Package: com.acme.foo;company=ACME > B: Export-Package: com.acme.foo; > company="ACME"; > security=false > ----- > > Why the attributes keyed by company in the Exported-Package header is > enlosed in double quotes ? > > not company=ACME > but company="ACME" > > What is the difference between value enclosed in double quotes and the > one not enclosed ? >
there is no difference - 1.3.2 states that double quotes are needed if the value is not a token (ie. contains characters other than letters, numbers, dashes, or underscores) so "ACME" is the same as ACME, the double quotes are unnecessary. however "A.C.M.E." would require double quotes because of the dots... HTH Best regards, > > --------------------- > NTT Cyber Solutions Laboratories > > Ikuo YAMASAKI > E-mail: [email protected] > TEL +81-46-859-8537 FAX +81-46-855-1282 > > _______________________________________________ > OSGi Developer Mail List > [email protected] > https://mail.osgi.org/mailman/listinfo/osgi-dev > -- Cheers, Stuart
_______________________________________________ OSGi Developer Mail List [email protected] https://mail.osgi.org/mailman/listinfo/osgi-dev
