Building the Scripting 枠組み for OpenOffice.org
Contents
Building Scripting 枠組み
取り付け・設備
Pre-requisites
JDK1.3 or greater
ANT which is 利用できる from http://ant.apache.org/bindownload.cgi
十分な OO1.1beta or later solver and 取り付け・設備 始める,決める
OO1.1beta or later OpenOffice build 環境
bsh-1.2b7.jar 利用できる from http://www.beanshell.org/download.html
NetBeans IDE - this is 現在/一般に needed for the build (unless you 修正する one of the makefiles. It is ーするつもりであるd to develop a makefile that will (悪事,秘密などを)発見する the presence or absence of the NetBeans IDEand 反応する accordingly)
Setting up build 環境
If you have not configured your 環境 with Java and Ant, please re-run the configure script from the config_office 事業/計画(する) 含むing the 選択s --with-jdk-home=<JAVA_HOME> --with-ant-home=<ANT_HOME> and source or run the 環境 始める,決める-up script. See the 道具s 事業/計画(する) homepage for 詳細(に述べる)s.
If configure can not find Ant, after you have sourced or run the 環境 始める,決める-up script, you may need to 追加する all jarfiles under <ANT_HOME>/lib to your $CLASSPATH.
Making Scripting 枠組み Services and Interfaces 利用できる
If you only have solvers, you will need to checkout the に引き続いて modules on a tag that is appropriate to the 解放(する) you are building for (eg. OO1.1beta)
unoil
offapi
The Scripting 枠組み is work-in-進歩. For this 推論する/理由 it is not 含むd in the main OpenOffice build & 任命する/導入する 始める,決める. Thus, at this moment it is necessary to make several patches to the sources & build a separate 任命する/導入する 始める,決める for the Scripting 枠組み. It is ーするつもりであるd that at some point in the 未来 the Scripting 枠組み will be 統合するd into OpenOffice. Since we will be 修正するing these 事業/計画(する)s, it is a good idea to backup your unoil and offapi modules and then checkout the に引き続いて with the tag SF-OO644_ED02_1
scripting
unoil/草案s/com/sun/星/主役にする/script/枠組み (草案s/com/sun/星/主役にする/script/枠組み,needs to be in the unoil module)
offapi/草案s/com/sun/星/主役にする/script/枠組み (草案s/com/sun/星/主役にする/script/枠組み,needs to be in the offapi module)
You will need to 修正する the offapi and unoil modules so that the services and interfaces for scripting are 利用できる.
offapi module
確実にする that you have the 草案s/com/sun/星/主役にする/script/枠組み directory under the offapi module, if you don't, you will need to check it out from CVS with the tag SF-OO644_ED02_1
修正する the prj/build.lst, you will need to 追加する the に引き続いて lines
oa offapi\草案s\com\sun\星/主役にする\script\枠組み\runtime nmake - all oa_scriptfruntime_drafts NULL
oa offapi\草案s\com\sun\星/主役にする\script\枠組み\安全 nmake - all oa_sfsecurity_drafts NULL
oa offapi\草案s\com\sun\星/主役にする\script\枠組み\provider nmake - all oa_sfprovider_drafts NULL
oa offapi\草案s\com\sun\星/主役にする\script\枠組み\貯蔵 nmake - all oa_sfstorage_drafts NULL
and 追加する "oa_scriptfruntime_drafts oa_sfsecurity_drafts oa_sfprovider_drafts oa_sfstorage_drafts" to the last line before "NULL"
修正する the prj/d.lst, you will need to 追加する the に引き続いて line
..\%__SRC%\ucr\ScriptFramework.rdb %_DEST%\貯蔵所%_EXT%\ScriptFramework.rdb after the line:
..\%__SRC%\ucr\offapi.db %_DEST%\貯蔵所%_EXT%\offapi.rdb修正する the util/makefile.mk and 追加する the に引き続いて to UNOIDLDBFILES 名簿(に載せる)/表(にあげる)
$(UCR)$/dcssscriptfruntime.db \
$(UCR)$/dcsssfprovider.db \
$(UCR)$/dcsssfsecurity.db \
$(UCR)$/dcsssfstorage.db
- 修正する the util/makefile.mk and 追加する the に引き続いて line to the 的 $(UCR)$/types.db
+$(REGMERGE) $(UCR)$/ScriptFramework.rdb / $(UCR)$/dcssscriptfruntime.db $(UCR)$/dcsssfprovider.db $(UCR)$/dcsssfsecurity.db $(UCR)$/dcsssfstorage.db
unoil module
修正する prj/build.lst
追加する ul_scriptf_drafts to the last line before NULL
The line should now look something like this
ul unoil\草案s\com\sun\星/主役にする\script\枠組み nmake - all ul_scriptf_drafts ul_ucb ul_frame ul_ucb NULL
Building the Scripting 枠組み module
scripting module
修正する java/build.env to point to the point to beanshell bsh-1.2b7.jar, ( see 任命する/導入する.dir 入ること/参加(者) in build.env )
Assuming you have NetBeans 任命する/導入するd, 修正する the java/build.env to point at the NetBeans 取り付け・設備 (see the openide.class.path 入ること/参加(者) in the build.xml for more 詳細(に述べる)s).
Alternatively, if you do not wish to build the 追加する-in, 削除する the に引き続いて 入ること/参加(者)s from the depends section of the 的 "all" in the build.xml
No NetBeans 追加する-in
localoffice.jar
netbeans.jar
Building
遂行する/発効させる build and 配達する in the offapi module
遂行する/発効させる build and 配達する in the unoil module
遂行する/発効させる build in the scripting module
自動化するd Installer
In scripting/workben there is an ANT build.xml とじ込み/提出する for 収集するing the examples installer, creating the UNO 一括, and creating a Jar とじ込み/提出する for an 自動化するd 任命する/導入する. Running dmake in the scripting/workben directory should result in the 創造 of the SFrameworkInstall.jar in the directory under the 生産(高) directory appriate for your 壇・綱領・公約 (eg. wntmsci9.プロの/賛成の).
手動式の 取り付け・設備 of the Scripting 枠組み
The use of the 自動化するd installer, written in Java, is recommended, unless you're on a 壇・綱領・公約 other than Solaris/SPARC, Linux/x86, Windows! It is recommended that even on such a 壇・綱領・公約 that every 成果/努力 should be made to get the installer to work. If this isn't possible the に引き続いて is the 始める,決める of steps needed to manually 任命する/導入する the 枠組み. The first 行う/開催する/段階 in the 手動式の 取り付け・設備 is to build the UNO 一括 含む/封じ込めるing the libraries & Jar とじ込み/提出するs.
Create a two directories ($pkgsf) for scripting 枠組み and ($pkgbs) from beanshell support.
Create directories called $pkgsf/<PLATFORM>.plt and $pkgsf/skip_registration (Where <PLATFORM> is like linux_x86)
NOTE: A 名簿(に載せる)/表(にあげる) of supported directories is 利用できる in the source とじ込み/提出する desktop/source/pkgchk/pkgchk_packages.cxx, you may need to 修正する this, if your 壇・綱領・公約 is not supportedCopy in the libraries from scripting/<壇・綱領・公約>/lib to $pkgsf/<PLATFORM>.plt
Copy in ScriptRuntimeForJava.jar from scripting/<壇・綱領・公約>/class into the 最高の,を越す level directory, $pkgsf
Copy in unoil.jar from $pkgsf/unoil/<壇・綱領・公約>/class to $pkgsf/skip_registration directory
Copy ScriptRuntimeForBeanShell.jar from scripting/<壇・綱領・公約>/class to $pkgbs
Copy bsh-1.2b7.jar, 利用できる from http://www.beanshell.org/download.html to $pkgbs/skip_registration directory.
Copy ScriptFramework.rdb from offapi/<壇・綱領・公約>/ucr/ScriptFramework.rdb to $pkgsf
Copy ProtocolHandler.xcu from scripting/workben/installer/ to $pkgsf
Now, zip up all とじ込み/提出するs in directory, $pkgsf to ooscriptf.zip
Now, zip up all とじ込み/提出する in directory, $pkgbs to bshruntime.zip
The next 行う/開催する/段階 is to take the UNO 一括s and 任命する/導入する them in an OpenOffice 取り付け・設備.
Copy the zips とじ込み/提出する into your OpenOffice 取り付け・設備 under the 使用者/uno_packages directory
In the program directory, run pkgchk on each of the zip とじ込み/提出するs
The next 行う/開催する/段階 is to 任命する/導入する the Starbasic dialogs, configuration とじ込み/提出するs and example scripts.
Create a directory ScriptBindingLibrary, from the directory scripting/workben/binding copy the に引き続いて とじ込み/提出するs to ScriptBindingLibrary, dialog.xlb, HelpBinding.xdl, MenuBinding.xdl, script.xlb, EventsBinding.xdl, KeyBinding.xdl, ScriptBinding.xba
Copy ScriptBindingLibrary directory and its contents to <OpenOffice path>/使用者/basic directory.
挿入する the に引き続いて lines into <OpenOffice path>/使用者/basic/script.xlc ( 挿入する these lines すぐに above the 入ること/参加(者) for the 基準 library)
<library:library library:指名する="ScriptBindingLibrary" xlink:href="とじ込み/提出する:://<OpenOffice path>使用者/basic/ScriptBindingLibrary/script.xlb/" xlink:type="simple" library:link="誤った"/>
挿入する this に引き続いて lines into <OpenOffice path>/使用者/basic/dialog.xlc ( 挿入する these lines すぐに above the 入ること/参加(者) for the 基準 library)
<library:library library:指名する="ScriptBindingLibrary" xlink:href="とじ込み/提出する://<OpenOffice path>/使用者/basic/ScriptBindingLibrary/dialog.xlb/" xlink:type="simple" library:link="誤った"/>
Create a Scripts directory, create sub-directories java and beanshell in Scripts directory. Create sub directories MemoryUsage, InteractiveBeanShell in the beanshell directory. Copy the contents of each of the scripting/examples/beanshell directories into the newly created directories. Create sub directories 最高潮の場面, MemoryUsage and ScriptFrmwrkHelper in the java directory. Using the (米)棚上げする/(英)提議するs below 居住させる the java directory with the appropriate とじ込み/提出するs ( make sure to 改名する とじ込み/提出するs where necessary )
Source (scripting/examples/java)
目的地 とじ込み/提出する
HighlightTextParcel.xml
<OpenOffice Path>/使用者/Scripts/java/最高潮の場面/小包-descriptor.xml
HighlightUtil.java
<OpenOffice Path>/使用者/Scripts/java/最高潮の場面/HighlightUtil.java
HighlightText.java
<OpenOffice Path>/使用者/Scripts/java/最高潮の場面/HighlightText.java
MemoryUsage.java
<OpenOffice Path>/使用者/Scripts/java/MemoryUsage/MemoryUsage.java
MemoryUsageParcel.xml
<OpenOffice Path>/使用者/Scripts/java/MemoryUsage/小包-descriptor.xml
ScriptFrmwrkHelper.java
<OpenOffice Path>/使用者/Scripts/java/ScriptFrmwrkHelper/ScriptFrmwrkHelper.java
ScriptFrameWkHelperParcel.xml
<OpenOffice Path>/使用者/Scripts/java/ScriptFrmwrkHelper/小包-descriptor.xml
Build example and 枠組み helper scripts. Create a classpath with the に引き続いて jars <SOLVERPATH>/<壇・綱領・公約>/貯蔵所/unoil.jar,<SOLVERPATH>/<壇・綱領・公約>/貯蔵所/jurt.jar, <SOLVERPATH>/<壇・綱領・公約>/貯蔵所/jut.jar, <SOLVERPATH>/<壇・綱領・公約>/貯蔵所/java_uno.jar, <SOLVERPATH>/<壇・綱領・公約>/貯蔵所/ridl.jar, <SOLVERPATH>/<壇・綱領・公約>/貯蔵所/sandbox.jar. Change directory to 最高潮の場面, MemoryUsage and ScriptFrmwrkHelper in turn, building all java とじ込み/提出するs in each one. Jar up the class とじ込み/提出するs in each directory creating ScriptFrmwrkHelper.jar in ScriptFrmwrkHelper, 最高潮の場面.jar in 最高潮の場面 and finally MemUsage.jar in MemoryUsage.
Copy the entire Scripts directory 階層制度 to <OpenOffice Path>/使用者/
任命する/導入する the configuration とじ込み/提出するs. Firstly backup any config とじ込み/提出するs ( *.xml ) 現在の in the <OpenOffice Path>/使用者/config/soconfig directory ( 含むing sub-directories ). Copy all とじ込み/提出するs with “.xml” extention ( except manifest.xml ) from scripting/workben/bindings to <OpenOffice Path>/使用者/config/soconfig. If <OpenOffice Path>/使用者/config/soconfig/META-中距離核戦力 directory doesn't 存在する create it. Copy manifest.xml from directory scripting/workben/bindings to <OpenOffice Path>/使用者/config/soconfig/META-中距離核戦力 directory.
The script 枠組み is now 任命する/導入するd.
取り付け・設備, 使用者 or Developer queries on the Office Scripting 枠組み |
|
問題/発行するs |
問題/発行するs 設立する in the Office Scripting 枠組み should be logged
in Issuezilla |