fdo#46102: Fix Java script examples after gbuild'ification
...they contained no class files anymore, due to missing gb_Jar_set_packageroot calls. However, those calls only work for subdirectories, i.e., the example .java files need to be put into a package (I chose org.libreoffice.example.java_scripts) for all of them). This in turn required adaption of the parcel-descriptor.xml files; not sure what the logicalname entries there are good for if anything -- the macro names at "Tools - Macros - Run Macro..." now unfortunately(?) contain the fully qualified paths for the HelloWorld, HighlightText, and MemoryUpdate examples. There are additional examples at scripting/examples/java/ that apparently do not get packaged (but I adapted them anyway).
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
package org.libreoffice.example.java_scripts;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.InputStream;
|
||||
import java.io.IOException;
|
||||
|
@@ -1,3 +1,5 @@
|
||||
package org.libreoffice.example.java_scripts;
|
||||
|
||||
import javax.swing.JFrame;
|
||||
import javax.swing.JTextArea;
|
||||
import javax.swing.JPanel;
|
||||
|
@@ -1,3 +1,5 @@
|
||||
package org.libreoffice.example.java_scripts;
|
||||
|
||||
import javax.swing.SwingUtilities;
|
||||
import java.io.InputStream;
|
||||
|
||||
|
@@ -1,3 +1,5 @@
|
||||
package org.libreoffice.example.java_scripts;
|
||||
|
||||
import java.io.InputStream;
|
||||
import drafts.com.sun.star.script.framework.runtime.XScriptContext;
|
||||
|
||||
|
@@ -8,7 +8,7 @@
|
||||
<description>Script that starts debuggers for JavaScript and BeanShell
|
||||
</description>
|
||||
</locale>
|
||||
<logicalname value="_$DebugRunner.Debug" />
|
||||
<logicalname value="org.libreoffice.example.java_scripts._$DebugRunner.Debug" />
|
||||
<functionname value="DebugRunner.go" />
|
||||
<languagedepprops>
|
||||
<prop name="classpath" value="debugger.jar"/>
|
||||
|
Reference in New Issue
Block a user