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:
37
scripting/java/ScriptProviderForBeanShell.component
Normal file
37
scripting/java/ScriptProviderForBeanShell.component
Normal file
@@ -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>
|
37
scripting/java/ScriptProviderForJavaScript.component
Normal file
37
scripting/java/ScriptProviderForJavaScript.component
Normal file
@@ -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:
|
@@ -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:
|
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user