String[] devClassPath = DevClassPathHelper.getDevClassPath(pluginInfo.getUniqueId());  List starExport = new ArrayList(1); starExport.add("*"); if (devClassPath != null) { for (int i = 0; i < devClassPath.length; i++) libs.put(devClassPath[i], starExport);
if (DevClassPathHelper.inDevelopmentMode()) { String[] devClassPath = DevClassPathHelper.getDevClassPath(pluginInfo.getUniqueId());   List allExportClauses = new ArrayList(libs.size()); Set libEntries = libs.entrySet(); for (Iterator iter = libEntries.iterator(); iter.hasNext();) { Map.Entry element = (Map.Entry) iter.next(); allExportClauses.addAll((List) element.getValue()); } if (devClassPath != null) { for (int i = 0; i < devClassPath.length; i++) libs.put(devClassPath[i], allExportClauses); }
	private Set getExports() {		Map libs = pluginInfo.getLibraries();		if (libs == null)			return null;		// Based on similar code from EclipseStarter		// Check the osgi.dev property to see if dev classpath entries have been defined.		String[] devClassPath = DevClassPathHelper.getDevClassPath(pluginInfo.getUniqueId());		// add the dev. time classpath entries		List starExport = new ArrayList(1);		starExport.add("*"); //$NON-NLS-1$		if (devClassPath != null) {			for (int i = 0; i < devClassPath.length; i++)				libs.put(devClassPath[i], starExport);		}		Set result = new HashSet(7);		Set libEntries = libs.entrySet();		for (Iterator iter = libEntries.iterator(); iter.hasNext();) {			Map.Entry element = (Map.Entry) iter.next();			List filter = (List) element.getValue();			if (filter.size() == 0) //If the library is not exported, then ignore it				continue;			File libraryLocation = new File(pluginManifestLocation, (String) element.getKey());			Set exports = null;			if (libraryLocation.exists()) {				if (libraryLocation.isFile())					exports = filterExport(getExportsFromJAR(libraryLocation), filter); //TODO Need to handle $xx$ variables				else if (libraryLocation.isDirectory())					exports = filterExport(getExportsFromDir(libraryLocation), filter);			} else {				ArrayList expandedLibs = getLibrariesExpandingVariables((String) element.getKey(), false);				exports = new HashSet();				for (Iterator iterator = expandedLibs.iterator(); iterator.hasNext();) {					String libName = (String) iterator.next();					File libFile = new File(pluginManifestLocation, libName);					if (libFile.isFile()) {						exports.addAll(filterExport(getExportsFromJAR(libFile), filter));					}				}			}			if (exports != null)				result.addAll(exports);		}		return result;	}