diff options
author | Simon Pepping <spepping@apache.org> | 2007-01-05 21:52:46 +0000 |
---|---|---|
committer | Simon Pepping <spepping@apache.org> | 2007-01-05 21:52:46 +0000 |
commit | d06a824dc26a99683f07233dd814881d626c25f2 (patch) | |
tree | ad1b09075029398dfdcf882424c3b47015e948cd /src/documentation/content/xdocs/trunk/running.xml | |
parent | 78ac99f9e91fab8c3e064d9f8ac5a800b717c8ab (diff) | |
download | xmlgraphics-fop-d06a824dc26a99683f07233dd814881d626c25f2.tar.gz xmlgraphics-fop-d06a824dc26a99683f07233dd814881d626c25f2.zip |
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
Diffstat (limited to 'src/documentation/content/xdocs/trunk/running.xml')
-rw-r--r-- | src/documentation/content/xdocs/trunk/running.xml | 31 |
1 files 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 @@ </section> <section id="standalone-start"> <title>Starting FOP as a Standalone Application</title> + <section id="fop-script"> + <title>Using the fop script or batch file</title> <p> 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. - </p> - <p> - 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 <code>/Library/Java/Home</code>. <strong>Caveat:</strong> @@ -105,11 +103,6 @@ <a href="http://developer.apple.com/java/faq">Java on Mac OSX FAQ</a> for information as it becomes available. </p> - <p> - 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. - </p> <source><![CDATA[ USAGE Fop [options] [-fo|-xml] infile [-xsl file] [-awt|-pdf|-mif|-rtf|-tiff|-png|-pcl|-ps|-txt|-at|-print] <outfile> @@ -172,6 +165,24 @@ Fop [options] [-fo|-xml] infile [-xsl file] [-awt|-pdf|-mif|-rtf|-tiff|-png|-pcl <strong>and</strong> if compatible encryption support is availabe at run time. Currently, only the JCE is supported. Check the <a href="pdfencryption.html">Details</a>. </p> + </section> + <section id="your-own-script"> + <title>Writing your own script</title> + <p>FOP's entry point for your own scripts is the class +<code>org.apache.fop.cli.Main</code>. The general pattern for the + command line is: <code>java -classpath <CLASSPATH> + org.apache.fop.cli.Main <arguments></code>. 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. + </p> + <p> + 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. + </p> + </section> </section> <section id="check-input"> <title>Using Xalan to Check XSL-FO Input</title> |