mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Build number and alfresco version number information now added to webscriptframework project during continuous build process.
Build number and alfresco server version now visible on the various webscript system pages again. Note that the build number will only be visible in the web-tier webscript system pages if it was built via the continuous build process - otherwise it will display 'unknown'. XHTML cleanup of webscript system pages. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10255 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -508,7 +508,12 @@ public class DescriptorServiceImpl extends AbstractLifecycleBean implements Desc
|
||||
*/
|
||||
public abstract class BaseDescriptor implements Descriptor
|
||||
{
|
||||
private VersionNumber versionNumber = null;
|
||||
private String strVersion = null;
|
||||
|
||||
public VersionNumber getVersionNumber()
|
||||
{
|
||||
if (this.versionNumber == null)
|
||||
{
|
||||
StringBuilder version = new StringBuilder();
|
||||
version.append(getVersionMajor());
|
||||
@@ -516,10 +521,14 @@ public class DescriptorServiceImpl extends AbstractLifecycleBean implements Desc
|
||||
version.append(getVersionMinor());
|
||||
version.append(".");
|
||||
version.append(getVersionRevision());
|
||||
return new VersionNumber(version.toString());
|
||||
this.versionNumber = new VersionNumber(version.toString());
|
||||
}
|
||||
return this.versionNumber;
|
||||
}
|
||||
|
||||
public String getVersion()
|
||||
{
|
||||
if (this.strVersion == null)
|
||||
{
|
||||
StringBuilder version = new StringBuilder(getVersionMajor());
|
||||
version.append(".");
|
||||
@@ -563,7 +572,9 @@ public class DescriptorServiceImpl extends AbstractLifecycleBean implements Desc
|
||||
version.append(")");
|
||||
}
|
||||
|
||||
return version.toString();
|
||||
this.strVersion = version.toString();
|
||||
}
|
||||
return this.strVersion;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user