Skip to content

Commit

Permalink
Deduce version string from the JAR manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrueden committed Feb 25, 2015
1 parent 2f1cf2d commit a6b2629
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main/java/LSM_Reader.java
Expand Up @@ -26,7 +26,13 @@

public class LSM_Reader extends ImagePlus implements PlugIn {

public static final String VERSION = "4.0h";
public static final String VERSION = version();

private static String version() {
final String version =
LSM_Reader.class.getPackage().getImplementationVersion();
return version == null ? "DEV" : version;
}

public final String infoMessage = "LSM_Reader " + VERSION +
" Copyright (C) 2002-2009 P. Pirrotte, J. Mutterer, Y. Krempp\n\n" +
Expand Down

0 comments on commit a6b2629

Please sign in to comment.