diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2011-11-03 14:11:00 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2011-11-03 14:18:59 +0100 |
commit | a72a7dc500ffd57662e8b9be61e4676266861c33 (patch) | |
tree | 6cc21e11fbaec37563ad42d5749f103c0a635146 /scp2/source/extensions | |
parent | Use xml2-config and xslt-config from our own copies if not using system ones (diff) | |
download | core-a72a7dc500ffd57662e8b9be61e4676266861c33.tar.gz core-a72a7dc500ffd57662e8b9be61e4676266861c33.zip |
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?).
Diffstat (limited to 'scp2/source/extensions')
-rw-r--r-- | scp2/source/extensions/directory_extensions.scp | 22 | ||||
-rw-r--r-- | scp2/source/extensions/file_extensions.scp | 30 | ||||
-rw-r--r-- | scp2/source/extensions/makefile.mk | 4 | ||||
-rw-r--r-- | scp2/source/extensions/module_extensions.scp | 12 |
4 files changed, 32 insertions, 36 deletions
diff --git a/scp2/source/extensions/directory_extensions.scp b/scp2/source/extensions/directory_extensions.scp index 0ccc3f3b44f2..abb299982975 100644 --- a/scp2/source/extensions/directory_extensions.scp +++ b/scp2/source/extensions/directory_extensions.scp @@ -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 diff --git a/scp2/source/extensions/file_extensions.scp b/scp2/source/extensions/file_extensions.scp index 4397c3716e9a..502bcf1b02b2 100644 --- a/scp2/source/extensions/file_extensions.scp +++ b/scp2/source/extensions/file_extensions.scp @@ -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 diff --git a/scp2/source/extensions/makefile.mk b/scp2/source/extensions/makefile.mk index 1c856401aa37..00b23aeec030 100644 --- a/scp2/source/extensions/makefile.mk +++ b/scp2/source/extensions/makefile.mk @@ -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 \ diff --git a/scp2/source/extensions/module_extensions.scp b/scp2/source/extensions/module_extensions.scp index 255930178b38..e3514bc4e94c 100644 --- a/scp2/source/extensions/module_extensions.scp +++ b/scp2/source/extensions/module_extensions.scp @@ -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 = ( ); |