tdf#117331 Merge jurt and unoil into ridl

jurt.jar and unoil.jar are kept as effectively empty jars, each with a

  Class-Path: ridl.jar

in their meta-inf/manifest.mf, so that 3rd-party code loading them (with or
without also loading ridl.jar) will still have access to their content.

Conceptually, the UNOIDL entities in unoil.jar (corresponding to module offapi)
are not part of the URE, but are now made available by URE's ridl.jar.  This
should probably not cause problems in practice.

At least for now, we seal exactly those packages in ridl.jar that were
originally sealed in jurt.jar.  Ideally, all of ridl.jar could be sealed now,
but that would be mildly incompatible, as it would prevent 3rd-party code from
introducing additional UNOIDL entities in the relevant namespaces (even if that
is something we do not want 3rd-party code to do anyway).

However, some JunitTest_jurt_* define classes in those sealed packages.  In the
past they got away with that by using gb_JunitTest_use_jar_classset,*,jurt.
Instead they now need to gb_JunitTest_use_jar_classset,*,ridl and drop the
gb_JunitTest_use_jar,*,ridl.  But the former only makes available the classes
that are specified in ridljar/Jar_ridl.mk with gb_Jar_add_sourcefiles, not the
UNOIDL entities specified via gb_Jar_add_packagedirs.  But the tests need the
udkapi UNOIDL entities, so introduce gb_JunitTest_add_classpath to let the tests
get them explicitly.  (Curiously, JunitTest_jurt_uno and JnitTest_jurt_util use
gb_JunitTest_use_jar_classset,*,jurt but don't seem to acutally need it; lets
leave that for a follow-up clean up.)

As a follow-up clean up, relevant files could be moved from jurt/ to ridljar/.

Change-Id: I836f4e7bb47fb41f1306e3f223da90dba988eb9a
Co-authored-by: Stephan Bergmann <sbergman@redhat.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/84946
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
Samuel Mehrbrodt 2019-12-11 13:23:43 +01:00 committed by Stephan Bergmann
parent 494092dc0c
commit ae855bf481
70 changed files with 176 additions and 217 deletions

View File

@ -28,11 +28,9 @@ dependencies {
implementation fileTree(dir: "${liboInstdir}/${liboUREJavaFolder}", include: [ implementation fileTree(dir: "${liboInstdir}/${liboUREJavaFolder}", include: [
"java_uno.jar", "java_uno.jar",
"juh.jar", "juh.jar",
"jurt.jar",
"ridl.jar", "ridl.jar",
"unoloader.jar" "unoloader.jar"
]) ])
implementation files("${liboInstdir}/${liboShareJavaFolder}/unoil.jar")
implementation(name:'owncloud_android_lib', ext:'aar') implementation(name:'owncloud_android_lib', ext:'aar')
implementation 'com.android.support:design:27.1.1' // also pulls-in corresponding support libraries implementation 'com.android.support:design:27.1.1' // also pulls-in corresponding support libraries
implementation 'com.android.support.constraint:constraint-layout:1.1.2' implementation 'com.android.support.constraint:constraint-layout:1.1.2'

View File

@ -12,8 +12,6 @@ $(eval $(call gb_Jar_Jar,officebean))
$(eval $(call gb_Jar_use_jars,officebean,\ $(eval $(call gb_Jar_use_jars,officebean,\
ridl \ ridl \
unoil \
jurt \
juh \ juh \
)) ))

View File

@ -14,7 +14,6 @@ $(eval $(call gb_JunitTest_use_jars,bean_complex,\
OOoRunner \ OOoRunner \
ridl \ ridl \
test \ test \
unoil \
officebean \ officebean \
)) ))

View File

@ -45,9 +45,7 @@ public class OOoViewer extends Applet {
String officeURL = url.toString(); String officeURL = url.toString();
URL[] arURL = new URL[] { URL[] arURL = new URL[] {
new URL(officeURL + "/program/classes/officebean.jar"), new URL(officeURL + "/program/classes/officebean.jar"),
new URL(officeURL + "/program/classes/jurt.jar"),
new URL(officeURL + "/program/classes/ridl.jar"), new URL(officeURL + "/program/classes/ridl.jar"),
new URL(officeURL + "/program/classes/unoil.jar"),
new URL(officeURL + "/program/classes/java_uno.jar"), new URL(officeURL + "/program/classes/java_uno.jar"),
new URL(officeURL + "/program/classes/juh.jar") new URL(officeURL + "/program/classes/juh.jar")
}; };

View File

@ -12,8 +12,6 @@ $(eval $(call gb_Jar_Jar,ConnectivityTools))
$(eval $(call gb_Jar_use_jars,ConnectivityTools,\ $(eval $(call gb_Jar_use_jars,ConnectivityTools,\
ridl \ ridl \
unoil \
jurt \
juh \ juh \
java_uno \ java_uno \
OOoRunner \ OOoRunner \

View File

@ -22,7 +22,6 @@ $(eval $(call gb_Jar_set_packageroot,active_java,com))
$(eval $(call gb_Jar_use_jars,active_java, \ $(eval $(call gb_Jar_use_jars,active_java, \
juh \ juh \
ridl \ ridl \
unoil \
)) ))
# vim: set noet sw=4 ts=4: # vim: set noet sw=4 ts=4:

View File

@ -24,7 +24,6 @@ $(eval $(call gb_Jar_set_packageroot,passive_java,com))
$(eval $(call gb_Jar_use_jars,passive_java, \ $(eval $(call gb_Jar_use_jars,passive_java, \
juh \ juh \
ridl \ ridl \
unoil \
)) ))
# vim: set noet sw=4 ts=4: # vim: set noet sw=4 ts=4:

View File

@ -36,11 +36,10 @@ c++)
printf '%s' "$sd_prog/../Frameworks" printf '%s' "$sd_prog/../Frameworks"
;; ;;
java) java)
printf '0%s\0%s\0%s\0%s\0%s' \ printf '0%s\0%s\0%s' \
"$sd_prog/../Resources/java/ridl.jar" \ "$sd_prog/../Resources/java/ridl.jar" \
"$sd_prog/../Resources/java/jurt.jar" \
"$sd_prog/../Resources/java/juh.jar" \ "$sd_prog/../Resources/java/juh.jar" \
"$sd_prog/../Resources/java/unoil.jar" "$sd_prog" "$sd_prog"
;; ;;
*) *)
exit 1 exit 1

View File

@ -36,9 +36,9 @@ c++)
printf '%s' "$sd_prog" printf '%s' "$sd_prog"
;; ;;
java) java)
printf '0%s\0%s\0%s\0%s\0%s' \ printf '0%s\0%s\0%s' \
"$sd_prog/classes/ridl.jar" "$sd_prog/classes/jurt.jar" \ "$sd_prog/classes/ridl.jar" \
"$sd_prog/classes/juh.jar" "$sd_prog/classes/unoil.jar" "$sd_prog" "$sd_prog/classes/juh.jar" "$sd_prog"
;; ;;
*) *)
exit 1 exit 1

View File

@ -77,12 +77,8 @@ int wmain(int argc, wchar_t ** argv, wchar_t **) {
wchar_t * pathEnd = getBrandPath(path); wchar_t * pathEnd = getBrandPath(path);
writePath(path, pathEnd, MY_STRING(L"classes\\ridl.jar")); writePath(path, pathEnd, MY_STRING(L"classes\\ridl.jar"));
writeNull(); writeNull();
writePath(path, pathEnd, MY_STRING(L"classes\\jurt.jar"));
writeNull();
writePath(path, pathEnd, MY_STRING(L"classes\\juh.jar")); writePath(path, pathEnd, MY_STRING(L"classes\\juh.jar"));
writeNull(); writeNull();
writePath(path, pathEnd, MY_STRING(L"classes\\unoil.jar"));
writeNull();
writePath(path, pathEnd, MY_STRING(L"")); writePath(path, pathEnd, MY_STRING(L""));
} else { } else {
exit(EXIT_FAILURE); exit(EXIT_FAILURE);

View File

@ -17,7 +17,7 @@ Please note the semicolons!
For the program to run make sure that the office has access For the program to run make sure that the office has access
to classes.zip, unoil.jar, jurt.jar, pgp.jar and swingall.jar. to classes.zip, ridl.jar, pgp.jar and swingall.jar.
Therefore do the necessary entries in Therefore do the necessary entries in
Office/user/config/javarc Office/user/config/javarc
@ -30,4 +30,4 @@ The TestPGP is called without ;iiop; :
java TestPGP "socket,host=localhost,port=1111" java TestPGP "socket,host=localhost,port=1111"

View File

@ -98,13 +98,13 @@
</p> </p>
<p> <p>
regcomp -env:UNO_JAVA_JFW_JREHOME=file:///d:/j2re1.4.2 regcomp -env:UNO_JAVA_JFW_JREHOME=file:///d:/j2re1.4.2
-env:&quot;UNO_JAVA_JFW_CLASSPATH=d:\\solver\\bin\\classes.jar;d:\\solver\\bin\\jurt.jar&quot; -env:&quot;UNO_JAVA_JFW_CLASSPATH=d:\\solver\\bin\\classes.jar;d:\\solver\\bin\\ridl.jar&quot;
-register... -register...
</p> </p>
<p>If UNO_JAVA_JFW_VENDOR_SETTINGS is not set then a plugin library must be specified. For example:</p> <p>If UNO_JAVA_JFW_VENDOR_SETTINGS is not set then a plugin library must be specified. For example:</p>
<p> <p>
regcomp -env:UNO_JAVA_JFW_JREHOME=file:///d:/j2re1.4.2 regcomp -env:UNO_JAVA_JFW_JREHOME=file:///d:/j2re1.4.2
-env:&quot;UNO_JAVA_JFW_CLASSPATH=d:\\solver\\bin\\classes.jar;d:\\solver\\bin\\jurt.jar&quot; -env:&quot;UNO_JAVA_JFW_CLASSPATH=d:\\solver\\bin\\classes.jar;d:\\solver\\bin\\ridl.jar&quot;
-register... -register...
</p> </p>
<p>Additional parameters for the Java VM can be provided. For every parameter <p>Additional parameters for the Java VM can be provided. For every parameter
@ -114,7 +114,7 @@
regcomp -env:UNO_JAVA_JFW_PARAMETER_1=-Xdebug regcomp -env:UNO_JAVA_JFW_PARAMETER_1=-Xdebug
-env:UNO_JAVA_JFW_PARAMETER_2=-Xrunjdwp:transport=dt_socket,server=y,address=8100 -env:UNO_JAVA_JFW_PARAMETER_2=-Xrunjdwp:transport=dt_socket,server=y,address=8100
-env:UNO_JAVA_JFW_JREHOME=file:///d:/j2re1.4.2 -env:UNO_JAVA_JFW_JREHOME=file:///d:/j2re1.4.2
-env:&quot;UNO_JAVA_JFW_CLASSPATH=d:\\solver\\bin\\classes.jar;d:\\solver\\bin\\jurt.jar&quot; -env:&quot;UNO_JAVA_JFW_CLASSPATH=d:\\solver\\bin\\classes.jar;d:\\solver\\bin\\ridl.jar&quot;
-register...</p> -register...</p>
<p> <p>
Here is a complete list of the bootstrap parameter for the direct mode: Here is a complete list of the bootstrap parameter for the direct mode:

View File

@ -66,7 +66,7 @@ $(call gb_CustomTarget_get_workdir,instsetoo_native/setup)/$(call gb_Helper_get_
&& echo 'URE_MORE_JAVA_CLASSPATH_URLS=$(if $(SYSTEM_HSQLDB),$(HSQLDB_JAR))' \ && echo 'URE_MORE_JAVA_CLASSPATH_URLS=$(if $(SYSTEM_HSQLDB),$(HSQLDB_JAR))' \
&& echo 'URE_OVERRIDE_JAVA_JFW_SHARED_DATA=$${BRAND_BASE_DIR}/$(LIBO_SHARE_FOLDER)/config/javasettings_$${_OS}_$${_ARCH}.xml' \ && echo 'URE_OVERRIDE_JAVA_JFW_SHARED_DATA=$${BRAND_BASE_DIR}/$(LIBO_SHARE_FOLDER)/config/javasettings_$${_OS}_$${_ARCH}.xml' \
&& echo 'URE_OVERRIDE_JAVA_JFW_USER_DATA=$${$${BRAND_BASE_DIR}/$(LIBO_ETC_FOLDER)/$(call gb_Helper_get_rcfile,bootstrap):UserInstallation}/user/config/javasettings_$${_OS}_$${_ARCH}.xml' \ && echo 'URE_OVERRIDE_JAVA_JFW_USER_DATA=$${$${BRAND_BASE_DIR}/$(LIBO_ETC_FOLDER)/$(call gb_Helper_get_rcfile,bootstrap):UserInstallation}/user/config/javasettings_$${_OS}_$${_ARCH}.xml' \
&& echo 'URE_MORE_JAVA_TYPES=$${BRAND_BASE_DIR}/$(LIBO_SHARE_JAVA_FOLDER)/unoil.jar $${BRAND_BASE_DIR}/$(LIBO_SHARE_JAVA_FOLDER)/ScriptFramework.jar $${$${$$ORIGIN/$(call gb_Helper_get_rcfile,louno):PKG_UserUnoFile}:UNO_JAVA_CLASSPATH} $${$${$$ORIGIN/$(call gb_Helper_get_rcfile,louno):PKG_SharedUnoFile}:UNO_JAVA_CLASSPATH} $${$${$$ORIGIN/$(call gb_Helper_get_rcfile,louno):PKG_BundledUnoFile}:UNO_JAVA_CLASSPATH}' \ && echo 'URE_MORE_JAVA_TYPES=$${BRAND_BASE_DIR}/$(LIBO_SHARE_JAVA_FOLDER)/ridl.jar $${BRAND_BASE_DIR}/$(LIBO_SHARE_JAVA_FOLDER)/ScriptFramework.jar $${$${$$ORIGIN/$(call gb_Helper_get_rcfile,louno):PKG_UserUnoFile}:UNO_JAVA_CLASSPATH} $${$${$$ORIGIN/$(call gb_Helper_get_rcfile,louno):PKG_SharedUnoFile}:UNO_JAVA_CLASSPATH} $${$${$$ORIGIN/$(call gb_Helper_get_rcfile,louno):PKG_BundledUnoFile}:UNO_JAVA_CLASSPATH}' \
&& echo 'URE_MORE_SERVICES=$${$${$$ORIGIN/$(call gb_Helper_get_rcfile,louno):PKG_UserUnoFile}:UNO_SERVICES} $${$${$$ORIGIN/$(call gb_Helper_get_rcfile,louno):PKG_SharedUnoFile}:UNO_SERVICES} $${$${$$ORIGIN/$(call gb_Helper_get_rcfile,louno):PKG_BundledUnoFile}:UNO_SERVICES} <$$ORIGIN/services>*' \ && echo 'URE_MORE_SERVICES=$${$${$$ORIGIN/$(call gb_Helper_get_rcfile,louno):PKG_UserUnoFile}:UNO_SERVICES} $${$${$$ORIGIN/$(call gb_Helper_get_rcfile,louno):PKG_SharedUnoFile}:UNO_SERVICES} $${$${$$ORIGIN/$(call gb_Helper_get_rcfile,louno):PKG_BundledUnoFile}:UNO_SERVICES} <$$ORIGIN/services>*' \
&& echo 'URE_MORE_TYPES=<$$ORIGIN/types>* $${$${$$ORIGIN/$(call gb_Helper_get_rcfile,louno):PKG_UserUnoFile}:UNO_TYPES} $${$${$$ORIGIN/$(call gb_Helper_get_rcfile,louno):PKG_SharedUnoFile}:UNO_TYPES} $${$${$$ORIGIN/$(call gb_Helper_get_rcfile,louno):PKG_BundledUnoFile}:UNO_TYPES}' \ && echo 'URE_MORE_TYPES=<$$ORIGIN/types>* $${$${$$ORIGIN/$(call gb_Helper_get_rcfile,louno):PKG_UserUnoFile}:UNO_TYPES} $${$${$$ORIGIN/$(call gb_Helper_get_rcfile,louno):PKG_SharedUnoFile}:UNO_TYPES} $${$${$$ORIGIN/$(call gb_Helper_get_rcfile,louno):PKG_BundledUnoFile}:UNO_TYPES}' \
) > $@ ) > $@

View File

@ -10,14 +10,12 @@
$(eval $(call gb_Jar_Jar,juh)) $(eval $(call gb_Jar_Jar,juh))
$(eval $(call gb_Jar_use_jars,juh,\ $(eval $(call gb_Jar_use_jars,juh,\
jurt \
ridl \ ridl \
)) ))
$(eval $(call gb_Jar_set_packageroot,juh,com)) $(eval $(call gb_Jar_set_packageroot,juh,com))
$(eval $(call gb_Jar_add_manifest_classpath,juh, \ $(eval $(call gb_Jar_add_manifest_classpath,juh, \
jurt.jar \
ridl.jar \ ridl.jar \
$(if $(filter MACOSX,$(OS)),../../Frameworks/,../) \ $(if $(filter MACOSX,$(OS)),../../Frameworks/,../) \
)) ))

View File

@ -17,7 +17,6 @@ $(eval $(call gb_JunitTest_set_defs,juh,\
$(eval $(call gb_JunitTest_use_jars,juh,\ $(eval $(call gb_JunitTest_use_jars,juh,\
OOoRunner \ OOoRunner \
ridl \ ridl \
jurt \
)) ))
$(eval $(call gb_JunitTest_use_jar_classset,juh,ridljar)) $(eval $(call gb_JunitTest_use_jar_classset,juh,ridljar))

View File

@ -9,76 +9,8 @@
$(eval $(call gb_Jar_Jar,jurt)) $(eval $(call gb_Jar_Jar,jurt))
$(eval $(call gb_Jar_use_jars,jurt,\
ridl \
unoloader \
))
$(eval $(call gb_Jar_set_packageroot,jurt,com))
$(eval $(call gb_Jar_set_manifest,jurt,$(SRCDIR)/jurt/util/manifest))
$(eval $(call gb_Jar_add_manifest_classpath,jurt, \ $(eval $(call gb_Jar_add_manifest_classpath,jurt, \
ridl.jar \ ridl.jar \
unoloader.jar \
$(if $(filter MACOSX,$(OS)),../../Frameworks/,../) \
))
$(eval $(call gb_Jar_add_sourcefiles,jurt,\
jurt/com/sun/star/comp/bridgefactory/BridgeFactory \
jurt/com/sun/star/comp/connections/Acceptor \
jurt/com/sun/star/comp/connections/Connector \
jurt/com/sun/star/comp/connections/ConstantInstanceProvider \
jurt/com/sun/star/comp/connections/Implementation \
jurt/com/sun/star/comp/connections/PipedConnection \
jurt/com/sun/star/comp/loader/FactoryHelper \
jurt/com/sun/star/comp/loader/JavaLoader \
jurt/com/sun/star/comp/loader/JavaLoaderFactory \
jurt/com/sun/star/comp/loader/RegistrationClassFinder \
jurt/com/sun/star/comp/servicemanager/ServiceManager \
jurt/com/sun/star/comp/urlresolver/UrlResolver \
jurt/com/sun/star/lib/connections/pipe/PipeConnection \
jurt/com/sun/star/lib/connections/pipe/pipeAcceptor \
jurt/com/sun/star/lib/connections/pipe/pipeConnector \
jurt/com/sun/star/lib/connections/socket/ConnectionDescriptor \
jurt/com/sun/star/lib/connections/socket/SocketConnection \
jurt/com/sun/star/lib/connections/socket/socketAcceptor \
jurt/com/sun/star/lib/connections/socket/socketConnector \
jurt/com/sun/star/lib/uno/Proxy \
jurt/com/sun/star/lib/uno/bridges/java_remote/BridgedObject \
jurt/com/sun/star/lib/uno/bridges/java_remote/ProxyFactory \
jurt/com/sun/star/lib/uno/bridges/java_remote/RequestHandler \
jurt/com/sun/star/lib/uno/bridges/java_remote/XConnectionInputStream_Adapter \
jurt/com/sun/star/lib/uno/bridges/java_remote/XConnectionOutputStream_Adapter \
jurt/com/sun/star/lib/uno/bridges/java_remote/java_remote_bridge \
jurt/com/sun/star/lib/uno/environments/java/java_environment \
jurt/com/sun/star/lib/uno/environments/remote/IProtocol \
jurt/com/sun/star/lib/uno/environments/remote/IReceiver \
jurt/com/sun/star/lib/uno/environments/remote/IThreadPool \
jurt/com/sun/star/lib/uno/environments/remote/JavaThreadPool \
jurt/com/sun/star/lib/uno/environments/remote/JavaThreadPoolFactory \
jurt/com/sun/star/lib/uno/environments/remote/Job \
jurt/com/sun/star/lib/uno/environments/remote/JobQueue \
jurt/com/sun/star/lib/uno/environments/remote/Message \
jurt/com/sun/star/lib/uno/environments/remote/NativeThreadPool \
jurt/com/sun/star/lib/uno/environments/remote/ThreadId \
jurt/com/sun/star/lib/uno/environments/remote/ThreadPoolManager \
jurt/com/sun/star/lib/uno/environments/remote/remote_environment \
jurt/com/sun/star/lib/uno/protocols/urp/Cache \
jurt/com/sun/star/lib/uno/protocols/urp/Marshal \
jurt/com/sun/star/lib/uno/protocols/urp/PendingRequests \
jurt/com/sun/star/lib/uno/protocols/urp/Unmarshal \
jurt/com/sun/star/lib/uno/protocols/urp/UrpMessage \
jurt/com/sun/star/lib/uno/protocols/urp/urp \
jurt/com/sun/star/lib/util/AsynchronousFinalizer \
jurt/com/sun/star/lib/util/NativeLibraryLoader \
jurt/com/sun/star/lib/util/StringHelper \
jurt/com/sun/star/lib/util/UrlToFileMapper \
jurt/com/sun/star/uno/AnyConverter \
jurt/com/sun/star/uno/Ascii \
jurt/com/sun/star/uno/AsciiString \
jurt/com/sun/star/uno/MappingException \
jurt/com/sun/star/uno/WeakReference \
)) ))
# vim:set noet sw=4 ts=4: # vim:set noet sw=4 ts=4:

View File

@ -9,11 +9,13 @@
$(eval $(call gb_JunitTest_JunitTest,jurt_bridgefactory)) $(eval $(call gb_JunitTest_JunitTest,jurt_bridgefactory))
$(eval $(call gb_JunitTest_use_jars,jurt_bridgefactory,\ $(eval $(call gb_Jar_use_customtargets,jurt_bridgefactory, \
ridl \ ridljar/javamaker \
)) ))
$(eval $(call gb_JunitTest_use_jar_classset,jurt_bridgefactory,jurt)) $(eval $(call gb_JunitTest_use_jar_classset,jurt_bridgefactory,ridl))
$(eval $(call gb_JunitTest_add_classpath,jurt_bridgefactory,$(call gb_CustomTarget_get_workdir,ridljar/javamaker)))
$(eval $(call gb_JunitTest_add_sourcefiles,jurt_bridgefactory,\ $(eval $(call gb_JunitTest_add_sourcefiles,jurt_bridgefactory,\
jurt/test/com/sun/star/comp/bridgefactory/BridgeFactory_Test \ jurt/test/com/sun/star/comp/bridgefactory/BridgeFactory_Test \

View File

@ -9,11 +9,13 @@
$(eval $(call gb_JunitTest_JunitTest,jurt_connections)) $(eval $(call gb_JunitTest_JunitTest,jurt_connections))
$(eval $(call gb_JunitTest_use_jars,jurt_connections,\ $(eval $(call gb_Jar_use_customtargets,jurt_connections, \
ridl \ ridljar/javamaker \
)) ))
$(eval $(call gb_JunitTest_use_jar_classset,jurt_connections,jurt)) $(eval $(call gb_JunitTest_use_jar_classset,jurt_connections,ridl))
$(eval $(call gb_JunitTest_add_classpath,jurt_connections,$(call gb_CustomTarget_get_workdir,ridljar/javamaker)))
$(eval $(call gb_JunitTest_add_sourcefiles,jurt_connections,\ $(eval $(call gb_JunitTest_add_sourcefiles,jurt_connections,\
jurt/test/com/sun/star/comp/connections/PipedConnection_Test \ jurt/test/com/sun/star/comp/connections/PipedConnection_Test \

View File

@ -9,11 +9,13 @@
$(eval $(call gb_JunitTest_JunitTest,jurt_java)) $(eval $(call gb_JunitTest_JunitTest,jurt_java))
$(eval $(call gb_JunitTest_use_jars,jurt_java,\ $(eval $(call gb_Jar_use_customtargets,jurt_java, \
ridl \ ridljar/javamaker \
)) ))
$(eval $(call gb_JunitTest_use_jar_classset,jurt_java,jurt)) $(eval $(call gb_JunitTest_use_jar_classset,jurt_java,ridl))
$(eval $(call gb_JunitTest_add_classpath,jurt_java,$(call gb_CustomTarget_get_workdir,ridljar/javamaker)))
$(eval $(call gb_JunitTest_add_sourcefiles,jurt_java,\ $(eval $(call gb_JunitTest_add_sourcefiles,jurt_java,\
jurt/test/com/sun/star/lib/uno/environments/java/java_environment_Test \ jurt/test/com/sun/star/lib/uno/environments/java/java_environment_Test \

View File

@ -11,10 +11,15 @@ $(eval $(call gb_JunitTest_JunitTest,jurt_java_remote))
$(eval $(call gb_JunitTest_use_jars,jurt_java_remote,\ $(eval $(call gb_JunitTest_use_jars,jurt_java_remote,\
OOoRunner \ OOoRunner \
ridl \
)) ))
$(eval $(call gb_JunitTest_use_jar_classset,jurt_java_remote,jurt)) $(eval $(call gb_Jar_use_customtargets,jurt_java_remote, \
ridljar/javamaker \
))
$(eval $(call gb_JunitTest_use_jar_classset,jurt_java_remote,ridl))
$(eval $(call gb_JunitTest_add_classpath,jurt_java_remote,$(call gb_CustomTarget_get_workdir,ridljar/javamaker)))
$(eval $(call gb_JunitTest_add_sourcefiles,jurt_java_remote,\ $(eval $(call gb_JunitTest_add_sourcefiles,jurt_java_remote,\
jurt/test/com/sun/star/lib/uno/bridges/java_remote/BridgedObject_Test \ jurt/test/com/sun/star/lib/uno/bridges/java_remote/BridgedObject_Test \

View File

@ -9,11 +9,13 @@
$(eval $(call gb_JunitTest_JunitTest,jurt_remote)) $(eval $(call gb_JunitTest_JunitTest,jurt_remote))
$(eval $(call gb_JunitTest_use_jars,jurt_remote,\ $(eval $(call gb_Jar_use_customtargets,jurt_remote, \
ridl \ ridljar/javamaker \
)) ))
$(eval $(call gb_JunitTest_use_jar_classset,jurt_remote,jurt)) $(eval $(call gb_JunitTest_use_jar_classset,jurt_remote,ridl))
$(eval $(call gb_JunitTest_add_classpath,jurt_remote,$(call gb_CustomTarget_get_workdir,ridljar/javamaker)))
$(eval $(call gb_JunitTest_add_sourcefiles,jurt_remote,\ $(eval $(call gb_JunitTest_add_sourcefiles,jurt_remote,\
jurt/test/com/sun/star/lib/uno/environments/remote/JavaThreadPoolFactory_Test \ jurt/test/com/sun/star/lib/uno/environments/remote/JavaThreadPoolFactory_Test \

View File

@ -11,13 +11,12 @@ $(eval $(call gb_JunitTest_JunitTest,jurt_urp))
$(eval $(call gb_JunitTest_use_customtargets,jurt_urp,\ $(eval $(call gb_JunitTest_use_customtargets,jurt_urp,\
jurt/test/com/sun/star/lib/uno/protocols/urp \ jurt/test/com/sun/star/lib/uno/protocols/urp \
ridljar/javamaker \
)) ))
$(eval $(call gb_JunitTest_use_jars,jurt_urp,\ $(eval $(call gb_JunitTest_use_jar_classset,jurt_urp,ridl))
ridl \
))
$(eval $(call gb_JunitTest_use_jar_classset,jurt_urp,jurt)) $(eval $(call gb_JunitTest_add_classpath,jurt_urp,$(call gb_CustomTarget_get_workdir,ridljar/javamaker)))
$(eval $(call gb_JunitTest_add_sourcefiles,jurt_urp,\ $(eval $(call gb_JunitTest_add_sourcefiles,jurt_urp,\
jurt/test/com/sun/star/lib/uno/protocols/urp/Cache_Test \ jurt/test/com/sun/star/lib/uno/protocols/urp/Cache_Test \

View File

@ -1,7 +0,0 @@
Sealed: true
Name: com/sun/star/lib/util/
Sealed: false
Name: com/sun/star/uno/
Sealed: false

View File

@ -29,8 +29,6 @@ $(eval $(call gb_JunitTest_use_jars,linguistic_complex,\
ridl \ ridl \
test \ test \
test-tools \ test-tools \
unoil \
jurt \
)) ))
$(eval $(call gb_JunitTest_add_sourcefiles,linguistic_complex,\ $(eval $(call gb_JunitTest_add_sourcefiles,linguistic_complex,\

View File

@ -21,8 +21,6 @@ $(eval $(call gb_Jar_Jar,nlpsolver))
$(eval $(call gb_Jar_use_jars,nlpsolver,\ $(eval $(call gb_Jar_use_jars,nlpsolver,\
ridl \ ridl \
unoil \
jurt \
juh \ juh \
java_uno \ java_uno \
EvolutionarySolver \ EvolutionarySolver \

View File

@ -953,10 +953,7 @@ function writeBatFile(fdir, file)
"set OO_SDK_OFFICE_JAVA_DIR=%OFFICE_PROGRAM_PATH%\\classes\n" + "set OO_SDK_OFFICE_JAVA_DIR=%OFFICE_PROGRAM_PATH%\\classes\n" +
"\n" + "\n" +
"REM Set classpath\n" + "REM Set classpath\n" +
"set CLASSPATH=%OO_SDK_URE_JAVA_DIR%\\juh.jar;%OO_SDK_URE_JAVA_DIR%\\jurt.jar;%OO_SDK_URE_JAVA_DIR%\\ridl.jar;%OO_SDK_URE_JAVA_DIR%\\unoloader.jar;%OO_SDK_OFFICE_JAVA_DIR%\\unoil.jar\n" + "set CLASSPATH=%OO_SDK_URE_JAVA_DIR%\\juh.jar;%OO_SDK_URE_JAVA_DIR%\\ridl.jar;%OO_SDK_URE_JAVA_DIR%\\unoloader.jar\n" +
"REM if defined OFFICE_HOME (\n" +
"REM set CLASSPATH=%CLASSPATH%;%OO_SDK_OFFICE_JAVA_DIR%\\unoil.jar\n" +
"REM )\n" +
"\n" + "\n" +
"REM Add directory of the SDK tools to the path.\n" + "REM Add directory of the SDK tools to the path.\n" +
"set PATH=%OO_SDK_HOME%\\bin;%OO_SDK_URE_BIN_DIR%;%OO_SDK_OFFICE_BIN_DIR%;%OO_SDK_HOME%\\WINexample.out\\bin;%PATH%\n" + "set PATH=%OO_SDK_HOME%\\bin;%OO_SDK_URE_BIN_DIR%;%OO_SDK_OFFICE_BIN_DIR%;%OO_SDK_HOME%\\WINexample.out\\bin;%PATH%\n" +

View File

@ -200,7 +200,7 @@ esac
PATH=${OO_SDK_HOME}/bin:${OO_SDK_OUT}/${exampleout}/bin:${OO_SDK_URE_BIN_DIR}:${OFFICE_PROGRAM_PATH}:${PATH} PATH=${OO_SDK_HOME}/bin:${OO_SDK_OUT}/${exampleout}/bin:${OO_SDK_URE_BIN_DIR}:${OFFICE_PROGRAM_PATH}:${PATH}
# Set the classpath # Set the classpath
CLASSPATH=${OO_SDK_URE_JAVA_DIR}/juh.jar:${OO_SDK_URE_JAVA_DIR}/jurt.jar:${OO_SDK_URE_JAVA_DIR}/ridl.jar:${OO_SDK_URE_JAVA_DIR}/unoloader.jar:${OFFICE_HOME}/$sdk_lo_java_dir/unoil.jar:${CLASSPATH} CLASSPATH=${OO_SDK_URE_JAVA_DIR}/juh.jar:${OO_SDK_URE_JAVA_DIR}/ridl.jar:${OO_SDK_URE_JAVA_DIR}/unoloader.jar:${CLASSPATH}
export CLASSPATH export CLASSPATH

View File

@ -388,10 +388,8 @@
<tr valign="top"> <tr valign="top">
<td class="cell20">CLASSPATH</td> <td class="cell20">CLASSPATH</td>
<td class="cell80">=<i>$OO_SDK_URE_JAVA_DIR/juh.jar; <td class="cell80">=<i>$OO_SDK_URE_JAVA_DIR/juh.jar;
$OO_SDK_URE_JAVA_DIR/jurt.jar;
$OO_SDK_URE_JAVA_DIR/ridl.jar; $OO_SDK_URE_JAVA_DIR/ridl.jar;
$OO_SDK_URE_JAVA_DIR/unoloader.jar; $OO_SDK_URE_JAVA_DIR/unoloader.jar;
$OO_SDK_URE_JAVA_DIR/unoil.jar;
$CLASSPATH</i><br/> $CLASSPATH</i><br/>
<p>The classpath will be set or extended to <p>The classpath will be set or extended to
the necessary jar files of the specified the necessary jar files of the specified

View File

@ -28,7 +28,7 @@
<path id="office.class.path"> <path id="office.class.path">
<filelist dir="${OFFICE_HOME}/program/classes" <filelist dir="${OFFICE_HOME}/program/classes"
files="jurt.jar,unoil.jar,ridl.jar,juh.jar"/> files="ridl.jar,juh.jar"/>
</path> </path>
<fileset id="bootstrap.glue.code" dir="${OO_SDK_HOME}/classes"> <fileset id="bootstrap.glue.code" dir="${OO_SDK_HOME}/classes">

View File

@ -2,7 +2,7 @@
# #
# The Contents of this file are made available subject to the terms of # The Contents of this file are made available subject to the terms of
# the BSD license. # the BSD license.
# #
# Copyright 2000, 2010 Oracle and/or its affiliates. # Copyright 2000, 2010 Oracle and/or its affiliates.
# All rights reserved. # All rights reserved.
# #
@ -29,7 +29,7 @@
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
# TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE # TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
# USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# #
#************************************************************************** #**************************************************************************
# Builds the OOoBean of the Developers Guide # Builds the OOoBean of the Developers Guide
@ -50,10 +50,9 @@ JAVAFILES = \
CLASSFILES = $(patsubst %.java,$(OUT_COMP_CLASS)/$(PACKAGE)/%.class,$(JAVAFILES)) CLASSFILES = $(patsubst %.java,$(OUT_COMP_CLASS)/$(PACKAGE)/%.class,$(JAVAFILES))
SDK_CLASSPATH = $(subst $(EMPTYSTRING) $(PATH_SEPARATOR),$(PATH_SEPARATOR),$(URE_CLASSES_DIR)/jurt.jar\ SDK_CLASSPATH = $(subst $(EMPTYSTRING) $(PATH_SEPARATOR),$(PATH_SEPARATOR),\
$(PATH_SEPARATOR)$(URE_CLASSES_DIR)/ridl.jar\ $(PATH_SEPARATOR)$(URE_CLASSES_DIR)/ridl.jar\
$(PATH_SEPARATOR)$(URE_CLASSES_DIR)/juh.jar\ $(PATH_SEPARATOR)$(URE_CLASSES_DIR)/juh.jar\
$(PATH_SEPARATOR)$(OFFICE_CLASSES_DIR)/unoil.jar\
$(PATH_SEPARATOR)$(OFFICE_CLASSES_DIR)/officebean.jar\ $(PATH_SEPARATOR)$(OFFICE_CLASSES_DIR)/officebean.jar\
$(PATH_SEPARATOR)$(OUT_COMP_CLASS)) $(PATH_SEPARATOR)$(OUT_COMP_CLASS))
@ -69,7 +68,7 @@ endif
include $(SETTINGS)/stdtarget.mk include $(SETTINGS)/stdtarget.mk
$(CLASSFILES) : $(JAVAFILES) $(CLASSFILES) : $(JAVAFILES)
-$(MKDIR) $(subst /,$(PS),$(@D)) -$(MKDIR) $(subst /,$(PS),$(@D))
javac $(JAVAC_FLAGS) -classpath "$(SDK_CLASSPATH)" -d $(OUT_COMP_CLASS) $(JAVAFILES) javac $(JAVAC_FLAGS) -classpath "$(SDK_CLASSPATH)" -d $(OUT_COMP_CLASS) $(JAVAFILES)

View File

@ -41,9 +41,7 @@
<!-- ==================== classpath setting ============================ --> <!-- ==================== classpath setting ============================ -->
<target name="init" depends="checksdk,initsdk,initnosdk"> <target name="init" depends="checksdk,initsdk,initnosdk">
<path id="scriptclasspath"> <path id="scriptclasspath">
<pathelement location="${opp}/classes/unoil.jar"/>
<pathelement location="${opp}/classes/ridl.jar"/> <pathelement location="${opp}/classes/ridl.jar"/>
<pathelement location="${opp}/classes/jurt.jar"/>
<pathelement location="${opp}/classes/juh.jar"/> <pathelement location="${opp}/classes/juh.jar"/>
<pathelement location="${opp}/classes/ScriptFramework.jar"/> <pathelement location="${opp}/classes/ScriptFramework.jar"/>
</path> </path>

View File

@ -41,9 +41,7 @@
<!-- ==================== classpath setting ============================ --> <!-- ==================== classpath setting ============================ -->
<target name="init" depends="checksdk,initsdk,initnosdk"> <target name="init" depends="checksdk,initsdk,initnosdk">
<path id="scriptclasspath"> <path id="scriptclasspath">
<pathelement location="${opp}/classes/unoil.jar"/>
<pathelement location="${opp}/classes/ridl.jar"/> <pathelement location="${opp}/classes/ridl.jar"/>
<pathelement location="${opp}/classes/jurt.jar"/>
<pathelement location="${opp}/classes/juh.jar"/> <pathelement location="${opp}/classes/juh.jar"/>
<pathelement location="${opp}/classes/ScriptFramework.jar"/> <pathelement location="${opp}/classes/ScriptFramework.jar"/>
</path> </path>

View File

@ -10,9 +10,7 @@
<classpathentry kind="lib" path="testdocs/qadevlibs/MyPersistObjectImpl.jar"/> <classpathentry kind="lib" path="testdocs/qadevlibs/MyPersistObjectImpl.jar"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="../instdir/program/classes/juh.jar"/> <classpathentry kind="lib" path="../instdir/program/classes/juh.jar"/>
<classpathentry kind="lib" path="../instdir/program/classes/jurt.jar"/>
<classpathentry kind="lib" path="../instdir/program/classes/ridl.jar"/> <classpathentry kind="lib" path="../instdir/program/classes/ridl.jar"/>
<classpathentry kind="lib" path="../instdir/program/classes/unoil.jar"/>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/> <classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
<classpathentry kind="output" path="../workdir/qadevooo-bin"/> <classpathentry kind="output" path="../workdir/qadevooo-bin"/>
</classpath> </classpath>

View File

@ -15,15 +15,12 @@ $(eval $(call gb_Jar_Jar,OOoRunner))
$(eval $(call gb_Jar_add_manifest_classpath,OOoRunner,\ $(eval $(call gb_Jar_add_manifest_classpath,OOoRunner,\
ridl.jar \ ridl.jar \
unoil.jar \
)) ))
$(eval $(call gb_Jar_set_manifest,OOoRunner,$(SRCDIR)/qadevOOo/runner/manifest)) $(eval $(call gb_Jar_set_manifest,OOoRunner,$(SRCDIR)/qadevOOo/runner/manifest))
$(eval $(call gb_Jar_use_jars,OOoRunner,\ $(eval $(call gb_Jar_use_jars,OOoRunner,\
ridl \ ridl \
unoil \
jurt \
juh \ juh \
java_uno \ java_uno \
)) ))

View File

@ -12,9 +12,7 @@ $(eval $(call gb_Jar_Jar,reportbuilder))
$(eval $(call gb_Jar_use_jars,reportbuilder,\ $(eval $(call gb_Jar_use_jars,reportbuilder,\
java_uno \ java_uno \
juh \ juh \
jurt \
ridl \ ridl \
unoil \
)) ))
$(eval $(call gb_Jar_use_externals,reportbuilder,\ $(eval $(call gb_Jar_use_externals,reportbuilder,\

View File

@ -11,12 +11,25 @@ $(eval $(call gb_Jar_Jar,ridl))
$(eval $(call gb_Jar_use_customtargets,ridl,\ $(eval $(call gb_Jar_use_customtargets,ridl,\
ridljar/javamaker \ ridljar/javamaker \
unoil/javamaker \
))
$(eval $(call gb_Jar_use_jars,ridl, \
unoloader \
)) ))
$(eval $(call gb_Jar_set_packageroot,ridl,com)) $(eval $(call gb_Jar_set_packageroot,ridl,com))
$(eval $(call gb_Jar_set_manifest,ridl,$(SRCDIR)/ridljar/util/manifest))
$(eval $(call gb_Jar_add_manifest_classpath,ridl, \
unoloader.jar \
$(if $(filter MACOSX,$(OS)),../../Frameworks/,../) \
))
$(eval $(call gb_Jar_add_packagedirs,ridl,\ $(eval $(call gb_Jar_add_packagedirs,ridl,\
$(call gb_CustomTarget_get_workdir,ridljar/javamaker)/com \ $(call gb_CustomTarget_get_workdir,ridljar/javamaker)/com \
$(call gb_CustomTarget_get_workdir,unoil/javamaker)/com \
)) ))
$(eval $(call gb_Jar_add_sourcefiles,ridl,\ $(eval $(call gb_Jar_add_sourcefiles,ridl,\
@ -41,6 +54,60 @@ $(eval $(call gb_Jar_add_sourcefiles,ridl,\
ridljar/com/sun/star/uno/IQueryInterface \ ridljar/com/sun/star/uno/IQueryInterface \
ridljar/com/sun/star/uno/Type \ ridljar/com/sun/star/uno/Type \
ridljar/com/sun/star/uno/UnoRuntime \ ridljar/com/sun/star/uno/UnoRuntime \
jurt/com/sun/star/comp/bridgefactory/BridgeFactory \
jurt/com/sun/star/comp/connections/Acceptor \
jurt/com/sun/star/comp/connections/Connector \
jurt/com/sun/star/comp/connections/ConstantInstanceProvider \
jurt/com/sun/star/comp/connections/Implementation \
jurt/com/sun/star/comp/connections/PipedConnection \
jurt/com/sun/star/comp/loader/FactoryHelper \
jurt/com/sun/star/comp/loader/JavaLoader \
jurt/com/sun/star/comp/loader/JavaLoaderFactory \
jurt/com/sun/star/comp/loader/RegistrationClassFinder \
jurt/com/sun/star/comp/servicemanager/ServiceManager \
jurt/com/sun/star/comp/urlresolver/UrlResolver \
jurt/com/sun/star/lib/connections/pipe/PipeConnection \
jurt/com/sun/star/lib/connections/pipe/pipeAcceptor \
jurt/com/sun/star/lib/connections/pipe/pipeConnector \
jurt/com/sun/star/lib/connections/socket/ConnectionDescriptor \
jurt/com/sun/star/lib/connections/socket/SocketConnection \
jurt/com/sun/star/lib/connections/socket/socketAcceptor \
jurt/com/sun/star/lib/connections/socket/socketConnector \
jurt/com/sun/star/lib/uno/Proxy \
jurt/com/sun/star/lib/uno/bridges/java_remote/BridgedObject \
jurt/com/sun/star/lib/uno/bridges/java_remote/ProxyFactory \
jurt/com/sun/star/lib/uno/bridges/java_remote/RequestHandler \
jurt/com/sun/star/lib/uno/bridges/java_remote/XConnectionInputStream_Adapter \
jurt/com/sun/star/lib/uno/bridges/java_remote/XConnectionOutputStream_Adapter \
jurt/com/sun/star/lib/uno/bridges/java_remote/java_remote_bridge \
jurt/com/sun/star/lib/uno/environments/java/java_environment \
jurt/com/sun/star/lib/uno/environments/remote/IProtocol \
jurt/com/sun/star/lib/uno/environments/remote/IReceiver \
jurt/com/sun/star/lib/uno/environments/remote/IThreadPool \
jurt/com/sun/star/lib/uno/environments/remote/JavaThreadPool \
jurt/com/sun/star/lib/uno/environments/remote/JavaThreadPoolFactory \
jurt/com/sun/star/lib/uno/environments/remote/Job \
jurt/com/sun/star/lib/uno/environments/remote/JobQueue \
jurt/com/sun/star/lib/uno/environments/remote/Message \
jurt/com/sun/star/lib/uno/environments/remote/NativeThreadPool \
jurt/com/sun/star/lib/uno/environments/remote/ThreadId \
jurt/com/sun/star/lib/uno/environments/remote/ThreadPoolManager \
jurt/com/sun/star/lib/uno/environments/remote/remote_environment \
jurt/com/sun/star/lib/uno/protocols/urp/Cache \
jurt/com/sun/star/lib/uno/protocols/urp/Marshal \
jurt/com/sun/star/lib/uno/protocols/urp/PendingRequests \
jurt/com/sun/star/lib/uno/protocols/urp/Unmarshal \
jurt/com/sun/star/lib/uno/protocols/urp/UrpMessage \
jurt/com/sun/star/lib/uno/protocols/urp/urp \
jurt/com/sun/star/lib/util/AsynchronousFinalizer \
jurt/com/sun/star/lib/util/NativeLibraryLoader \
jurt/com/sun/star/lib/util/StringHelper \
jurt/com/sun/star/lib/util/UrlToFileMapper \
jurt/com/sun/star/uno/AnyConverter \
jurt/com/sun/star/uno/Ascii \
jurt/com/sun/star/uno/AsciiString \
jurt/com/sun/star/uno/MappingException \
jurt/com/sun/star/uno/WeakReference \
)) ))
# vim:set noet sw=4 ts=4: # vim:set noet sw=4 ts=4:

View File

@ -49,7 +49,7 @@ public final class UnoClassLoader extends URLClassLoader {
* Instantiates the root UNO class loader. * Instantiates the root UNO class loader.
* *
* @param base a base URL relative to which the URE JARs * @param base a base URL relative to which the URE JARs
* (<code>java_uno.jar</code>, <code>juh.jar</code>, <code>jurt.jar</code>, * (<code>java_uno.jar</code>, <code>juh.jar</code>,
* <code>ridl.jar</code>) can be found; must not be <code>null</code>. * <code>ridl.jar</code>) can be found; must not be <code>null</code>.
* *
* @param classPath an array of URLs that form the class path of this class * @param classPath an array of URLs that form the class path of this class
@ -191,12 +191,11 @@ public final class UnoClassLoader extends URLClassLoader {
private static URL[] createUrls(URL base, URL[] classPath) private static URL[] createUrls(URL base, URL[] classPath)
throws MalformedURLException throws MalformedURLException
{ {
final int JARS = 4; final int JARS = 3;
URL[] urls = new URL[JARS + (classPath == null ? 0 : classPath.length)]; URL[] urls = new URL[JARS + (classPath == null ? 0 : classPath.length)];
urls[0] = new URL(base, "java_uno.jar"); //TODO get rid of it here urls[0] = new URL(base, "java_uno.jar"); //TODO get rid of it here
urls[1] = new URL(base, "juh.jar"); urls[1] = new URL(base, "juh.jar");
urls[2] = new URL(base, "jurt.jar"); urls[2] = new URL(base, "ridl.jar");
urls[3] = new URL(base, "ridl.jar");
if (classPath != null) { if (classPath != null) {
System.arraycopy(classPath, 0, urls, JARS, classPath.length); System.arraycopy(classPath, 0, urls, JARS, classPath.length);
} }

View File

@ -38,7 +38,7 @@ public final class UnoLoader {
* Executes a UNO JAR. * Executes a UNO JAR.
* *
* @param base a base URL relative to which the URE JARs * @param base a base URL relative to which the URE JARs
* (<code>jurt.jar</code>, <code>ridl.jar</code>, etc.) can be found; must * (<code>ridl.jar</code>, etc.) can be found; must
* not be <code>null</code>. * not be <code>null</code>.
* *
* @param jar the URL of a UNO JAR that specifies a Main-Class; must not be * @param jar the URL of a UNO JAR that specifies a Main-Class; must not be

37
ridljar/util/manifest Normal file
View File

@ -0,0 +1,37 @@
Sealed: false
Name: com/sun/star/comp/bridgefactory/
Sealed: true
Name: com/sun/star/comp/connections/
Sealed: true
Name: com/sun/star/comp/loader/
Sealed: true
Name: com/sun/star/comp/servicemanager/
Sealed: true
Name: com/sun/star/comp/urlresolver/
Sealed: true
Name: com/sun/star/lib/connections/pipe/
Sealed: true
Name: com/sun/star/lib/connections/socket/
Sealed: true
Name: com/sun/star/lib/uno/
Sealed: true
Name: com/sun/star/lib/uno/bridges/java_remote/
Sealed: true
Name: com/sun/star/lib/uno/environments/java/
Sealed: true
Name: com/sun/star/lib/uno/environments/remote/
Sealed: true
Name: com/sun/star/lib/uno/protocols/urp/
Sealed: true

View File

@ -754,7 +754,7 @@ ProfileItem gid_Brand_Profileitem_Fundamental_Ure_More_Java_Types
ProfileID = gid_Brand_Profile_Fundamental_Ini; ProfileID = gid_Brand_Profile_Fundamental_Ini;
Section = "Bootstrap"; Section = "Bootstrap";
Key = "URE_MORE_JAVA_TYPES"; Key = "URE_MORE_JAVA_TYPES";
Value = "${BRAND_BASE_DIR}/" LIBO_SHARE_JAVA_FOLDER "/unoil.jar ${BRAND_BASE_DIR}/" LIBO_SHARE_JAVA_FOLDER "/ScriptFramework.jar ${${$ORIGIN/" PROFILENAME(louno) ":PKG_UserUnoFile}:UNO_JAVA_CLASSPATH} ${${$ORIGIN/" PROFILENAME(louno) ":PKG_SharedUnoFile}:UNO_JAVA_CLASSPATH} ${${$ORIGIN/" PROFILENAME(louno) ":PKG_BundledUnoFile}:UNO_JAVA_CLASSPATH}"; Value = "${BRAND_BASE_DIR}/" LIBO_SHARE_JAVA_FOLDER "/ridl.jar ${BRAND_BASE_DIR}/" LIBO_SHARE_JAVA_FOLDER "/ScriptFramework.jar ${${$ORIGIN/" PROFILENAME(louno) ":PKG_UserUnoFile}:UNO_JAVA_CLASSPATH} ${${$ORIGIN/" PROFILENAME(louno) ":PKG_SharedUnoFile}:UNO_JAVA_CLASSPATH} ${${$ORIGIN/" PROFILENAME(louno) ":PKG_BundledUnoFile}:UNO_JAVA_CLASSPATH}";
End End
ProfileItem gid_Brand_Profileitem_Fundamental_Ure_Java_Jfw_Shared_Data ProfileItem gid_Brand_Profileitem_Fundamental_Ure_Java_Jfw_Shared_Data

View File

@ -11,9 +11,7 @@ $(eval $(call gb_Jar_Jar,HelloWorld))
$(eval $(call gb_Jar_use_jars,HelloWorld,\ $(eval $(call gb_Jar_use_jars,HelloWorld,\
juh \ juh \
jurt \
ridl \ ridl \
unoil \
)) ))
$(eval $(call gb_Jar_add_sourcefiles,HelloWorld,\ $(eval $(call gb_Jar_add_sourcefiles,HelloWorld,\

View File

@ -11,9 +11,7 @@ $(eval $(call gb_Jar_Jar,Highlight))
$(eval $(call gb_Jar_use_jars,Highlight,\ $(eval $(call gb_Jar_use_jars,Highlight,\
juh \ juh \
jurt \
ridl \ ridl \
unoil \
)) ))
$(eval $(call gb_Jar_add_sourcefiles,Highlight,\ $(eval $(call gb_Jar_add_sourcefiles,Highlight,\

View File

@ -11,9 +11,7 @@ $(eval $(call gb_Jar_Jar,MemoryUsage))
$(eval $(call gb_Jar_use_jars,MemoryUsage,\ $(eval $(call gb_Jar_use_jars,MemoryUsage,\
juh \ juh \
jurt \
ridl \ ridl \
unoil \
)) ))
$(eval $(call gb_Jar_add_sourcefiles,MemoryUsage,\ $(eval $(call gb_Jar_add_sourcefiles,MemoryUsage,\

View File

@ -11,9 +11,7 @@ $(eval $(call gb_Jar_Jar,ScriptFramework))
$(eval $(call gb_Jar_use_jars,ScriptFramework,\ $(eval $(call gb_Jar_use_jars,ScriptFramework,\
juh \ juh \
jurt \
ridl \ ridl \
unoil \
)) ))
$(eval $(call gb_Jar_set_componentfile,ScriptFramework,scripting/java/ScriptFramework,OOO)) $(eval $(call gb_Jar_set_componentfile,ScriptFramework,scripting/java/ScriptFramework,OOO))

View File

@ -11,9 +11,7 @@ $(eval $(call gb_Jar_Jar,ScriptProviderForBeanShell))
$(eval $(call gb_Jar_use_jars,ScriptProviderForBeanShell,\ $(eval $(call gb_Jar_use_jars,ScriptProviderForBeanShell,\
juh \ juh \
jurt \
ridl \ ridl \
unoil \
ScriptFramework \ ScriptFramework \
)) ))

View File

@ -11,9 +11,7 @@ $(eval $(call gb_Jar_Jar,ScriptProviderForJava))
$(eval $(call gb_Jar_use_jars,ScriptProviderForJava,\ $(eval $(call gb_Jar_use_jars,ScriptProviderForJava,\
juh \ juh \
jurt \
ridl \ ridl \
unoil \
ScriptFramework \ ScriptFramework \
)) ))

View File

@ -11,9 +11,7 @@ $(eval $(call gb_Jar_Jar,ScriptProviderForJavaScript))
$(eval $(call gb_Jar_use_jars,ScriptProviderForJavaScript,\ $(eval $(call gb_Jar_use_jars,ScriptProviderForJavaScript,\
juh \ juh \
jurt \
ridl \ ridl \
unoil \
ScriptFramework \ ScriptFramework \
)) ))

View File

@ -14,16 +14,12 @@ $(eval $(call gb_Jar_set_manifest,TestExtension,$(SRCDIR)/smoketest/com/sun/star
$(eval $(call gb_Jar_add_manifest_classpath,TestExtension,\ $(eval $(call gb_Jar_add_manifest_classpath,TestExtension,\
juh.jar \ juh.jar \
jurt.jar \
ridl.jar \ ridl.jar \
unoil.jar \
)) ))
$(eval $(call gb_Jar_use_jars,TestExtension,\ $(eval $(call gb_Jar_use_jars,TestExtension,\
juh \ juh \
jurt \
ridl \ ridl \
unoil \
)) ))
$(eval $(call gb_Jar_set_packageroot,TestExtension,com)) $(eval $(call gb_Jar_set_packageroot,TestExtension,com))

View File

@ -23,7 +23,6 @@ $(eval $(call gb_Jar_set_packageroot,smoketest,org))
$(eval $(call gb_Jar_use_jars,smoketest, \ $(eval $(call gb_Jar_use_jars,smoketest, \
juh \ juh \
ridl \ ridl \
unoil \
)) ))
# vim: set noet sw=4 ts=4: # vim: set noet sw=4 ts=4:

View File

@ -378,7 +378,7 @@ endef
define gb_CppunitTest_use_java_ure define gb_CppunitTest_use_java_ure
$(call gb_CppunitTest_get_target,$(1)) : JAVA_URE := $(true) $(call gb_CppunitTest_get_target,$(1)) : JAVA_URE := $(true)
$(call gb_CppunitTest_get_target,$(1)) : \ $(call gb_CppunitTest_get_target,$(1)) : \
$(foreach jar,java_uno juh jurt unoil unoloader,$(call gb_Jar_get_target,$(jar))) \ $(foreach jar,java_uno juh ridl unoloader,$(call gb_Jar_get_target,$(jar))) \
$(call gb_Library_get_target,affine_uno_uno) \ $(call gb_Library_get_target,affine_uno_uno) \
$(call gb_Library_get_target,java_uno) \ $(call gb_Library_get_target,java_uno) \
$(call gb_Library_get_target,jpipe) \ $(call gb_Library_get_target,jpipe) \

View File

@ -89,7 +89,7 @@ $(call gb_Jar_get_target,$(1)) :
endef endef
# resets scoped variables (see explanations where they are set) # resets scoped variables (see explanations where they are set)
# creates a class set and a dependency to it # creates a class set and a dependency to it
# registers target and clean target # registers target and clean target
# adds jar files to DeliverLogTarget # adds jar files to DeliverLogTarget
define gb_Jar_Jar define gb_Jar_Jar
@ -250,7 +250,7 @@ define gb_Jar_use_external_project
$(call gb_JavaClassSet_use_external_project,$(call gb_Jar_get_classsetname,$(1)),$(2)) $(call gb_JavaClassSet_use_external_project,$(call gb_Jar_get_classsetname,$(1)),$(2))
endef endef
# possible directories for jar files containing UNO services # possible directories for jar files containing UNO services
gb_Jar_COMPONENTPREFIXES := \ gb_Jar_COMPONENTPREFIXES := \
OOO:vnd.sun.star.expand:\dLO_JAVA_DIR/ \ OOO:vnd.sun.star.expand:\dLO_JAVA_DIR/ \
URE:vnd.sun.star.expand:\dURE_INTERNAL_JAVA_DIR/ \ URE:vnd.sun.star.expand:\dURE_INTERNAL_JAVA_DIR/ \

View File

@ -117,6 +117,12 @@ $(call gb_JunitTest_get_target,$(1)) : T_CP := $$(T_CP)$$(gb_CLASSPATHSEP)$(call
endef endef
define gb_JunitTest_add_classpath
$(call gb_JavaClassSet_add_classpath,$(call gb_JunitTest_get_classsetname,$(1)),$(2))
$(call gb_JunitTest_get_target,$(1)) : T_CP := $$(T_CP)$$(gb_CLASSPATHSEP)$(2)
endef
define gb_JunitTest_use_system_jar define gb_JunitTest_use_system_jar
$(call gb_JavaClassSet_use_system_jar,$(call gb_JunitTest_get_classsetname,$(1)),$(2)) $(call gb_JavaClassSet_use_system_jar,$(call gb_JunitTest_get_classsetname,$(1)),$(2))
@ -155,10 +161,8 @@ endef
define gb_JunitTest_use_unoapi_jars define gb_JunitTest_use_unoapi_jars
$(eval $(call gb_JunitTest_use_jars,$(1),\ $(eval $(call gb_JunitTest_use_jars,$(1),\
OOoRunner \ OOoRunner \
jurt \
ridl \ ridl \
test \ test \
unoil \
)) ))
endef endef

View File

@ -16,9 +16,7 @@ $(eval $(call gb_Jar_set_manifest,mediawiki,$(SRCDIR)/swext/mediawiki/src/com/su
$(eval $(call gb_Jar_use_jars,mediawiki,\ $(eval $(call gb_Jar_use_jars,mediawiki,\
juh \ juh \
jurt \
ridl \ ridl \
unoil \
)) ))
$(eval $(call gb_Jar_add_sourcefiles,mediawiki,\ $(eval $(call gb_Jar_add_sourcefiles,mediawiki,\

View File

@ -39,7 +39,7 @@ $(testtools_BRIDGEDIR)/bridgetest_server$(testtools_BATCHSUFFIX) :| $(testtools_
$(if $(filter-out WNT,$(OS)),chmod +x $@) $(if $(filter-out WNT,$(OS)),chmod +x $@)
testtools_MY_CLASSPATH := $(call gb_Jar_get_target,ridl)$(gb_CLASSPATHSEP)$(call gb_Jar_get_target,java_uno)$(gb_CLASSPATHSEP)$(call gb_Jar_get_target,jurt)$(gb_CLASSPATHSEP)$(call gb_Jar_get_target,juh) testtools_MY_CLASSPATH := $(call gb_Jar_get_target,ridl)$(gb_CLASSPATHSEP)$(call gb_Jar_get_target,java_uno)$(gb_CLASSPATHSEP)$(call gb_Jar_get_target,juh)
$(testtools_BRIDGEDIR)/bridgetest_javaserver$(testtools_BATCHSUFFIX) :| $(testtools_BRIDGEDIR)/.dir $(testtools_BRIDGEDIR)/bridgetest_javaserver$(testtools_BATCHSUFFIX) :| $(testtools_BRIDGEDIR)/.dir
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),ECH,1) $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),ECH,1)

View File

@ -10,7 +10,6 @@
$(eval $(call gb_Jar_Jar,testComponent)) $(eval $(call gb_Jar_Jar,testComponent))
$(eval $(call gb_Jar_use_jars,testComponent,\ $(eval $(call gb_Jar_use_jars,testComponent,\
jurt \
ridl \ ridl \
juh \ juh \
)) ))

View File

@ -22,7 +22,6 @@ $(eval $(call gb_JunitTest_use_jars,toolkit_complex,\
OOoRunner \ OOoRunner \
ridl \ ridl \
test \ test \
unoil \
)) ))
$(eval $(call gb_JunitTest_add_sourcefiles,toolkit_complex,\ $(eval $(call gb_JunitTest_add_sourcefiles,toolkit_complex,\

View File

@ -1,3 +1,3 @@
Manifest-Version: 1.0 Manifest-Version: 1.0
Main-Class: AccessibilityWorkBench Main-Class: AccessibilityWorkBench
Class-Path: classes.jar ridl.jar unoil.jar jurt.jar juh.jar java_uno.jar xt.jar xml-apis.jar Class-Path: classes.jar ridl.jar juh.jar java_uno.jar xt.jar xml-apis.jar

View File

@ -9,12 +9,8 @@
$(eval $(call gb_Jar_Jar,unoil)) $(eval $(call gb_Jar_Jar,unoil))
$(eval $(call gb_Jar_use_customtargets,unoil,\ $(eval $(call gb_Jar_add_manifest_classpath,unoil, \
unoil/javamaker \ ridl.jar \
))
$(eval $(call gb_Jar_add_packagedirs,unoil,\
$(call gb_CustomTarget_get_workdir,unoil/javamaker)/com \
)) ))
# vim:set noet sw=4 ts=4: # vim:set noet sw=4 ts=4:

View File

@ -13,13 +13,11 @@ $(eval $(call gb_Jar_Jar,test-tools))
$(eval $(call gb_Jar_add_manifest_classpath,test-tools,\ $(eval $(call gb_Jar_add_manifest_classpath,test-tools,\
juh.jar \ juh.jar \
ridl.jar \ ridl.jar \
unoil.jar \
)) ))
$(eval $(call gb_Jar_use_jars,test-tools,\ $(eval $(call gb_Jar_use_jars,test-tools,\
juh \ juh \
ridl \ ridl \
unoil \
)) ))
$(eval $(call gb_Jar_set_packageroot,test-tools,org)) $(eval $(call gb_Jar_set_packageroot,test-tools,org))

View File

@ -13,13 +13,11 @@ $(eval $(call gb_Jar_Jar,test))
$(eval $(call gb_Jar_add_manifest_classpath,test,\ $(eval $(call gb_Jar_add_manifest_classpath,test,\
$(call gb_Helper_make_url,$(call gb_Jar_get_target,juh)) \ $(call gb_Helper_make_url,$(call gb_Jar_get_target,juh)) \
$(call gb_Helper_make_url,$(call gb_Jar_get_target,ridl)) \ $(call gb_Helper_make_url,$(call gb_Jar_get_target,ridl)) \
$(call gb_Helper_make_url,$(call gb_Jar_get_target,unoil)) \
)) ))
$(eval $(call gb_Jar_use_jars,test,\ $(eval $(call gb_Jar_use_jars,test,\
juh \ juh \
ridl \ ridl \
unoil \
OOoRunner \ OOoRunner \
)) ))

View File

@ -186,8 +186,10 @@ functionality that these libraries offer, see the "C++ Reference" section of the
SDK HTML documentation. The corresponding C++ header files are not in the URE, SDK HTML documentation. The corresponding C++ header files are not in the URE,
but rather in the SDK. but rather in the SDK.
- unoloader.jar, juh.jar, jurt.jar, and ridl.jar are the public Java UNO runtime - unoloader.jar, juh.jar, and ridl.jar are the public Java UNO runtime
Java[tm] Archives (JARs) that client code can call. For details on the Java[tm] Archives (JARs) that client code can call (jurt.jar is still provided
for backwards compatibility, but is basically empty and has been merged into
ridl.jar). For details on the
functionality that these files offer, see the "Java UNO Runtime Reference" functionality that these files offer, see the "Java UNO Runtime Reference"
section of the SDK HTML documentation. section of the SDK HTML documentation.

View File

@ -143,7 +143,7 @@ out.pln/class/javamain/test/java/javamain/JavaMain.class: JavaMain.java \
rm -rf out.pln/class/javamain rm -rf out.pln/class/javamain
mkdir out.pln/class/javamain mkdir out.pln/class/javamain
javac -classpath \ javac -classpath \
$(URE_HOME)/program/classes/jurt.jar:$(URE_HOME)/program/classes/ridl.jar:out.pln/tester.jar \ $(URE_HOME)/program/classes/ridl.jar:out.pln/tester.jar \
-sourcepath . -d out.pln/class/javamain $< -sourcepath . -d out.pln/class/javamain $<
@ -194,7 +194,7 @@ out.pln/class/javatest/test/java/javatest/JavaTest.class: JavaTest.java \
rm -rf out.pln/class/javatest rm -rf out.pln/class/javatest
mkdir out.pln/class/javatest mkdir out.pln/class/javatest
javac -classpath \ javac -classpath \
$(URE_HOME)/program/classes/jurt.jar:$(URE_HOME)/program/classes/ridl.jar:out.pln/types.jar \ $(URE_HOME)/program/classes/ridl.jar:out.pln/types.jar \
-sourcepath . -d out.pln/class/javatest $< -sourcepath . -d out.pln/class/javatest $<

View File

@ -21,8 +21,6 @@ $(eval $(call gb_Jar_Jar,commonwizards))
$(eval $(call gb_Jar_use_jars,commonwizards,\ $(eval $(call gb_Jar_use_jars,commonwizards,\
ridl \ ridl \
unoil \
jurt \
juh \ juh \
java_uno \ java_uno \
)) ))

View File

@ -21,8 +21,6 @@ $(eval $(call gb_Jar_Jar,form))
$(eval $(call gb_Jar_use_jars,form,\ $(eval $(call gb_Jar_use_jars,form,\
ridl \ ridl \
unoil \
jurt \
juh \ juh \
java_uno \ java_uno \
commonwizards \ commonwizards \

View File

@ -21,8 +21,6 @@ $(eval $(call gb_Jar_Jar,query))
$(eval $(call gb_Jar_use_jars,query,\ $(eval $(call gb_Jar_use_jars,query,\
ridl \ ridl \
unoil \
jurt \
juh \ juh \
java_uno \ java_uno \
commonwizards \ commonwizards \

View File

@ -21,8 +21,6 @@ $(eval $(call gb_Jar_Jar,report))
$(eval $(call gb_Jar_use_jars,report,\ $(eval $(call gb_Jar_use_jars,report,\
ridl \ ridl \
unoil \
jurt \
juh \ juh \
java_uno \ java_uno \
commonwizards \ commonwizards \

View File

@ -21,8 +21,6 @@ $(eval $(call gb_Jar_Jar,reportbuilderwizard))
$(eval $(call gb_Jar_use_jars,reportbuilderwizard,\ $(eval $(call gb_Jar_use_jars,reportbuilderwizard,\
ridl \ ridl \
unoil \
jurt \
juh \ juh \
java_uno \ java_uno \
commonwizards \ commonwizards \

View File

@ -21,8 +21,6 @@ $(eval $(call gb_Jar_Jar,table))
$(eval $(call gb_Jar_use_jars,table,\ $(eval $(call gb_Jar_use_jars,table,\
ridl \ ridl \
unoil \
jurt \
juh \ juh \
java_uno \ java_uno \
commonwizards \ commonwizards \

View File

@ -18,9 +18,7 @@ $(eval $(call gb_Jar_set_packageroot,XMergeBridge,*.class))
$(eval $(call gb_Jar_use_jars,XMergeBridge,\ $(eval $(call gb_Jar_use_jars,XMergeBridge,\
xmerge \ xmerge \
unoil \
ridl \ ridl \
jurt \
juh \ juh \
)) ))

View File

@ -13,9 +13,7 @@ $(eval $(call gb_Jar_Jar,xmerge))
$(eval $(call gb_Jar_set_manifest,xmerge,$(SRCDIR)/xmerge/source/xmerge/xmerge.mf)) $(eval $(call gb_Jar_set_manifest,xmerge,$(SRCDIR)/xmerge/source/xmerge/xmerge.mf))
$(eval $(call gb_Jar_use_jars,xmerge,\ $(eval $(call gb_Jar_use_jars,xmerge,\
unoil \
ridl \ ridl \
jurt \
juh \ juh \
)) ))