From d06a824dc26a99683f07233dd814881d626c25f2 Mon Sep 17 00:00:00 2001 From: Simon Pepping Date: Fri, 5 Jan 2007 21:52:46 +0000 Subject: [PATCH] Documenting FOP's entry point for user written scripts git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@493202 13f79535-47bb-0310-9956-ffa450edef68 --- .../content/xdocs/trunk/running.xml | 31 +++++++++++++------ 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/src/documentation/content/xdocs/trunk/running.xml b/src/documentation/content/xdocs/trunk/running.xml index 8cc0fe280..ec82feb72 100644 --- a/src/documentation/content/xdocs/trunk/running.xml +++ b/src/documentation/content/xdocs/trunk/running.xml @@ -89,14 +89,12 @@
Starting FOP as a Standalone Application +
+ Using the fop script or batch file

The usual and recommended practice for starting FOP from the command line is to run the batch file fop.bat (Windows) or the shell script fop (Unix/Linux). - If you write your own scripts, be sure to review these standard scripts to make sure that - you get your environment properly configured. -

-

- The standard scripts for starting FOP require that the environment variable JAVA_HOME be + These scripts require that the environment variable JAVA_HOME be set to a path pointing to the appropriate Java installation on your system. Macintosh OSX includes a Java environment as part of its distribution. We are told by Mac OSX users that the path to use in this case is /Library/Java/Home. Caveat: @@ -105,11 +103,6 @@ Java on Mac OSX FAQ for information as it becomes available.

-

- As an alternative to the start scripts you can run "java -jar build/fop.jar" in which case - FOP tries to build the classpath for running FOP dynamically. Please note, that this might - not always work as expected. -

@@ -172,6 +165,24 @@ Fop [options] [-fo|-xml] infile [-xsl file] [-awt|-pdf|-mif|-rtf|-tiff|-png|-pcl and if compatible encryption support is availabe at run time. Currently, only the JCE is supported. Check the Details.

+
+
+ Writing your own script +

FOP's entry point for your own scripts is the class +org.apache.fop.cli.Main. The general pattern for the + command line is: java -classpath <CLASSPATH> + org.apache.fop.cli.Main <arguments>. The arguments + consist of the options and infile and outfile specifications + as shown above for the standard scripts. You may wish to review + the standard scripts to make sure that + you get your environment properly configured. +

+

+ As an alternative to the start scripts you can run "java -jar build/fop.jar" in which case + FOP tries to build the classpath for running FOP dynamically. Please note, that this might + not always work as expected. +

+
Using Xalan to Check XSL-FO Input -- 2.39.5