From 65cf853589958a51a3a30f6e03dc578c01c320bc Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 10 Apr 2012 12:36:57 +0100 Subject: add a getBuildVersion helper --- unotools/source/config/bootstrap.cxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'unotools/source/config') diff --git a/unotools/source/config/bootstrap.cxx b/unotools/source/config/bootstrap.cxx index ae5c8ad81a83..94c8c2e89f40 100644 --- a/unotools/source/config/bootstrap.cxx +++ b/unotools/source/config/bootstrap.cxx @@ -54,6 +54,7 @@ #define BOOTSTRAP_ITEM_PRODUCT_SOURCE "ProductSource" #define BOOTSTRAP_ITEM_VERSIONFILE "Location" #define BOOTSTRAP_ITEM_BUILDID "buildid" +#define BOOTSTRAP_ITEM_BUILDVERSION "BuildVersion" #define BOOTSTRAP_ITEM_BASEINSTALLATION "BRAND_BASE_DIR" #define BOOTSTRAP_ITEM_USERINSTALLATION "UserInstallation" @@ -642,6 +643,17 @@ OUString Bootstrap::getProductSource(OUString const& _sDefault) } // --------------------------------------------------------------------------------------- +OUString Bootstrap::getBuildVersion(OUString const& _sDefault) +{ + OUString const csBuildVersionItem(BOOTSTRAP_ITEM_BUILDVERSION); + + OUString sBuildVersion; + // read ProductSource from version.ini (versionrc) + data().getVersionValue( csBuildVersionItem, sBuildVersion, _sDefault ); + return sBuildVersion; +} +// --------------------------------------------------------------------------------------- + OUString Bootstrap::getBuildIdData(OUString const& _sDefault) { OUString const csBuildIdItem(RTL_CONSTASCII_USTRINGPARAM(BOOTSTRAP_ITEM_BUILDID)); -- cgit