Kaydet (Commit) a5c7c96f authored tarafından Vladimir Glazounov's avatar Vladimir Glazounov

INTEGRATION: CWS scriptingf9 (1.2.22); FILE MERGED

2004/11/24 15:00:49 toconnor 1.2.22.1: #i36937# remove out of date README and update toplevel README
üst c4b9b715
/home/al91857/scripting/clean2/scripting/unxsols3.pro/lib:/home/al91857/scripting/clean2/scripting/workben/cppunit/unxsols3/lib:/export/home/j2sdk1.4.1/jre/lib/sparc:/export/home/j2sdk1.4.1/jre/lib/sparc/client:/export/home/j2sdk1.4.1/jre/lib/sparc/native_threads:.:/usr/dt/lib:/usr/openwin/lib:/scde/webtop/re/SRX643/src.u/solenv/unxsols3.pro/lib:/usr/local/lib:/home/al91857/SRX643/unxsols3.pro/lib:../lib:/scde/webtop/re/SRX643/src.u/solenv/unxsols3.pro/lib:/scde/webtop/re/SRX643/unxsols3.pro/lib.u This module provides the source code for the Scripting Framework. For
From a clean CVS more information on the Scripting Framework, see the project web page:
you get 3 projects (the following order is the build order): http://framework.openoffice.org/scripting/
- offapi
- unoil Source Code Structure
- scripting =====================
You need to set your environment: The following directories contain the source code currently used
/scde/webtop/re/bin/solarisenv.sh -s src663 by the Scripting Framework:
you get two files called src663_sols.set and src663_sols.set.sh
- source/provider
*NOTE: The workspace number increments every fornight, as of 22/08/02, SRC663
is current, SRC664 in prepration C++ source for the implementations of the com.sun.star.script.provider.*
and com.sun.star.script.browse.* UNO types. These types are used for
run a tcsh shell and source srx643_sols.set browsing and executing scripts.
setenv OFFICE_PROGRAM_PATH to your {StarOffice/OpenOffice}/program directory
setenv APPLICAT to your $OFFICE_PROGRAM_PATH/applicat.rdb - source/protocolhandler
you need to set your LD_LIBRARY_PATH:
setenv LD_LIBRARY_PATH `$OFFICE_PROGRAM_PATH/javaldx`:$LD_LIBRARY_PATH C++ for a ProtocolHandler implementation that handles vnd.sun.star.script
setenv CLASSPATH {full_path}/scripting/util/xerces.jar:{full_path}/unoil/unxsols3.pro/class/unoil.jar: URIs and dispatches them for execution to the Scripting Framework.
$OFFICE_PROGRAM_PATH/classes/jut.jar:$OFFICE_PROGRAM_PATH/classes/java_uno.jar:
$OFFICE_PROGRAM_PATH/classes/ridl.jar:$OFFICE_PROGRAM_PATH/classes/jurt.jar:$OFFICE_PROGRAM_PATH/classes/juh.jar - source/basprov
then you can start to build. C++ implementation of the LanguageScriptProvider UNO service for Basic
cd offapi; build
cd unoil; build - source/dlgprov
Before building the scripting project, you need to merge the applicat.rdb C++ implementation of the DialogProvider UNO service used for loading
cd offapi/unxsols3.pro/ucr UNO dialogs from various languages
regmerge $APPLICAT / offapi.db
- java/com/sun/star/script/framework/provider
cd scripting; build
this should build everything. If you want to build just some project just go to the directory and type Implementation of an abstract base class ScriptProvider which provides
dmake. core methods for implementing Java based LanguageScriptProvider implemetations
you might have to do some extra dmake as the build is not correct. - java/com/sun/star/script/framework/provider/*
cd java
dmake BeanShell, JavaScript and Java LanguageScriptProvider implementations
cd source/scripturi
dmake - java/com/sun/star/script/framework/browse/*
cd source/storage
dmake BrowseNode implementations for the Java based LanguageScriptProviders
Then after everything build you need to register all component into the applicat.rdb - java/com/sun/star/script/framework/io
- java/com/sun/star/script/framework/container
cd scripting/unxsols3.pro/lib
ls Classes for performing script IO
libprovider.so libscripturi.so libruntimemgr.so libstorage.so
libprovider.lib libscripturi.lib libruntimemgr.lib libstorage.lib - examples
for each of the .so files run that command. Example scripts in BeanShell, JavaScript, Java and Python
regcomp -register -br $APPLICAT -c file://{full_path}/scripting/unxsols3.pro/lib/libprovider.so
output: Deprecated Code
register component "file://{full_path}/scripting/unxsols3.pro/lib/libruntimemgr.so" ===============
in registry "/export/home/OpenOffice.org1.0/program/applicat.rdb" succesful!
- java/org/openoffice/*
Then registering Java components
Support for developing scripts in IDEs such as NetBeans.
cd scripting/unxsols3/class
ls - source/pyprov
ScriptRuntimeForJava.jar StorageProxy.jar
regcomp -register -br $APPLICAT -c file://{full_path}/scripting/unxsols3.pro/class/ScriptRuntimeForJava.jar LanguageScriptProvider for Python
-l com.sun.star.loader.java2
or - source/storage
java -classpath $CLASSPATH com.sun.star.tools.uno.RegComp $APPLICAT register file://{full_path}/unxsols3.pro/class/ScriptRuntimeForJava.jar com.sun.star.loader.Java2 - source/runtimemgr
you can then run some test to check if everything is OK: Implementations of deprecated Scripting Framework UNO types
cd scripting/workben/test/provider
dmake
before running it you need to read the README File in that directory.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment