Apache OpenOffice (AOO) Bugzilla – Issue 56709
Using SDK Developersguide result into not saving embedded Scripting Framework Macros
Last modified: 2022-10-28 12:59:39 UTC
Going to attach an example file, which embed one beanshell, javascript, java macro taken from the Office share/Scripts directory. This file was created by unzipping it, placing the Macros in it, zipping it back. These macros work after loading, but are lost, when the document is saved again.
Created attachment 30864 [details] Office Text document containing manually added macros
TBE->SUS: Your attached document is not valid. You added the Scripts folder, but the META-INF/manifest.xml does not contain any references to the Scripts folder and its content. Therefore I will close this task.
closed
Reusing this issue as an SDK Developersguide issue
changing targets
Changed title, but leaving the (Sub-)Component as Issuetracker does mange to change it.
TBE->AB: As discussed to you.
ab->sus: I don't see the issue here. What's wrong with the Developersguide?
SUS->AB: In the section about Java Macro Deployment "18.3.5 Compiling and Deploying Java macros", the Developersguide tells nothing about the need to create a META-INF/manifest.xml entry to list the new files of the ZIP used by the (Java) macros. Without the entry, new parts won't be saved. This might occur for other Macro types as well, when they establish new files in the ZIP. Please check if it have to be mentioned on further spots.
Started
The description about manifest entries was added: https://wiki.openoffice.org/wiki/Documentation/DevGuide/Scripting/Writing_Macros#Compiling_and_Deploying_Java_macros