Skip to content

Commit

Permalink
Fix for issue #549: use JavaRuntime.computeUnresolvedRuntimeClasspath
Browse files Browse the repository at this point in the history
not JavaRuntime.computeUnresolvedRuntimeDependencies
  • Loading branch information
eric-milles committed Apr 5, 2018
1 parent 7d7f81f commit 0440f39
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ private static IProject findProject(String projectName) {

private static void calculateClasspath(IJavaProject javaProject, Set<String> classPaths, Set<String> xformPaths) {
try {
IRuntimeClasspathEntry[] dependencies = JavaRuntime.computeUnresolvedRuntimeDependencies(javaProject); // TODO: Leverage "excludeTestCode" parameter? http://www.eclipse.org/eclipse/news/4.8/M5/index.html#jdt-test-sources
IRuntimeClasspathEntry[] dependencies = JavaRuntime.computeUnresolvedRuntimeClasspath(javaProject); // TODO: Leverage "excludeTestCode" parameter? http://www.eclipse.org/eclipse/news/4.8/M5/index.html#jdt-test-sources
Arrays.sort(dependencies, Comparator.comparing(IRuntimeClasspathEntry::getType));
for (IRuntimeClasspathEntry unresolved : dependencies) {
Set<String> paths = (unresolved.getType() == IRuntimeClasspathEntry.CONTAINER ? classPaths : xformPaths);
Expand Down

0 comments on commit 0440f39

Please sign in to comment.