Ticket #1410 (closed enhancement: fixed)

Opened 8 years ago

Last modified 8 years ago

Refactor imagej.ImageJ.VERSION

Reported by: dscho Owned by: dscho
Priority: trivial Milestone: imagej2-b4-plugins
Component: Core Version:
Severity: cosmetic Keywords:
Cc: Blocked By:
Blocking: #1400


Let's extract the version from the .jar file (or from the pom.xml if we're still unpacked).

To that end, refactor out a method from FileUtils.getBaseDirectory() that returns the class path entry for the given class, as a File instance. It may be a .jar and it may be a directory. Then, add a method getVersion(File classPathEntry) to extract the version from manifest or pom.xml.

Change History

comment:1 Changed 8 years ago by dscho

  • Status changed from new to accepted

comment:2 Changed 8 years ago by dscho

  • Status changed from accepted to closed
  • Resolution set to fixed

Curtis did that in 0a0a25bf24464a4b2e6d740094d39ff302407dd5.

Note: See TracTickets for help on using tickets.