/** * Assert that the current product is compatible with the version of ehcache available on the classpath */ public void assertRequiredCoreVersionPresent() { boolean ignoreVersionCheck = Boolean.getBoolean("terracotta.ehcache.versioncheck.skip"); String requiredCoreVersion = getRequiredCoreVersion(); if (ignoreVersionCheck || requiredCoreVersion == null) { // no requirement return; } ProductInfo coreProductInfo = new ProductInfo(); String coreVersion = coreProductInfo.getVersion(); if (!coreVersion.equals(requiredCoreVersion)) { String msg = getName() + " version [" + getVersion() + "] only works with ehcache-core version [" + requiredCoreVersion + "] (found version [" + coreVersion + "] on the classpath). " + " Please make sure both versions are compatible!"; throw new CacheException(msg); } }
/** * Assert that the current product is compatible with the version of ehcache available on the classpath */ public void assertRequiredCoreVersionPresent() { boolean ignoreVersionCheck = Boolean.getBoolean("terracotta.ehcache.versioncheck.skip"); String requiredCoreVersion = getRequiredCoreVersion(); if (ignoreVersionCheck || requiredCoreVersion == null) { // no requirement return; } ProductInfo coreProductInfo = new ProductInfo(); String coreVersion = coreProductInfo.getVersion(); if (!coreVersion.equals(requiredCoreVersion)) { String msg = getName() + " version [" + getVersion() + "] only works with ehcache-core version [" + requiredCoreVersion + "] (found version [" + coreVersion + "] on the classpath). " + " Please make sure both versions are compatible!"; throw new CacheException(msg); } }
/** * Assert that the current product is compatible with the version of ehcache available on the classpath */ public void assertRequiredCoreVersionPresent() { boolean ignoreVersionCheck = Boolean.getBoolean("terracotta.ehcache.versioncheck.skip"); String requiredCoreVersion = getRequiredCoreVersion(); if (ignoreVersionCheck || requiredCoreVersion == null) { // no requirement return; } ProductInfo coreProductInfo = new ProductInfo(); String coreVersion = coreProductInfo.getVersion(); if (!coreVersion.equals(requiredCoreVersion)) { String msg = getName() + " version [" + getVersion() + "] only works with ehcache-core version [" + requiredCoreVersion + "] (found version [" + coreVersion + "] on the classpath). " + " Please make sure both versions are compatible!"; throw new CacheException(msg); } }
/** * Assert that the current product is compatible with the version of ehcache available on the classpath */ public void assertRequiredCoreVersionPresent() { boolean ignoreVersionCheck = Boolean.getBoolean("terracotta.ehcache.versioncheck.skip"); String requiredCoreVersion = getRequiredCoreVersion(); if (ignoreVersionCheck || requiredCoreVersion == null) { // no requirement return; } ProductInfo coreProductInfo = new ProductInfo(); String coreVersion = coreProductInfo.getVersion(); if (!coreVersion.equals(requiredCoreVersion)) { String msg = getName() + " version [" + getVersion() + "] only works with ehcache-core version [" + requiredCoreVersion + "] (found version [" + coreVersion + "] on the classpath). " + " Please make sure both versions are compatible!"; throw new CacheException(msg); } }