You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. I'm building this test environment using jikes and optionally javac.
  2. No ant.
  3. The files are compiled in the source tree and the classes are
  4. collected under the build directory. Although I have a minimal
  5. requirement as yet for any of the support facilities that are provided
  6. by the ant construction of the build sources, any that are required,
  7. like setting version information, are done manually in the files under
  8. the build directory.
  9. Checkout the FOP_0-20-0_Alt-Design tag from CVS, which now includes
  10. xalan and xerces.
  11. To build, set the environment variables FOPDEV and JAVA_HOME.
  12. JAVA_HOME should be the directory under which the jre directory
  13. resides. I have been compiling with the IBM 1.3 jdk under linux.
  14. FOPDEV is the path to the xml-fop directory under which src and build
  15. reside. Then source the following files, found in the xml-fop/bin
  16. directory, in order
  17. . bin/.path.functions
  18. . bin/fopdevenv
  19. These are designed as Bourne and up shell files. Unix only, I'm
  20. afraid.
  21. The fopcomp script (found in the bin directory) is designed to execute
  22. from anywhere in the source tree where .java files may be found.
  23. Make sure fopcomp is accessible via your PATH. Then, e.g.,
  24. cd src/org/apache/fop/apps
  25. fopcomp Fop.java
  26. Because the properties classes, and many of the FO classes, are never
  27. named in the source, files in these directories must be specifically
  28. compiled. The Dummy class in org/apache/fop/fo/properties and
  29. org/apache/fop/fo/flow exists to facilitate this. They may be
  30. compiled directly, or invoked indirectly by compiling with fopcompall
  31. instead of fopcomp.
  32. Note that, for now, the files from the conf directory are also
  33. installed in the build/classes conf directory. This messiness
  34. will be cleaned up when I get to the point of setting up an
  35. ant build environment.
  36. Running.
  37. Firstly, fix build/classes/conf/userconfig.xml. It has examples of
  38. command-line override values specific to my environment. Sorry
  39. about that.
  40. N.B. As at the time of integrating this experimental code into the
  41. CVS tree, running may well throw an exception. The code has not yet
  42. been comprehensively tested. If you do see an exception, please send
  43. the fo file to me.
  44. The code doesn't do much as yet, but to see what it does get up to, I
  45. use the extensions I have made to the config functionality.
  46. userconfig.xml is duly noted as the default user config file in
  47. config.xml. In userconfig.xml I put my input mode, input file name
  48. and output file name. Everything except fo->pdf has been stripped
  49. away at this stage, but it still has to be specified. See
  50. build/conf/userconfig.xml for the way I have set up my simple test
  51. run. I have a pre-constructed .fo file. Note that no output is
  52. actually produced to a pdf file.
  53. To run, once my CLASSPATH environment is set up, I
  54. java org.apache.fop.apps.Fop
  55. possibly adding a -d flag.