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.

build-notes 2.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. The environment for the build can be set up by copying the xml-fop
  10. tree from the web page, and adding the support jars to the xml-fop/lib
  11. directory. I am currently building with the set of jars that were
  12. current at fop 0.20.0.
  13. To build, set the environment variables FOPDEV and JAVA_HOME.
  14. JAVA_HOME should be the directory under which the jre directory
  15. resides. I have been compiling with the IBM 1.3 jdk under linux.
  16. FOPDEV is the path to the xml-fop directory under which src and build
  17. reside. Then source the following files, found in the xml-fop/bin
  18. directory, in order
  19. . bin/.path.functions
  20. . bin/fopdevenv
  21. These are designed as Bourne and up shell files. Unix only, I'm
  22. afraid.
  23. The fopcomp script (found in the bin directory) is designed to execute
  24. from anywhere in the source tree where .java files may be found.
  25. Make sure fopcomp is accessible via your PATH. Then, e.g.,
  26. cd src/org/apache/fop/apps
  27. fopcomp Fop.java
  28. N.B. fopcomp shebangs /bin/ksh. As an alternative, try the
  29. fopcomp-bash script, which is identical except for #!/bin/bash. It
  30. will work with any modern (ksh-style) sh which supports the `typeset'
  31. method of specifying local shell variables.
  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 will throw an exception. Properties handling is
  42. in a state of flux.
  43. The code doesn't do much as yet, but to see what it does get up to, I
  44. use the extensions I have made to the config functionality.
  45. userconfig.xml is duly noted as the default user config file in
  46. config.xml. In userconfig.xml I put my input mode, input file name
  47. and output file name. Everything except fo->pdf has been stripped
  48. away at this stage, but it still has to be specified. See
  49. build/conf/userconfig.xml for the way I have set up my simple test
  50. run. I have a pre-constructed .fo file. Note that no output is
  51. actually produced to a pdf file.
  52. To run, once my CLASSPATH environment is set up, I
  53. java org.apache.fop.apps.Fop
  54. possibly adding a -d flag.