FOray
|
Building FOray
IntroductionBefore building FOray from source code, make sure that you need to. Unless you need access to source code or to an unreleased feature, you probably just need to download a FOray binary distribution. Downloading Source CodeFOray source code can be obtained two ways:
Setting Up Your EnvironmentIn order to successfully build FOray, you must have the following items installed on your system:
Before running the build scripts, you must tell them about your environment. Set and export the following environment variables:
Run the Build ScriptThe actual build process can be started from foray/scripts/build.sh (for Unix/Linux) or foray/scripts/build.bat (for Windows). The results of the build can be found in foray/build/ant/. Most IDEs also have mechanisms for running Ant build scripts. Building a Subset of FOrayMost FOray users will want to build and use the entire product, which is the default of the build script. However, some software developers may wish to use a subset of FOray in their "lib". For example, a project might wish to use FOray's font and fotree systems, but want to use non-FOray modules for everthing else. The FOray build system allows the modules to be built in any combination, automatically including all FOray dependencies. To use this feature, select the "clean" target first, followed by the names of the module(s) that you wish to include in the build, then followed by the "package" target. So for the example above, run "ant clean font fotree package". The module targets available are: common, xml, ps, graphic, mif, font, hyphen, text, pdf, fotree, areatree, output, layout, pioneer, render, core, app. For more information on the meaning of these targets, see Modules. When a subset is built, the resulting jar file includes the word "subset" in its name. In all cases, the jar manifest includes a list of the modules that were included in the build, in a heading entitled "FOray-Modules". Note that if a subset is built, some FOray lib entries may not be needed. |