Usages of

de.flapdoodle.embed.process.distribution.IVersion.IVersion()
private IFeatureAwareVersion createVersion() { final Feature[] features = getFeatures().toArray(new Feature[getFeatures().size()]); if (this.version == null || this.version.equals("")) { if (features.length == 0) return Version.Main.PRODUCTION; this.version = Version.Main.PRODUCTION.asInDownloadPath(); } String versionEnumName = this.version.toUpperCase().replaceAll("\\.", "_"); if (versionEnumName.charAt(0) != 'V') { versionEnumName = "V" + versionEnumName; } IVersion determinedVersion; try { determinedVersion = Version.valueOf(versionEnumName); } catch (final IllegalArgumentException e) { getLog().warn("Unrecognised MongoDB version '" + this.version + "', this might be a new version that we don't yet know about. Attemping download anyway..."); determinedVersion = new IVersion() { @Override public String asInDownloadPath() { return version; } }; } if (features.length == 0) return Versions.withFeatures(determinedVersion); else return Versions.withFeatures(determinedVersion, features); }
Usage snippet has been bookmarked! Review your bookmarks
Thank you! Review your likes