Allow __BUILD_NUMBER__ as valid build number in ApplicationInfo.xml et al

This commit is contained in:
Maxim Shafirov
2009-09-30 19:02:17 +04:00
parent a88bdcc060
commit f793bfc0b7
@@ -57,6 +57,9 @@ public class BuildNumber implements Comparable<BuildNumber> {
public static BuildNumber fromString(String version) {
if (version == null) return null;
if ("__BUILD_NUMBER__".equals(version)) return new BuildNumber("", 90, Integer.MAX_VALUE);
String code = version;
int productSeparator = code.indexOf('-');
final String productCode;