Skip to content

Instantly share code, notes, and snippets.

@dscho
Created October 3, 2012 18:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dscho/3829022 to your computer and use it in GitHub Desktop.
Save dscho/3829022 to your computer and use it in GitHub Desktop.
c = ij.IJ.class;
c = imagej.util.AppUtils.class;
path = "/" + c.getName().replace('.', '/') + ".class";
url = c.getResource(path).toString();
manifestURL = url.substring(0, url.length() - path.length()) + "/META-INF/MANIFEST.MF";
print(manifestURL);
import fiji.build.minimaven.BuildEnvironment;
BuildEnvironment.copy(new URL(manifestURL).openStream(), System.err, false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment