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.

Fop.java 892B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
  3. * For details on use and redistribution please refer to the
  4. * LICENSE file included with these sources."
  5. */
  6. package org.apache.fop.apps;
  7. import org.apache.fop.messaging.MessageHandler;
  8. public class Fop {
  9. public static void main (String [] args) {
  10. CommandLineOptions options = null;
  11. try {
  12. options = new CommandLineOptions (args);
  13. Starter starter = options.getStarter();
  14. starter.run();
  15. }
  16. catch (FOPException e) {
  17. MessageHandler.errorln("ERROR: "+e.getMessage());
  18. if (options != null && options.isDebugMode().booleanValue()) {
  19. e.printStackTrace();
  20. }
  21. }
  22. catch (java.io.FileNotFoundException e) {
  23. MessageHandler.errorln("ERROR: "+e.getMessage());
  24. if (options != null && options.isDebugMode().booleanValue()) {
  25. e.printStackTrace();
  26. }
  27. }
  28. }
  29. }