} catch (IllegalArgumentException ex) {
String v = MessageFormat.format(INVALID_VERSION_FORMAT, new int[] { major, minor, patch, build });
if ((comment != null) && (comment.length() > 0)) {
v += "-" + comment; //$NON-NLS-1$
}
throw new IllegalVersionException("build.properties contains invalid version information: " + v); //$NON-NLS-1$
}
}