/[schmitzm]/trunk/src/skrueger/versionnumber/ReleaseUtil.java
ViewVC logotype

Diff of /trunk/src/skrueger/versionnumber/ReleaseUtil.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 813 by alfonx, Thu Apr 22 00:08:48 2010 UTC revision 1017 by alfonx, Mon Sep 20 16:38:10 2010 UTC
# Line 95  public class ReleaseUtil { Line 95  public class ReleaseUtil {
95           *           *
96           * @Return the major part of the software version or 0 if a problem occurs.           * @Return the major part of the software version or 0 if a problem occurs.
97           */           */
98          public static int getVersionBuild(Class<?> clazz) {          public static double getVersionBuild(Class<?> clazz) {
99                  try {                  try {
100                          final URL releasePropsURL = clazz                          final URL releasePropsURL = clazz
101                                          .getResource("/release.properties");                                          .getResource("/release.properties");
# Line 115  public class ReleaseUtil { Line 115  public class ReleaseUtil {
115                                  return 0;                                  return 0;
116                          }                          }
117    
118                          return Integer.parseInt(str);                          return Double.parseDouble(str);
119                  } catch (final Exception e) {                  } catch (final Exception e) {
120                          log.error("/release.properties could not be read from "                          log.error("/release.properties could not be read from "
121                                          + clazz.getSimpleName(), e);                                          + clazz.getSimpleName(), e);

Legend:
Removed from v.813  
changed lines
  Added in v.1017

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26