Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
65cf8535
Kaydet (Commit)
65cf8535
authored
Nis 10, 2012
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add a getBuildVersion helper
üst
f597ebe3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
bootstrap.hxx
unotools/inc/unotools/bootstrap.hxx
+3
-0
bootstrap.cxx
unotools/source/config/bootstrap.cxx
+12
-0
No files found.
unotools/inc/unotools/bootstrap.hxx
Dosyayı görüntüle @
65cf8535
...
...
@@ -61,6 +61,9 @@ namespace utl
/// retrieve the BUILDID information item; uses the given default, if not found
static
rtl
::
OUString
getBuildIdData
(
rtl
::
OUString
const
&
_sDefault
);
/// retrieve the BuildVersion information item; uses the given default, if not found
static
rtl
::
OUString
getBuildVersion
(
rtl
::
OUOUString
const
&
_sDefault
);
/// reload cached data
static
void
reloadData
();
...
...
unotools/source/config/bootstrap.cxx
Dosyayı görüntüle @
65cf8535
...
...
@@ -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
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment