fdo#42312: Change bsh and js script providers from extensions to optional modules.
Their jar files reference other non-URE jars, so they cannot be extensions. bsh.jar has been moved into the optional module (it used to be installed always, but it looks like only the bsh script provider needs it; also, it had been added to URE_MORE_JAVA_CLASSPATH_URLS if SYSTEM_BSH, which also appears unnecessary as it is mentioned with an absolute file URL in the Class-Path of the script provider jar). js.jar has been included in the optional module (it used to be not installed at all?).
This commit is contained in:
@@ -368,7 +368,10 @@ my_components += component/avmedia/source/gstreamer/avmediagstreamer
|
||||
|
||||
.INCLUDE: target.mk
|
||||
|
||||
ALLTAR : $(MISC)/services.rdb
|
||||
ALLTAR : \
|
||||
$(MISC)/services.rdb \
|
||||
$(MISC)/scriptproviderforbeanshell.rdb \
|
||||
$(MISC)/scriptproviderforjavascript.rdb
|
||||
|
||||
$(MISC)/services.rdb .ERRREMOVE : $(SOLARENV)/bin/packcomponents.xslt \
|
||||
$(MISC)/services.input $(my_components:^"$(SOLARXMLDIR)/":+".component")
|
||||
@@ -379,3 +382,29 @@ $(MISC)/services.input : makefile.mk
|
||||
echo \
|
||||
'<list>$(my_components:^"<filename>":+".component</filename>")</list>' \
|
||||
> $@
|
||||
|
||||
$(MISC)/scriptproviderforbeanshell.rdb .ERRREMOVE : \
|
||||
$(SOLARENV)/bin/packcomponents.xslt \
|
||||
$(MISC)/scriptproviderforbeanshell.input \
|
||||
$(SOLARXMLDIR)/component/scripting/java/ScriptProviderForBeanShell.component
|
||||
$(XSLTPROC) --nonet --stringparam prefix $(SOLARXMLDIR)/ -o $@ \
|
||||
$(SOLARENV)/bin/packcomponents.xslt \
|
||||
$(MISC)/scriptproviderforbeanshell.input
|
||||
|
||||
$(MISC)/scriptproviderforbeanshell.input : makefile.mk
|
||||
echo \
|
||||
'<list><filename>component/scripting/java/ScriptProviderForBeanShell.component</filename></list>' \
|
||||
> $@
|
||||
|
||||
$(MISC)/scriptproviderforjavascript.rdb .ERRREMOVE : \
|
||||
$(SOLARENV)/bin/packcomponents.xslt \
|
||||
$(MISC)/scriptproviderforjavascript.input \
|
||||
$(SOLARXMLDIR)/component/scripting/java/ScriptProviderForJavaScript.component
|
||||
$(XSLTPROC) --nonet --stringparam prefix $(SOLARXMLDIR)/ -o $@ \
|
||||
$(SOLARENV)/bin/packcomponents.xslt \
|
||||
$(MISC)/scriptproviderforjavascript.input
|
||||
|
||||
$(MISC)/scriptproviderforjavascript.input : makefile.mk
|
||||
echo \
|
||||
'<list><filename>component/scripting/java/ScriptProviderForJavaScript.component</filename></list>' \
|
||||
> $@
|
||||
|
||||
@@ -2,4 +2,6 @@ mkdir: %_DEST%\xml\ooo
|
||||
..\%__SRC%\bin\uiconfig.zip %_DEST%\bin\uiconfig.zip
|
||||
..\%__SRC%\misc\*.xcd %_DEST%\xml\
|
||||
..\%__SRC%\misc\lang\*.xcd %_DEST%\xml\
|
||||
..\%__SRC%\misc\scriptproviderforbeanshell.rdb %_DEST%\xml\scriptproviderforbeanshell.rdb
|
||||
..\%__SRC%\misc\scriptproviderforjavascript.rdb %_DEST%\xml\scriptproviderforjavascript.rdb
|
||||
..\%__SRC%\misc\services.rdb %_DEST%\xml\services.rdb
|
||||
|
||||
@@ -262,28 +262,6 @@ End
|
||||
|
||||
#endif
|
||||
|
||||
/* ** Script provider for BeanShell ** */
|
||||
|
||||
#ifndef WITHOUT_EXTENSION_SCRIPTING_BEANSHELL
|
||||
|
||||
Directory gid_Brand_Dir_Share_Extensions_Script_Provider_For_Beanshell
|
||||
ParentID = gid_Brand_Dir_Share_Extensions;
|
||||
DosName = "script-provider-for-beanshell";
|
||||
End
|
||||
|
||||
#endif
|
||||
|
||||
/* ** Script provider for JavaScript ** */
|
||||
|
||||
#ifndef WITHOUT_EXTENSION_SCRIPTING_JAVASCRIPT
|
||||
|
||||
Directory gid_Brand_Dir_Share_Extensions_Script_Provider_For_Javascript
|
||||
ParentID = gid_Brand_Dir_Share_Extensions;
|
||||
DosName = "script-provider-for-javascript";
|
||||
End
|
||||
|
||||
#endif
|
||||
|
||||
/* ** Script provider for Python ** */
|
||||
|
||||
#ifndef WITHOUT_EXTENSION_SCRIPTING_PYTHON
|
||||
|
||||
@@ -302,26 +302,36 @@ End
|
||||
|
||||
/* ** Script provider for BeanShell ** */
|
||||
|
||||
#ifndef WITHOUT_EXTENSION_SCRIPTING_BEANSHELL
|
||||
#if defined SOLAR_JAVA && !defined WITHOUT_EXTENSION_SCRIPTING_BEANSHELL
|
||||
|
||||
File gid_File_Oxt_Script_Provider_For_Beanshell
|
||||
#if !defined SYSTEM_BSH
|
||||
STD_JAR_FILE( gid_File_Jar_Bsh, bsh )
|
||||
#endif
|
||||
|
||||
STD_JAR_FILE( gid_File_Jar_Scriptproviderforbeanshell, ScriptProviderForBeanShell )
|
||||
|
||||
File gid_File_Rdb_Scriptproviderforbeanshell
|
||||
TXT_FILE_BODY;
|
||||
Styles = (PACKED, ARCHIVE);
|
||||
Dir = gid_Brand_Dir_Share_Extensions_Script_Provider_For_Beanshell;
|
||||
Name = "script-provider-for-beanshell.oxt";
|
||||
Name = "scriptproviderforbeanshell.rdb";
|
||||
Dir = gid_Brand_Dir_Program_Services;
|
||||
Styles = (PACKED);
|
||||
End
|
||||
|
||||
#endif
|
||||
|
||||
/* ** Script provider for JavaScript ** */
|
||||
|
||||
#ifndef WITHOUT_EXTENSION_SCRIPTING_JAVASCRIPT
|
||||
#if defined SOLAR_JAVA && !defined WITHOUT_EXTENSION_SCRIPTING_JAVASCRIPT
|
||||
|
||||
File gid_File_Oxt_Script_Provider_For_Javascript
|
||||
STD_JAR_FILE( gid_File_Jar_Js, js )
|
||||
|
||||
STD_JAR_FILE( gid_File_Jar_Scriptproviderforjavascript, ScriptProviderForJavaScript )
|
||||
|
||||
File gid_File_Rdb_Scriptproviderforjavascript
|
||||
TXT_FILE_BODY;
|
||||
Styles = (PACKED, ARCHIVE);
|
||||
Dir = gid_Brand_Dir_Share_Extensions_Script_Provider_For_Javascript;
|
||||
Name = "script-provider-for-javascript.oxt";
|
||||
Name = "scriptproviderforjavascript.rdb";
|
||||
Dir = gid_Brand_Dir_Program_Services;
|
||||
Styles = (PACKED);
|
||||
End
|
||||
|
||||
#endif
|
||||
|
||||
@@ -39,6 +39,10 @@ TARGETTYPE=CUI
|
||||
|
||||
.INCLUDE : settings.mk
|
||||
|
||||
.IF "$(SYSTEM_BSH)" == "YES"
|
||||
SCPDEFS+=-DSYSTEM_BSH -DBSH_JAR=\""file://$(BSH_JAR)"\"
|
||||
.ENDIF
|
||||
|
||||
SCP_PRODUCT_TYPE=osl
|
||||
PARFILES= \
|
||||
module_extensions.par \
|
||||
|
||||
@@ -339,14 +339,16 @@ End
|
||||
|
||||
/* ** Script provider for BeanShell ** */
|
||||
|
||||
#ifndef WITHOUT_EXTENSION_SCRIPTING_BEANSHELL
|
||||
#if defined SOLAR_JAVA && !defined WITHOUT_EXTENSION_SCRIPTING_BEANSHELL
|
||||
|
||||
Module gid_Module_Optional_Extensions_Script_Provider_For_Beanshell
|
||||
PackageInfo = "packinfo_extensions.txt";
|
||||
MOD_NAME_DESC(MODULE_OPTIONAL_EXTENSIONS_SCRIPT_PROVIDER_FOR_BEANSHELL);
|
||||
ParentID = gid_Module_Optional_Extensions;
|
||||
Files = (
|
||||
gid_File_Oxt_Script_Provider_For_Beanshell );
|
||||
gid_File_Jar_Bsh,
|
||||
gid_File_Jar_Scriptproviderforbeanshell,
|
||||
gid_File_Rdb_Scriptproviderforbeanshell );
|
||||
Minimal = NO;
|
||||
Default = YES;
|
||||
Styles = ( );
|
||||
@@ -356,14 +358,16 @@ End
|
||||
|
||||
/* ** Script provider for JavaScript ** */
|
||||
|
||||
#ifndef WITHOUT_EXTENSION_SCRIPTING_JAVASCRIPT
|
||||
#if defined SOLAR_JAVA && !defined WITHOUT_EXTENSION_SCRIPTING_JAVASCRIPT
|
||||
|
||||
Module gid_Module_Optional_Extensions_Script_Provider_For_Javascript
|
||||
PackageInfo = "packinfo_extensions.txt";
|
||||
MOD_NAME_DESC(MODULE_OPTIONAL_EXTENSIONS_SCRIPT_PROVIDER_FOR_JAVASCRIPT);
|
||||
ParentID = gid_Module_Optional_Extensions;
|
||||
Files = (
|
||||
gid_File_Oxt_Script_Provider_For_Javascript );
|
||||
gid_File_Jar_Js,
|
||||
gid_File_Jar_Scriptproviderforjavascript,
|
||||
gid_File_Rdb_Scriptproviderforjavascript );
|
||||
Minimal = NO;
|
||||
Default = YES;
|
||||
Styles = ( );
|
||||
|
||||
@@ -1209,14 +1209,11 @@ ProfileItem gid_Brand_Profileitem_Fundamental_Ure_Java_Classpath_Urls
|
||||
Section = "Bootstrap";
|
||||
Key = "URE_MORE_JAVA_CLASSPATH_URLS";
|
||||
Value = "";
|
||||
#ifdef SYSTEM_BSH
|
||||
ValueList1 = BSH_JAR;
|
||||
#endif
|
||||
#ifdef SYSTEM_HSQLDB
|
||||
ValueList2 = HSQLDB_JAR;
|
||||
ValueList1 = HSQLDB_JAR;
|
||||
#endif
|
||||
#ifdef SYSTEM_SAXON
|
||||
ValueList3 = SAXON_JAR;
|
||||
ValueList2 = SAXON_JAR;
|
||||
#endif
|
||||
End
|
||||
|
||||
|
||||
@@ -390,12 +390,6 @@ End
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef SOLAR_JAVA
|
||||
#ifndef SYSTEM_BSH
|
||||
STD_JAR_FILE( gid_File_Jar_Bsh, bsh )
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef SOLAR_JAVA
|
||||
#ifndef SYSTEM_LUCENE
|
||||
STD_JAR_FILE( gid_File_Jar_Lucene_Core, lucene-core-2.3 )
|
||||
|
||||
@@ -184,10 +184,6 @@ SCPDEFS+=\
|
||||
-DREDLAND_MAJOR=$(REDLAND_MAJOR)
|
||||
.ENDIF
|
||||
|
||||
.IF "$(SYSTEM_BSH)" == "YES"
|
||||
SCPDEFS+=-DSYSTEM_BSH -DBSH_JAR=\""file://$(BSH_JAR)"\"
|
||||
.ENDIF
|
||||
|
||||
.IF "$(SYSTEM_HSQLDB)" == "YES"
|
||||
SCPDEFS+=-DSYSTEM_HSQLDB -DHSQLDB_JAR=\""file://$(HSQLDB_JAR)"\"
|
||||
.ENDIF
|
||||
|
||||
@@ -148,7 +148,6 @@ Module gid_Module_Root_Files_3
|
||||
gid_File_Jar_Scriptframework,
|
||||
gid_File_Jar_Scriptproviderforjava,
|
||||
gid_File_Jar_Xml_Apis,
|
||||
gid_File_Jar_Bsh,
|
||||
gid_File_Jar_Classes,
|
||||
gid_File_Jar_Xsltfilter,
|
||||
gid_File_Jar_Xsltvalidate,
|
||||
|
||||
@@ -1,34 +0,0 @@
|
||||
# -*- Mode: makefile; tab-width: 4; indent-tabs-mode: t -*-
|
||||
# Version: MPL 1.1 / GPLv3+ / LGPLv3+
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public License Version
|
||||
# 1.1 (the "License"); you may not use this file except in compliance with
|
||||
# the License or as specified alternatively below. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
# for the specific language governing rights and limitations under the
|
||||
# License.
|
||||
#
|
||||
# The Initial Developer of the Original Code is
|
||||
# Matúš Kukan <matus.kukan@gmail.com>
|
||||
# Portions created by the Initial Developer are Copyright (C) 2011 the
|
||||
# Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Major Contributor(s):
|
||||
#
|
||||
# For minor contributions see the git repository.
|
||||
#
|
||||
# Alternatively, the contents of this file may be used under the terms of
|
||||
# either the GNU General Public License Version 3 or later (the "GPLv3+"), or
|
||||
# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
|
||||
# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
|
||||
# instead of those above.
|
||||
|
||||
$(eval $(call gb_Extension_Extension,script-provider-for-beanshell,scripting/util/provider/beanshell))
|
||||
|
||||
$(eval $(call gb_Extension_add_file,script-provider-for-beanshell,ScriptProviderForBeanShell.jar,\
|
||||
$(call gb_Jar_get_target,ScriptProviderForBeanShell)))
|
||||
|
||||
# vim: set noet sw=4 ts=4:
|
||||
@@ -1,34 +0,0 @@
|
||||
# -*- Mode: makefile; tab-width: 4; indent-tabs-mode: t -*-
|
||||
# Version: MPL 1.1 / GPLv3+ / LGPLv3+
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public License Version
|
||||
# 1.1 (the "License"); you may not use this file except in compliance with
|
||||
# the License or as specified alternatively below. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
# for the specific language governing rights and limitations under the
|
||||
# License.
|
||||
#
|
||||
# The Initial Developer of the Original Code is
|
||||
# Matúš Kukan <matus.kukan@gmail.com>
|
||||
# Portions created by the Initial Developer are Copyright (C) 2011 the
|
||||
# Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Major Contributor(s):
|
||||
#
|
||||
# For minor contributions see the git repository.
|
||||
#
|
||||
# Alternatively, the contents of this file may be used under the terms of
|
||||
# either the GNU General Public License Version 3 or later (the "GPLv3+"), or
|
||||
# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
|
||||
# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
|
||||
# instead of those above.
|
||||
|
||||
$(eval $(call gb_Extension_Extension,script-provider-for-javascript,scripting/util/provider/javascript))
|
||||
|
||||
$(eval $(call gb_Extension_add_file,script-provider-for-javascript,ScriptProviderForJavaScript.jar,\
|
||||
$(call gb_Jar_get_target,ScriptProviderForJavaScript)))
|
||||
|
||||
# vim: set noet sw=4 ts=4:
|
||||
@@ -39,12 +39,20 @@ $(eval $(call gb_Jar_add_jars,ScriptProviderForBeanShell,\
|
||||
$(eval $(call gb_Jar_use_externals,ScriptProviderForBeanShell,\
|
||||
bsh \
|
||||
))
|
||||
|
||||
$(eval $(call gb_Jar_set_manifest,ScriptProviderForBeanShell,$(SRCDIR)/scripting/java/com/sun/star/script/framework/provider/beanshell/MANIFEST.MF))
|
||||
|
||||
#TODO: Ensure "file://$(BSH_JAR)" is a proper file URL:
|
||||
ifeq ($(SYSTEM_BSH),YES)
|
||||
$(eval $(call gb_Jar_set_jarclasspath,ScriptProviderForBeanShell,\
|
||||
$(BSH_JAR) \
|
||||
))
|
||||
$(eval $(call gb_Jar_set_jarclasspath,ScriptProviderForBeanShell, \
|
||||
unoil.jar ScriptFramework.jar file://$(BSH_JAR)))
|
||||
else
|
||||
$(eval $(call gb_Jar_set_jarclasspath,ScriptProviderForBeanShell, \
|
||||
unoil.jar ScriptFramework.jar bsh.jar))
|
||||
endif
|
||||
|
||||
$(eval $(call gb_Jar_set_componentfile,ScriptProviderForBeanShell,scripting/java/ScriptProviderForBeanShell,OOO))
|
||||
|
||||
$(eval $(call gb_Jar_set_packageroot,ScriptProviderForBeanShell,com))
|
||||
|
||||
$(eval $(call gb_Jar_add_sourcefiles,ScriptProviderForBeanShell,\
|
||||
|
||||
@@ -37,6 +37,13 @@ $(eval $(call gb_Jar_add_jars,ScriptProviderForJavaScript,\
|
||||
$(OUTDIR)/bin/js.jar \
|
||||
))
|
||||
|
||||
$(eval $(call gb_Jar_set_manifest,ScriptProviderForJavaScript,$(SRCDIR)/scripting/java/com/sun/star/script/framework/provider/javascript/MANIFEST.MF))
|
||||
|
||||
$(eval $(call gb_Jar_set_jarclasspath,ScriptProviderForJavaScript, \
|
||||
unoil.jar ScriptFramework.jar js.jar))
|
||||
|
||||
$(eval $(call gb_Jar_set_componentfile,ScriptProviderForJavaScript,scripting/java/ScriptProviderForJavaScript,OOO))
|
||||
|
||||
$(eval $(call gb_Jar_set_packageroot,ScriptProviderForJavaScript,com))
|
||||
|
||||
$(eval $(call gb_Jar_add_sourcefiles,ScriptProviderForJavaScript,\
|
||||
|
||||
@@ -30,17 +30,15 @@ $(eval $(call gb_Module_Module,scripting))
|
||||
|
||||
$(eval $(call gb_Module_add_targets,scripting,\
|
||||
$(if $(SOLAR_JAVA),\
|
||||
$(if $(filter $(ENABLE_SCRIPTING_JAVASCRIPT),YES),\
|
||||
Extension_ScriptProviderForJavaScript) \
|
||||
$(if $(filter $(ENABLE_SCRIPTING_BEANSHELL),YES),\
|
||||
Extension_ScriptProviderForBeanShell) \
|
||||
Jar_HelloWorld \
|
||||
Jar_Highlight \
|
||||
Jar_MemoryUsage \
|
||||
Jar_ScriptFramework \
|
||||
Jar_ScriptProviderForBeanShell \
|
||||
$(if $(filter $(ENABLE_SCRIPTING_BEANSHELL),YES),\
|
||||
Jar_ScriptProviderForBeanShell) \
|
||||
Jar_ScriptProviderForJava \
|
||||
Jar_ScriptProviderForJavaScript \
|
||||
$(if $(filter $(ENABLE_SCRIPTING_JAVASCRIPT),YES),\
|
||||
Jar_ScriptProviderForJavaScript) \
|
||||
Zip_ScriptsJava \
|
||||
) \
|
||||
$(if $(filter $(ENABLE_SCRIPTING_PYTHON),YES),\
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--**********************************************************************
|
||||
*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
||||
*
|
||||
* OpenOffice.org - a multi-platform office productivity suite
|
||||
*
|
||||
* This file is part of OpenOffice.org.
|
||||
*
|
||||
* OpenOffice.org is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License version 3
|
||||
* only, as published by the Free Software Foundation.
|
||||
*
|
||||
* OpenOffice.org 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 version 3 for more details
|
||||
* (a copy is included in the LICENSE file that accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* version 3 along with OpenOffice.org. If not, see
|
||||
* <http://www.openoffice.org/license.html>
|
||||
* for a copy of the LGPLv3 License.
|
||||
*
|
||||
**********************************************************************-->
|
||||
|
||||
<component loader="com.sun.star.loader.Java2"
|
||||
xmlns="http://openoffice.org/2010/uno-components">
|
||||
<implementation name="com.sun.star.script.framework.provider.beanshell.ScriptProviderForBeanShell$_ScriptProviderForBeanShell">
|
||||
<service name="com.sun.star.script.browse.BrowseNode"/>
|
||||
<service name="com.sun.star.script.provider.LanguageScriptProvider"/>
|
||||
<service name="com.sun.star.script.provider.ScriptProvider"/>
|
||||
<service name="com.sun.star.script.provider.ScriptProviderForBeanShell"/>
|
||||
</implementation>
|
||||
</component>
|
||||
@@ -0,0 +1,37 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--**********************************************************************
|
||||
*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
||||
*
|
||||
* OpenOffice.org - a multi-platform office productivity suite
|
||||
*
|
||||
* This file is part of OpenOffice.org.
|
||||
*
|
||||
* OpenOffice.org is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License version 3
|
||||
* only, as published by the Free Software Foundation.
|
||||
*
|
||||
* OpenOffice.org 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 version 3 for more details
|
||||
* (a copy is included in the LICENSE file that accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* version 3 along with OpenOffice.org. If not, see
|
||||
* <http://www.openoffice.org/license.html>
|
||||
* for a copy of the LGPLv3 License.
|
||||
*
|
||||
**********************************************************************-->
|
||||
|
||||
<component loader="com.sun.star.loader.Java2"
|
||||
xmlns="http://openoffice.org/2010/uno-components">
|
||||
<implementation name="com.sun.star.script.framework.provider.javascript.ScriptProviderForJavaScript$_ScriptProviderForJavaScript">
|
||||
<service name="com.sun.star.script.browse.BrowseNode"/>
|
||||
<service name="com.sun.star.script.provider.LanguageScriptProvider"/>
|
||||
<service name="com.sun.star.script.provider.ScriptProvider"/>
|
||||
<service name="com.sun.star.script.provider.ScriptProviderForJavaScript"/>
|
||||
</implementation>
|
||||
</component>
|
||||
@@ -0,0 +1,2 @@
|
||||
RegistrationClassName: com.sun.star.script.framework.provider.beanshell.ScriptProviderForBeanShell
|
||||
UNO-Type-Path:
|
||||
-35
@@ -123,41 +123,6 @@ public class ScriptProviderForBeanShell
|
||||
|
||||
return xSingleServiceFactory;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Writes the service information into the given registry key.
|
||||
* This method is called by the <code>JavaLoader</code>
|
||||
* <p>
|
||||
*
|
||||
* @param regKey the registryKey
|
||||
* @return returns true if the operation succeeded
|
||||
* @see com.sun.star.comp.loader.JavaLoader
|
||||
*/
|
||||
public static boolean __writeRegistryServiceInfo( XRegistryKey regKey )
|
||||
{
|
||||
String impl = "com.sun.star.script.framework.provider.beanshell." +
|
||||
"ScriptProviderForBeanShell$_ScriptProviderForBeanShell";
|
||||
|
||||
String service1 = "com.sun.star.script.provider." +
|
||||
"ScriptProvider";
|
||||
String service2 = "com.sun.star.script.provider." +
|
||||
"LanguageScriptProvider";
|
||||
String service3 = "com.sun.star.script.provider." +
|
||||
"ScriptProviderForBeanShell";
|
||||
String service4 = "com.sun.star.script.browse." +
|
||||
"BrowseNode";
|
||||
|
||||
if ( FactoryHelper.writeRegistryServiceInfo(impl, service1, regKey) &&
|
||||
FactoryHelper.writeRegistryServiceInfo(impl, service2, regKey) &&
|
||||
FactoryHelper.writeRegistryServiceInfo(impl, service3, regKey) &&
|
||||
FactoryHelper.writeRegistryServiceInfo(impl, service4, regKey) )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class ScriptImpl implements XScript
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
RegistrationClassName: com.sun.star.script.framework.provider.javascript.ScriptProviderForJavaScript
|
||||
UNO-Type-Path:
|
||||
-34
@@ -124,40 +124,6 @@ public class ScriptProviderForJavaScript
|
||||
|
||||
return xSingleServiceFactory;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Writes the service information into the given registry key.
|
||||
* This method is called by the <code>JavaLoader</code>
|
||||
* <p>
|
||||
*
|
||||
* @param regKey the registryKey
|
||||
* @return returns true if the operation succeeded
|
||||
* @see com.sun.star.comp.loader.JavaLoader
|
||||
*/
|
||||
public static boolean __writeRegistryServiceInfo( XRegistryKey regKey )
|
||||
{
|
||||
String impl = "com.sun.star.script.framework.provider.javascript." +
|
||||
"ScriptProviderForJavaScript$_ScriptProviderForJavaScript";
|
||||
|
||||
String service1 = "com.sun.star.script.provider." +
|
||||
"ScriptProvider";
|
||||
String service2 = "com.sun.star.script.provider." +
|
||||
"LanguageScriptProvider";
|
||||
String service3 = "com.sun.star.script.provider." +
|
||||
"ScriptProviderForJavaScript";
|
||||
String service4 = "com.sun.star.script.browse." +
|
||||
"BrowseNode";
|
||||
|
||||
if ( FactoryHelper.writeRegistryServiceInfo(impl, service1, regKey) &&
|
||||
FactoryHelper.writeRegistryServiceInfo(impl, service2, regKey) &&
|
||||
FactoryHelper.writeRegistryServiceInfo(impl, service3, regKey) &&
|
||||
FactoryHelper.writeRegistryServiceInfo(impl, service4, regKey) )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
class ScriptImpl implements XScript
|
||||
{
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<description
|
||||
xmlns="http://openoffice.org/extensions/description/2006"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
xmlns:dep="http://openoffice.org/extensions/description/2006">
|
||||
|
||||
<identifier value="com.sun.star.script.provider.ScriptProviderForBeanShell"/>
|
||||
|
||||
<dependencies>
|
||||
<OpenOffice.org-minimal-version value="3.0" dep:name="OpenOffice.org 3.0"/>
|
||||
</dependencies>
|
||||
|
||||
<version value="3.3.0"/>
|
||||
|
||||
<publisher>
|
||||
<name xlink:href="http://www.documentfoundation.org" lang="en-US">The Document Foundation</name>
|
||||
</publisher>
|
||||
|
||||
<display-name>
|
||||
<name lang="en-US">Script provider for BeanShell</name>
|
||||
</display-name>
|
||||
|
||||
</description>
|
||||
@@ -1,7 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE manifest:manifest PUBLIC "-//OpenOffice.org//DTD Manifest 1.0//EN" "Manifest.dtd">
|
||||
<manifest:manifest xmlns:manifest="http://openoffice.org/2001/manifest">
|
||||
<manifest:file-entry
|
||||
manifest:media-type="application/vnd.sun.star.uno-component;type=java"
|
||||
manifest:full-path="ScriptProviderForBeanShell.jar"/>
|
||||
</manifest:manifest>
|
||||
@@ -1,23 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<description
|
||||
xmlns="http://openoffice.org/extensions/description/2006"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
xmlns:dep="http://openoffice.org/extensions/description/2006">
|
||||
|
||||
<identifier value="com.sun.star.script.provider.ScriptProviderForJavaScript"/>
|
||||
|
||||
<dependencies>
|
||||
<OpenOffice.org-minimal-version value="3.0" dep:name="OpenOffice.org 3.0"/>
|
||||
</dependencies>
|
||||
|
||||
<version value="3.3.0"/>
|
||||
|
||||
<publisher>
|
||||
<name xlink:href="http://www.documentfoundation.org" lang="en-US">The Document Foundation</name>
|
||||
</publisher>
|
||||
|
||||
<display-name>
|
||||
<name lang="en-US">Script provider for JavaScript</name>
|
||||
</display-name>
|
||||
|
||||
</description>
|
||||
@@ -1,7 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE manifest:manifest PUBLIC "-//OpenOffice.org//DTD Manifest 1.0//EN" "Manifest.dtd">
|
||||
<manifest:manifest xmlns:manifest="http://openoffice.org/2001/manifest">
|
||||
<manifest:file-entry
|
||||
manifest:media-type="application/vnd.sun.star.uno-component;type=java"
|
||||
manifest:full-path="ScriptProviderForJavaScript.jar"/>
|
||||
</manifest:manifest>
|
||||
Reference in New Issue
Block a user