Skip to content

Commit

Permalink
fixed ManifestUtil
Browse files Browse the repository at this point in the history
  • Loading branch information
redrezo committed Jul 28, 2020
1 parent b5a144b commit f512358
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,13 @@
import java.util.jar.Attributes;
import java.util.jar.Manifest;

import org.eclipse.fx.drift.internal.Versioning;

public class ManifestUtil {

private static URL getManifestUrl(Class<?> cls) {
try {
String shortName = cls.getSimpleName() + ".class";
String fullPath = cls.getName().replace('/', '.') + ".class";
URL clsUrl = Versioning.class.getResource(shortName);
String fullPath = cls.getName().replace('.', '/') + ".class";
URL clsUrl = cls.getResource(shortName);
return new URL(clsUrl.toString().replace(fullPath, "META-INF/MANIFEST.MF"));
}
catch (MalformedURLException e) {
Expand Down

0 comments on commit f512358

Please sign in to comment.