Skip to content

Commit c9f02f0

Browse files
committed
Include Test Source folders when gathering unused dependencies
Currently if there are only test folders all dependencies are considered unused. While this is technically correct, the usage of test-fragments often is used to import additional requirements, so it seem more safe to not remove them.
1 parent 6e23ad7 commit c9f02f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/search/dependencies/GatherUnusedDependenciesOperation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public void run(IProgressMonitor monitor) throws InvocationTargetException, Inte
8686
return;
8787
}
8888
Set<String> computedPackages;
89-
try (PdeProjectAnalyzer analyzer = new PdeProjectAnalyzer(fModel.getUnderlyingResource().getProject(), false)) {
89+
try (PdeProjectAnalyzer analyzer = new PdeProjectAnalyzer(fModel.getUnderlyingResource().getProject(), true)) {
9090
analyzer.setImportPackage("*"); //$NON-NLS-1$
9191
analyzer.calcManifest();
9292
Packages imports = analyzer.getImports();

0 commit comments

Comments
 (0)