Revision 34437
branches/v2_0_0_prep/extensions/org.gvsig.installer/org.gvsig.installer.lib/org.gvsig.installer.lib.impl/src/main/java/org/gvsig/installer/lib/impl/info/InstallerInfoFileReader.java | ||
---|---|---|
117 | 117 |
installerInfoResource.setType(properties |
118 | 118 |
.getProperty(InstallerInfoTags.TYPE)); |
119 | 119 |
String build = properties.getProperty(InstallerInfoTags.BUILD); |
120 |
try { |
|
121 |
installerInfoResource.setBuild(Integer.parseInt(build)); |
|
122 |
} catch (Exception e) { |
|
123 |
installerInfoResource.setBuild(0); |
|
124 |
LOG.warn("Error while converting to int the " |
|
125 |
+ InstallerInfoTags.BUILD + " property value: " + build, e); |
|
120 |
if (build != null) { |
|
121 |
try { |
|
122 |
installerInfoResource.setBuild(Integer.parseInt(build)); |
|
123 |
} catch (Exception e) { |
|
124 |
installerInfoResource.setBuild(0); |
|
125 |
LOG.warn("Error while converting to int the " |
|
126 |
+ InstallerInfoTags.BUILD + " property value: " + build, e); |
|
127 |
} |
|
126 | 128 |
} |
127 | 129 |
|
128 | 130 |
// Look for the old build tag just in case (the new one is buildNumber). |
Also available in: Unified diff