bug 7454: return the full version number

status 7454: resolved fixed
This commit is contained in:
edison 2010-12-08 17:32:46 -08:00
parent ad5870bd70
commit ea71ade08f
1 changed files with 8 additions and 8 deletions

View File

@ -4779,15 +4779,15 @@ public class ManagementServerImpl implements ManagementServer {
@Override
public String getVersion(){
final Class<?> c = ManagementServer.class;
String fullVersion = c.getPackage().getImplementationVersion();
String version = "unknown";
if(fullVersion.length() > 0){
version = fullVersion.substring(0,fullVersion.lastIndexOf("."));
}
return version;
final Class<?> c = ManagementServer.class;
String fullVersion = c.getPackage().getImplementationVersion();
if(fullVersion.length() > 0){
return fullVersion;
}
return "unknown";
}
private Long saveScheduledEvent(Long userId, Long accountId, String type, String description)
{
EventVO event = new EventVO();