public static Platform toPlatform(final SPlatform sPlatform) { return new PlatformImpl(sPlatform.getVersion(), sPlatform.getPreviousVersion(), sPlatform.getInitialVersion(), sPlatform.getCreatedBy(), sPlatform.getCreated()); }
@Override public Boolean call() throws SBonitaException { // the database version platform = platformService.getPlatform(); final String dbVersion = platform.getVersion(); // the version in jars platformProperties = platformService.getSPlatformProperties(); final String jarVersion = platformProperties.getPlatformVersion(); // the version in bonita home final String platformMinorVersion = format(dbVersion); final String propertiesMinorVersion = format(jarVersion); boolean same = platformMinorVersion.equals(propertiesMinorVersion); if (!same) { errorMessage = "The version of the platform in database is not the same as expected: bonita-server version is <" + jarVersion + "> and database version is <" + dbVersion + ">"; } return same; }
@Override public Boolean call() throws SBonitaException { // the database version platform = platformService.getPlatform(); final String dbVersion = platform.getVersion(); // the version in jars platformProperties = platformService.getSPlatformProperties(); final String jarVersion = platformProperties.getPlatformVersion(); // the version in bonita home final String platformMinorVersion = format(dbVersion); final String propertiesMinorVersion = format(jarVersion); boolean same = platformMinorVersion.equals(propertiesMinorVersion); if (!same) { errorMessage = "The version of the platform in database is not the same as expected: bonita-server version is <" + jarVersion + "> and database version is <" + dbVersion + ">"; } return same; }
public static Platform toPlatform(final SPlatform sPlatform) { return new PlatformImpl(sPlatform.getVersion(), sPlatform.getPreviousVersion(), sPlatform.getInitialVersion(), sPlatform.getCreatedBy(), sPlatform.getCreated()); }