* get external resolve= attribute from internal PackageImport flags. This
* is called from BldConverter.setBundle().
*/
public static String getResolve(IPackageImport pi, boolean isDependency)
{
OSGiImport osgiImport = pi.getOSGiImport();
String resolve = null;
if (isDependency)
{
if (osgiImport.equals(OSGiImport.NEVER) || pi.isOptional())
resolve = BldAttr.RESOLVE_COMPILE;
}
else
{
switch (osgiImport)