|
|
Building the Scripting Framework for OpenOffice.orgContents
Pre-requisites
Setting up build environmentIf you have not configured your environment with Java and Ant, please re-run the configure script from the config_office project including the options --with-jdk-home=<JAVA_HOME> --with-ant-home=<ANT_HOME> and source or run the environment set-up script. See the Tools project homepage for details. If configure can not find Ant, after you have sourced or run the environment set-up script, you may need to add all jarfiles under <ANT_HOME>/lib to your $CLASSPATH. Making Scripting Framework Services and Interfaces availableIf you only have solvers, you will need to checkout the following modules on a tag that is appropriate to the release you are building for (eg. OO1.1beta)
The Scripting Framework is work-in-progress. For this reason it is not included in the main OpenOffice build & install set. Thus, at this moment it is necessary to make several patches to the sources & build a separate install set for the Scripting Framework. It is intended that at some point in the future the Scripting Framework will be integrated into OpenOffice. Since we will be modifying these projects, it is a good idea to backup your unoil and offapi modules and then checkout the following with the tag SF-OO644_ED02_1
You will need to modify the offapi and unoil modules so that the services and interfaces for scripting are available. offapi module
unoil module
Building the Scripting Framework modulescripting module
Building
Automated InstallerIn scripting/workben there is an ANT build.xml file for compiling the examples installer, creating the UNO package, and creating a Jar file for an automated install. Running dmake in the scripting/workben directory should result in the creation of the SFrameworkInstall.jar in the directory under the output directory appriate for your platform (eg. wntmsci9.pro). Manual Installation of the Scripting FrameworkThe use of the automated installer, written in Java, is recommended, unless you're on a platform other than Solaris/SPARC, Linux/x86, Windows! It is recommended that even on such a platform that every effort should be made to get the installer to work. If this isn't possible the following is the set of steps needed to manually install the framework. The first stage in the manual installation is to build the UNO package containing the libraries & Jar files.
The next stage is to take the UNO packages and install them in an OpenOffice installation.
The next stage is to install the Starbasic dialogs, configuration files and example scripts.
The script framework is now installed.
|


