• Stephan Bergmann's avatar
    fdo#49517: Revert "fdo#46102: Load Java scripts with class loaders [...]" · 7ea7fb00
    Stephan Bergmann yazdı
    This reverts commit dd6c4f4d "fdo#46102: Load
    Java scripts with class loaders that actually find them."  That commit broke
    support for macros embedded in documents (as
    new java.net.URL("vnd.sun.star.tdoc:...") throws a MalformedURLExcetpion), and
    it looks like that commit was not necessary after all -- or rather that what it
    tried to work around must have been some other problem that has been fixed
    meanwhile.  "It is unclear to me how the Java script provider shall ever have
    found the script jars in the past" indicates that something must have been
    fishy, and what I failed to notice back then is that createURL creates
    java.net.URL instances with a UCBStreamHandler that does allow to obtain content
    from weird-looking URLs.
    
    Anyway, with that reverted, all three following scenarios work on both current
    master (towards LO 3.7) and libreoffice-3-6 (towards LO 3.6.4); I haven't yet
    come around to test on libreoffice-3-5:
    
    1  Stock macros, "Tools - Macros - Run Macro... - LibreOffice Macros -
    HelloWorld", running all of the four "helloworld.bsh", "helloworld.js",
    "HelloWorldPyhton", and
    "org.libreoffice.example.java_scripts.HelloWorld.printHW".
    
    2  Per-document macros, loading test.odt attached to fdo#49517, then "Tools -
    Macros - Run Macro... - test.odt - HelloWorld", running
    "org.libreoffice.example.java_scripts.HelloWorld.printHW".
    
    3  Extension macros, installing ScriptDispatch.oxt attached to fdo#46012 as
    shared extension, then loading StartScriptDispatch.odt attached to fdo#46012 and
    pressing the "Start Java via ScriptProvider" button.
    
    Change-Id: I31cd16b3720ffeb1058722d4d1fdffb773f8a067
    7ea7fb00
Adı
Son kayıt (commit)
Son güncelleme
..
examples Loading commit data...
java Loading commit data...
prj Loading commit data...
source Loading commit data...
util Loading commit data...
workben Loading commit data...
Extension_ScriptProviderForPython.mk Loading commit data...
Jar_HelloWorld.mk Loading commit data...
Jar_Highlight.mk Loading commit data...
Jar_MemoryUsage.mk Loading commit data...
Jar_ScriptFramework.mk Loading commit data...
Jar_ScriptProviderForBeanShell.mk Loading commit data...
Jar_ScriptProviderForJava.mk Loading commit data...
Jar_ScriptProviderForJavaScript.mk Loading commit data...
Library_basprov.mk Loading commit data...
Library_dlgprov.mk Loading commit data...
Library_protocolhandler.mk Loading commit data...
Library_scriptframe.mk Loading commit data...
Library_stringresource.mk Loading commit data...
Library_vbaevents.mk Loading commit data...
Makefile Loading commit data...
Module_scripting.mk Loading commit data...
Pyuno_mailmerge.mk Loading commit data...
README Loading commit data...
Rdb_scriptproviderforbeanshell.mk Loading commit data...
Rdb_scriptproviderforjavascript.mk Loading commit data...
Zip_ScriptsBeanShell.mk Loading commit data...
Zip_ScriptsJava.mk Loading commit data...
Zip_ScriptsJavaScript.mk Loading commit data...
Zip_ScriptsPython.mk Loading commit data...
Zip_scriptbindinglib.mk Loading commit data...