bndtools/bnd — pull request #213 by xfournet (2012-07-19 14:03:59+00:00)
Title: Add a getter for Analyzer#classpathExports field

When writing a aQute.bnd.service.AnalyzerPlugin I would like to be a able to check that the package to import is accessible from the classpath or from the own bundle. In order to do that I actually need to access the classpathExports field of the Analyzer in order to check that with the following code

```java
String pkg = ....;
if (analyzer.getContained().containsKey(pkg) || analyzer.getClasspathExports().contains(pkg)) {
// add the package in the import list
if (referred.get(pkg) == null) {
referred.put(pkg, new LinkedHashMap());
}
} else {
analyzer.error("References non existing or inaccessible package: %s", pkg);
}
```

But actually there is no such getter getClasspathExports so I added one.
Feel free to comment if you don't think this is the right way to implement this check.