diff options
author | Rüdiger Timm <rt@openoffice.org> | 2005-01-31 08:50:23 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2005-01-31 08:50:23 +0000 |
commit | ba6904f4845460d06a1871fcd41e6c58182e7512 (patch) | |
tree | a2fba3248b4279a7097de4b42a54d05cae6efb5b /jvmfwk | |
parent | 6a3808b81f85e4c0d03b78ea3caefe387df4c139 (diff) |
INTEGRATION: CWS jre5issues (1.5.6); FILE MERGED
2005/01/14 10:11:42 jl 1.5.6.1: #i39912# #i40180# fixes for MAC, FREEBSD
Diffstat (limited to 'jvmfwk')
-rw-r--r-- | jvmfwk/plugins/sunmajor/pluginlib/sunversion.cxx | 38 |
1 files changed, 30 insertions, 8 deletions
diff --git a/jvmfwk/plugins/sunmajor/pluginlib/sunversion.cxx b/jvmfwk/plugins/sunmajor/pluginlib/sunversion.cxx index 3777f0e19ad9..742446ae068c 100644 --- a/jvmfwk/plugins/sunmajor/pluginlib/sunversion.cxx +++ b/jvmfwk/plugins/sunmajor/pluginlib/sunversion.cxx @@ -2,9 +2,9 @@ * * $RCSfile: sunversion.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: kz $ $Date: 2004-12-16 11:45:15 $ + * last change: $Author: rt $ $Date: 2005-01-31 09:50:23 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -65,13 +65,15 @@ #include "osl/security.hxx" #include <string.h> #include <ctype.h> - +#include "diagnostics.h" using namespace rtl; using namespace osl; namespace jfw_plugin { //stoc_javadetect + //extern OUString ::Impl::usPathDelim(); #define OUSTR( x ) ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( x )) + #if OSL_DEBUG_LEVEL >= 2 class SelfTest { @@ -80,7 +82,6 @@ public: } test; #endif - SunVersion::SunVersion(): m_nUpdateSpecial(0), m_preRelease(Rel_NONE), m_bValid(false) @@ -231,6 +232,10 @@ bool SunVersion::init(const char *szVersion) m_preRelease = getPreRelease(pCur); if (m_preRelease == Rel_NONE) return false; +#if defined(FREEBSD) + if (m_preRelease == Rel_FreeBSD) + return true; +#endif } else { @@ -267,13 +272,29 @@ SunVersion::PreRelease SunVersion::getPreRelease(const char *szRelease) return Rel_RC2; else if (! strcmp(szRelease, "rc3")) return Rel_RC3; +#if defined (FREEBSD) + else if (! strcmp(szRelease, "p5")) + return Rel_FreeBSD; + else if (! strcmp(szRelease, "p6")) + return Rel_FreeBSD; + else if (! strcmp(szRelease, "p7")) + return Rel_FreeBSD; + else if (! strcmp(szRelease, "p8")) + return Rel_FreeBSD; + else if (! strcmp(szRelease, "p9")) + return Rel_FreeBSD; + else if (! strcmp(szRelease, "p10")) + return Rel_FreeBSD; + else if (! strcmp(szRelease, "p11")) + return Rel_FreeBSD; +#endif else return Rel_NONE; } SunVersion::~SunVersion() { -// delete[] strVersion; + } /* Examples: @@ -347,7 +368,6 @@ SunVersion::operator bool() return m_bValid; } - #if OSL_DEBUG_LEVEL >= 2 SelfTest::SelfTest() { @@ -438,8 +458,10 @@ SelfTest::SelfTest() if ( ! bRet) break; } - OSL_ENSURE(bRet, "SunVersion self test failed"); - + if (bRet) + JFW_TRACE2("[Java framework] sunjavaplugin: Testing class SunVersion succeeded."); + else + OSL_ENSURE(bRet, "[Java framework] sunjavaplugin: SunVersion self test failed"); } #endif |