[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.technology.equinox] Bundle-Classpath: filters on ws, os, arch, is this possible ?


[ Originally posted to eclipse.platform, but advised this is better forum. ]


Is this possible, I would like to filter with more than one attribute ANDed together, I have tried the following (without any success).



Attempt #1: (based on http://wiki.eclipse.org/index.php/Adaptor_Hooks,
but it doesn't document $arch$ is valid but I need that too)

Bundle-ClassPath: mozilla_$ws$_$os$_$arch$.jar



Attempt #2: (based on OSGi spec, but I have only seen documention for
using a single match rule, like "foo.jar;(osgi.arch=x86)" but I need
more than one.

Bundle-ClassPath: mozilla_win32_win32_x86.jar;(& (osgi.arch=x86)
(osgi.ws=win32)),
 mozilla_win32_win32_x86_64.jar;(& (osgi.arch=x86_64) (osgi.ws=win32)),
 mozilla_win32_win32_ia64.jar;(& (osgi.arch=ia64) (osgi.ws=win32))



Attempt #3: (based on bugzilla entry
https://bugs.eclipse.org/bugs/show_bug.cgi?id=41071 again I need more
than one and preferabily the normalized osgi.* versions)

Bundle-ClassPath: mozilla_gtk_linux_x86.jar;filter="(& (osgi.arch=x86)
(osgi.ws=gtk) (osgi.os=linux))",
 mozilla_gtk_linux_x86_64.jar;filter="(& (osgi.arch=x86_64)
(osgi.ws=gtk) (osgi.os=linux))",
 mozilla_gtk_linux_ia64.jar;filter="(& (osgi.arch=ia64) (osgi.ws=gtk)
(osgi.os=linux))",



Attempt #4: (based on grepping the org.eclipse.osgi CVS source and
looking at other manifest attributes)

Bundle-ClassPath: mozilla_gtk_solaris_x86.jar;selection-filter="(&
(osgi.arch=x86) (osgi.os=solaris))",
 mozilla_gtk_solaris_sparc.jar;selection-filter="(& (osgi.arch=sparc)
(osgi.os=solaris))",



These are all different permutations of snippets I have found but none
are having the effects I expect.

I am using Eclipse Platform version 3.2.


Darryl