Skip to content

Commit

Permalink
Fix breakage caused by o.e.p.i.publishing.Utils changes
Browse files Browse the repository at this point in the history
  • Loading branch information
merks committed Sep 28, 2024
1 parent f7070db commit 3f973e8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/org.eclipse.pde.build/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.29.0,4.0.0)",
org.eclipse.equinox.p2.jarprocessor;bundle-version="[1.3.200,2.0.0)",
org.eclipse.equinox.p2.publisher;bundle-version="1.9.0",
org.eclipse.equinox.p2.repository.tools;bundle-version="[2.4.200,3.0.0)";resolution:=optional,
org.eclipse.equinox.p2.publisher.eclipse;bundle-version="1.5.200",
org.eclipse.equinox.p2.publisher.eclipse;bundle-version="1.6.300",
org.eclipse.jdt.core;bundle-version="[3.36.0,4.0.0)",
org.eclipse.jdt.launching;bundle-version="[3.22.0,4.0.0)"
Import-Package: org.eclipse.equinox.frameworkadmin;version="[2.0.0,3.0.0)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ public void setLog(Object antLog) {
}

public static String[] getClasspath(Dictionary<String, String> manifest) {
return org.eclipse.pde.internal.publishing.Utils.getBundleClasspath(manifest);
return org.eclipse.pde.internal.publishing.Utils.getBundleClasspath(manifest).toArray(String[]::new);
}

public static String getManifestHeader(Dictionary<String, String> manifest, String header) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import java.nio.file.Path;
import java.nio.file.StandardCopyOption;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.Enumeration;
Expand Down Expand Up @@ -812,7 +813,7 @@ else if (obj instanceof OutputStream)
}

public static boolean guessUnpack(BundleDescription bundle, String[] classpath) {
return org.eclipse.pde.internal.publishing.Utils.guessUnpack(bundle, classpath);
return org.eclipse.pde.internal.publishing.Utils.guessUnpack(bundle, Arrays.asList(classpath));
}

public static Version extract3Segments(String s) {
Expand Down

0 comments on commit 3f973e8

Please sign in to comment.