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
43cc8abf
Kaydet (Commit)
43cc8abf
authored
Nis 19, 2004
tarafından
Joachim Lingner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#i20052# plugin lib for java framework
üst
c7d0bfee
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
280 additions
and
0 deletions
+280
-0
makefile.mk
jvmfwk/plugins/sunmajor/pluginlib/makefile.mk
+121
-0
sunjavaplugin.cxx
jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx
+0
-0
sunjavaplugin.map
jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.map
+8
-0
sunversion.cxx
jvmfwk/plugins/sunmajor/pluginlib/sunversion.cxx
+0
-0
sunversion.hxx
jvmfwk/plugins/sunmajor/pluginlib/sunversion.hxx
+151
-0
No files found.
jvmfwk/plugins/sunmajor/pluginlib/makefile.mk
0 → 100644
Dosyayı görüntüle @
43cc8abf
#*************************************************************************
#
# $RCSfile: makefile.mk,v $
#
# $Revision: 1.1 $
#
# last change: $Author: jl $ $Date: 2004-04-19 15:37:36 $
#
# The Contents of this file are made available subject to the terms of
# either of the following licenses
#
# - GNU Lesser General Public License Version 2.1
# - Sun Industry Standards Source License Version 1.1
#
# Sun Microsystems Inc., October, 2000
#
# GNU Lesser General Public License Version 2.1
# =============================================
# Copyright 2000 by Sun Microsystems, Inc.
# 901 San Antonio Road, Palo Alto, CA 94303, USA
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License version 2.1, as published by the Free Software Foundation.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
# MA 02111-1307 USA
#
#
# Sun Industry Standards Source License Version 1.1
# =================================================
# The contents of this file are subject to the Sun Industry Standards
# Source License Version 1.1 (the "License"); You may not use this file
# except in compliance with the License. You may obtain a copy of the
# License at http://www.openoffice.org/license.html.
#
# Software provided under this License is provided on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
# WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
# MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
# See the License for the specific provisions governing your rights and
# obligations concerning the Software.
#
# The Initial Developer of the Original Code is: Sun Microsystems, Inc.
#
# Copyright: 2000 by Sun Microsystems, Inc.
#
# All Rights Reserved.
#
# Contributor(s): _______________________________________
#
#
#
#*************************************************************************
PRJ
=
..
$/
..
$/
..
$/
..
PRJNAME
=
jvmfwk
TARGET
=
plugin
ENABLE_EXCEPTIONS
=
TRUE
BOOTSTRAP_SERVICE
=
FALSE
LIBTARGET
=
NO
UNOCOMPONENT1
=
sunjavaplugin
# --- Settings -----------------------------------------------------
.INCLUDE
:
settings.mk
DLLPRE
=
# ------------------------------------------------------------------
#.INCLUDE : ..$/cppumaker.mk
.IF
"$(SOLAR_JAVA)"
!=
""
SLOFILES
=
\
$(SLO)$/
sunjavaplugin.obj
\
$(SLO)$/
javainfo.obj
\
$(SLO)$/
sunversion.obj
\
$(SLO)$/
windows.obj
LIB1OBJFILES
=
\
$(SLO)$/
sunjavaplugin.obj
\
$(SLO)$/
javainfo.obj
\
$(SLO)$/
sunversion.obj
\
$(SLO)$/
windows.obj
LIB1TARGET
=
$(SLB)$/$(UNOCOMPONENT1)
.lib
SHL1TARGET
=
$(UNOCOMPONENT1)
SHL1STDLIBS
=
\
$(CPPULIB)
\
$(CPPUHELPER)
\
$(SALLIB)
.IF
"$(OS)"
==
"WNT"
SHL1STDLIBS
+=
advapi32.lib
.ENDIF
# WNT
SHL1VERSIONMAP
=
sunjavaplugin.map
SHL1DEPN
=
SHL1IMPLIB
=
i
$(UNOCOMPONENT1)
SHL1LIBS
=
$(LIB1TARGET)
SHL1DEF
=
$(MISC)$/$(SHL1TARGET)
.def
DEF1NAME
=
$(SHL1TARGET)
.ENDIF
# --- Targets ------------------------------------------------------
.INCLUDE
:
target.mk
jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx
0 → 100644
Dosyayı görüntüle @
43cc8abf
This diff is collapsed.
Click to expand it.
jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.map
0 → 100644
Dosyayı görüntüle @
43cc8abf
UDK_3_0_0 {
global:
getAllJavaInfos;
getJavaInfoByPath;
startJavaVirtualMachine;
local:
*;
};
jvmfwk/plugins/sunmajor/pluginlib/sunversion.cxx
0 → 100644
Dosyayı görüntüle @
43cc8abf
This diff is collapsed.
Click to expand it.
jvmfwk/plugins/sunmajor/pluginlib/sunversion.hxx
0 → 100644
Dosyayı görüntüle @
43cc8abf
/*************************************************************************
*
* $RCSfile: sunversion.hxx,v $
*
* $Revision: 1.1 $
*
* last change: $Author: jl $ $Date: 2004-04-19 15:36:59 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
*
* - GNU Lesser General Public License Version 2.1
* - Sun Industry Standards Source License Version 1.1
*
* Sun Microsystems Inc., October, 2000
*
* GNU Lesser General Public License Version 2.1
* =============================================
* Copyright 2000 by Sun Microsystems, Inc.
* 901 San Antonio Road, Palo Alto, CA 94303, USA
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1, as published by the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*
*
* Sun Industry Standards Source License Version 1.1
* =================================================
* The contents of this file are subject to the Sun Industry Standards
* Source License Version 1.1 (the "License"); You may not use this file
* except in compliance with the License. You may obtain a copy of the
* License at http://www.openoffice.org/license.html.
*
* Software provided under this License is provided on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
* WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
* MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
* See the License for the specific provisions governing your rights and
* obligations concerning the Software.
*
* The Initial Developer of the Original Code is: Sun Microsystems, Inc.
*
* Copyright: 2000 by Sun Microsystems, Inc.
*
* All Rights Reserved.
*
* Contributor(s): _______________________________________
*
*
************************************************************************/
#if !defined INCLUDED_JVMACCESS_SUNVERSION_HXX
#define INCLUDED_JVMACCESS_SUNVERSION_HXX
#include "rtl/ustring.hxx"
namespace
stoc_javadetect
{
// Define SUNVERSION_SELFTEST to run a test when this lib is loaded
//#define SUNVERSION_SELFTEST
/* SunVersion is used to compare java versions based on a string, as taken
from the registry. The strings look like "1.3", "1.3.1", "1.3.1_02" etc.
Versions such as "1.4.1_01a" are allowed although this is not specified.
1.4.1_01 < 1.4.1_01a < 1.4.1_01b < 1.4.1_02
Pre - release versions, such as 1.4.1-ea, 1.4.1-beta, 1.4.1-rc are recognized,
but are treated as minor to release versions:
1.4.0 > 1.4.2-beta
Pre releases relate this way
1.4.1-ea < 1.4.1-beta < 1.4.1-rc1
An object acts as holder for the version string. That string may be present
even if the version could not be parsed. Then the version may not be compatible
to a SUN Java version.
An invalid object, that is, operator bool returns false, will always be
the lower version in a comparison. If two invalid objects are compared
then they are considered equal.
To test if the version is ok, that is this object can be compared to others,
use the bool conversion operator.
*/
class
SunVersion
{
protected
:
enum
PreRelease
{
Rel_NONE
,
Rel_EA
,
Rel_EA1
,
Rel_EA2
,
Rel_BETA
,
Rel_BETA1
,
Rel_BETA2
,
Rel_RC
,
Rel_RC1
,
Rel_RC2
};
//contains major,minor,micro,update
int
m_arVersionParts
[
4
];
// The update can be followed by a char, e.g. 1.4.1_01a
char
m_nUpdateSpecial
;
PreRelease
m_preRelease
;
public
:
SunVersion
();
SunVersion
(
const
char
*
szVer
);
SunVersion
(
const
rtl
::
OUString
&
usVer
);
~
SunVersion
();
bool
operator
>
(
const
SunVersion
&
ver
)
const
;
bool
operator
<
(
const
SunVersion
&
ver
)
const
;
bool
operator
==
(
const
SunVersion
&
ver
)
const
;
/** Test if the version is compatible tu SUN's versioning scheme
*/
operator
bool
();
/** Will always contain a value if the object has been constructed with
a version string.
*/
rtl
::
OUString
usVersion
;
protected
:
bool
init
(
const
char
*
szVer
);
bool
m_bValid
;
};
/**
@param usJavaHome
File URL of the java installation directory.
*/
SunVersion
initVersion
(
const
rtl
::
OUString
&
usJavaHome
);
SunVersion
getVersionFromBuf
(
const
sal_Char
*
pBuf
,
sal_Int32
sizeBuf
);
}
#endif // INCLUDED_JVMACCESS_SUNVERSION_HXX
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