Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

CommandLineOptions.java 24KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681
  1. /*
  2. * $Id$
  3. * Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
  4. * For details on use and redistribution please refer to the
  5. * LICENSE file included with these sources.
  6. */
  7. package org.apache.fop.apps;
  8. // java
  9. import java.util.Vector;
  10. import java.io.File;
  11. import java.io.FileNotFoundException;
  12. // FOP
  13. import org.apache.fop.configuration.Configuration;
  14. import org.apache.fop.apps.FOPException;
  15. import org.apache.log.*;
  16. import org.apache.log.format.*;
  17. import org.apache.log.output.io.*;
  18. import org.apache.log.output.*;
  19. import java.io.*;
  20. /**
  21. * Options parses the commandline arguments
  22. */
  23. public class CommandLineOptions {
  24. /* input / output not set */
  25. private static final int NOT_SET = 0;
  26. /* input: fo file */
  27. private static final int FO_INPUT = 1;
  28. /* input: xml+xsl file */
  29. private static final int XSLT_INPUT = 2;
  30. /* output: pdf file */
  31. private static final int PDF_OUTPUT = 1;
  32. /* output: screen using swing */
  33. private static final int AWT_OUTPUT = 2;
  34. /* output: mif file */
  35. private static final int MIF_OUTPUT = 3;
  36. /* output: sent swing rendered file to printer */
  37. private static final int PRINT_OUTPUT = 4;
  38. /* output: pcl file */
  39. private static final int PCL_OUTPUT = 5;
  40. /* output: postscript file */
  41. private static final int PS_OUTPUT = 6;
  42. /* output: text file */
  43. private static final int TXT_OUTPUT = 7;
  44. /* output: svg file */
  45. private static final int SVG_OUTPUT = 8;
  46. /* System buffers */
  47. private static final int BUFFER_FILE = 8;
  48. /* System buffers */
  49. private static final int AREA_OUTPUT = 9;
  50. /* use debug mode */
  51. Boolean errorDump = new Boolean(false);
  52. /* show configuration information */
  53. Boolean dumpConfiguration = new Boolean(false);
  54. /* suppress any progress information */
  55. Boolean quiet = new Boolean(false);
  56. /* for area tree XML output, only down to block area level */
  57. Boolean suppressLowLevelAreas = new Boolean(false);
  58. /* name of user configuration file */
  59. File userConfigFile = null;
  60. /* name of input fo file */
  61. File fofile = null;
  62. /* name of xsltfile (xslt transformation as input) */
  63. File xsltfile = null;
  64. /* name of xml file (xslt transformation as input) */
  65. File xmlfile = null;
  66. /* name of output file */
  67. File outfile = null;
  68. /* name of buffer file */
  69. File bufferFile = null;
  70. /* input mode */
  71. int inputmode = NOT_SET;
  72. /* output mode */
  73. int outputmode = NOT_SET;
  74. /* buffer mode */
  75. int buffermode = NOT_SET;
  76. /* language for user information */
  77. String language = null;
  78. private java.util.HashMap rendererOptions;
  79. private Logger log;
  80. public CommandLineOptions(String[] args)
  81. throws FOPException, FileNotFoundException {
  82. Hierarchy hierarchy = Hierarchy.getDefaultHierarchy();
  83. PatternFormatter formatter = new PatternFormatter(
  84. "[%{priority}]: %{message}\n%{throwable}" );
  85. LogTarget target = null;
  86. boolean doConsoleLogging = true;
  87. if (doConsoleLogging) {
  88. target = new StreamTarget(System.out, formatter);
  89. } else {
  90. try {
  91. File f = new File("fop.log");
  92. target = new FileTarget(f, false, formatter);
  93. } catch (IOException e) {}
  94. }
  95. hierarchy.setDefaultLogTarget(target);
  96. log = hierarchy.getLoggerFor("fop");
  97. log.setPriority(Priority.INFO);
  98. boolean optionsParsed = true;
  99. rendererOptions = new java.util.HashMap();
  100. try {
  101. optionsParsed = parseOptions(args);
  102. if (optionsParsed) {
  103. checkSettings();
  104. if (errorDump != null && errorDump.booleanValue()) {
  105. debug();
  106. }
  107. }
  108. } catch (FOPException e) {
  109. printUsage();
  110. throw e;
  111. } catch (java.io.FileNotFoundException e) {
  112. printUsage();
  113. throw e;
  114. }
  115. }
  116. /**
  117. * parses the commandline arguments
  118. * @return true if parse was successful and procesing can continue, false if processing should stop
  119. * @exception FOPException if there was an error in the format of the options
  120. */
  121. private boolean parseOptions(String args[]) throws FOPException {
  122. for (int i = 0; i < args.length; i++) {
  123. if (args[i].equals("-d") || args[i].equals("--full-error-dump")) {
  124. errorDump = new Boolean(true);
  125. log.setPriority(Priority.DEBUG);
  126. } else if (args[i].equals("-x")
  127. || args[i].equals("--dump-config")) {
  128. dumpConfiguration = new Boolean(true);
  129. } else if (args[i].equals("-q") || args[i].equals("--quiet")) {
  130. quiet = new Boolean(true);
  131. log.setPriority(Priority.ERROR);
  132. } else if (args[i].equals("-c")) {
  133. if ((i + 1 == args.length)
  134. || (args[i + 1].charAt(0) == '-')) {
  135. throw new FOPException("if you use '-c', you must specify the name of the configuration file");
  136. } else {
  137. userConfigFile = new File(args[i + 1]);
  138. i++;
  139. }
  140. } else if (args[i].equals("-l")) {
  141. if ((i + 1 == args.length)
  142. || (args[i + 1].charAt(0) == '-')) {
  143. throw new FOPException("if you use '-l', you must specify a language");
  144. } else {
  145. language = args[i + 1];
  146. i++;
  147. }
  148. } else if (args[i].equals("-s")) {
  149. suppressLowLevelAreas = new Boolean(true);
  150. } else if (args[i].equals("-fo")) {
  151. inputmode = FO_INPUT;
  152. if ((i + 1 == args.length)
  153. || (args[i + 1].charAt(0) == '-')) {
  154. throw new FOPException("you must specify the fo file for the '-fo' option");
  155. } else {
  156. fofile = new File(args[i + 1]);
  157. i++;
  158. }
  159. } else if (args[i].equals("-xsl")) {
  160. inputmode = XSLT_INPUT;
  161. if ((i + 1 == args.length)
  162. || (args[i + 1].charAt(0) == '-')) {
  163. throw new FOPException("you must specify the stylesheet file for the '-xsl' option");
  164. } else {
  165. xsltfile = new File(args[i + 1]);
  166. i++;
  167. }
  168. } else if (args[i].equals("-xml")) {
  169. inputmode = XSLT_INPUT;
  170. if ((i + 1 == args.length)
  171. || (args[i + 1].charAt(0) == '-')) {
  172. throw new FOPException("you must specify the input file for the '-xml' option");
  173. } else {
  174. xmlfile = new File(args[i + 1]);
  175. i++;
  176. }
  177. } else if (args[i].equals("-awt")) {
  178. setOutputMode(AWT_OUTPUT);
  179. } else if (args[i].equals("-pdf")) {
  180. setOutputMode(PDF_OUTPUT);
  181. if ((i + 1 == args.length)
  182. || (args[i + 1].charAt(0) == '-')) {
  183. throw new FOPException("you must specify the pdf output file");
  184. } else {
  185. outfile = new File(args[i + 1]);
  186. i++;
  187. }
  188. } else if (args[i].equals("-mif")) {
  189. setOutputMode(MIF_OUTPUT);
  190. if ((i + 1 == args.length)
  191. || (args[i + 1].charAt(0) == '-')) {
  192. throw new FOPException("you must specify the mif output file");
  193. } else {
  194. outfile = new File(args[i + 1]);
  195. i++;
  196. }
  197. } else if (args[i].equals("-print")) {
  198. setOutputMode(PRINT_OUTPUT);
  199. // show print help
  200. if (i + 1 < args.length) {
  201. if (args[i + 1].equals("help")) {
  202. printUsagePrintOutput();
  203. return false;
  204. }
  205. }
  206. } else if (args[i].equals("-pcl")) {
  207. setOutputMode(PCL_OUTPUT);
  208. if ((i + 1 == args.length)
  209. || (args[i + 1].charAt(0) == '-')) {
  210. throw new FOPException("you must specify the pdf output file");
  211. } else {
  212. outfile = new File(args[i + 1]);
  213. i++;
  214. }
  215. } else if (args[i].equals("-ps")) {
  216. setOutputMode(PS_OUTPUT);
  217. if ((i + 1 == args.length)
  218. || (args[i + 1].charAt(0) == '-')) {
  219. throw new FOPException("you must specify the PostScript output file");
  220. } else {
  221. outfile = new File(args[i + 1]);
  222. i++;
  223. }
  224. } else if (args[i].equals("-txt")) {
  225. setOutputMode(TXT_OUTPUT);
  226. if ((i + 1 == args.length)
  227. || (args[i + 1].charAt(0) == '-')) {
  228. throw new FOPException("you must specify the text output file");
  229. } else {
  230. outfile = new File(args[i + 1]);
  231. i++;
  232. }
  233. } else if (args[i].equals("-svg")) {
  234. setOutputMode(SVG_OUTPUT);
  235. if ((i + 1 == args.length)
  236. || (args[i + 1].charAt(0) == '-')) {
  237. throw new FOPException("you must specify the svg output file"); } else {
  238. outfile = new File(args[i + 1]);
  239. i++;
  240. }
  241. } else if (args[i].charAt(0) != '-') {
  242. if (inputmode == NOT_SET) {
  243. inputmode = FO_INPUT;
  244. fofile = new File(args[i]);
  245. } else if (outputmode == NOT_SET) {
  246. outputmode = PDF_OUTPUT;
  247. outfile = new File(args[i]);
  248. } else {
  249. throw new FOPException("Don't know what to do with "
  250. + args[i]);
  251. }
  252. } else if (args[i].equals("-buf")) {
  253. if (buffermode == NOT_SET) {
  254. buffermode = BUFFER_FILE;
  255. } else {
  256. log.error("you can only set one buffer method");
  257. printUsage();
  258. }
  259. if ((i + 1 == args.length)
  260. || (args[i + 1].charAt(0) == '-')) {
  261. log.error("you must specify the buffer output file");
  262. printUsage();
  263. } else {
  264. bufferFile = new File(args[i + 1]);
  265. i++;
  266. }
  267. } else if (args[i].equals("-at")) {
  268. setOutputMode(AREA_OUTPUT);
  269. if ((i + 1 == args.length)
  270. || (args[i + 1].charAt(0) == '-')) {
  271. throw new FOPException("you must specify the area-tree output file");
  272. } else {
  273. outfile = new File(args[i + 1]);
  274. i++;
  275. }
  276. } else {
  277. printUsage();
  278. return false;
  279. }
  280. }
  281. return true;
  282. } // end parseOptions
  283. private void setOutputMode(int mode) throws FOPException {
  284. if (outputmode == NOT_SET) {
  285. outputmode = mode;
  286. } else {
  287. throw new FOPException("you can only set one output method");
  288. }
  289. }
  290. /**
  291. * checks whether all necessary information has been given in a consistent way
  292. */
  293. private void checkSettings() throws FOPException, FileNotFoundException {
  294. if (inputmode == NOT_SET) {
  295. throw new FOPException("No input file specified");
  296. }
  297. if (outputmode == NOT_SET) {
  298. throw new FOPException("No output file specified");
  299. }
  300. if (inputmode == XSLT_INPUT) {
  301. // check whether xml *and* xslt file have been set
  302. if (xmlfile == null) {
  303. throw new FOPException("XML file must be specified for the tranform mode");
  304. }
  305. if (xsltfile == null) {
  306. throw new FOPException("XSLT file must be specified for the tranform mode");
  307. }
  308. // warning if fofile has been set in xslt mode
  309. if (fofile != null) {
  310. log.warn("Can't use fo file with transform mode! Ignoring.\n"
  311. + "Your input is " + "\n xmlfile: "
  312. + xmlfile.getAbsolutePath()
  313. + "\nxsltfile: "
  314. + xsltfile.getAbsolutePath()
  315. + "\n fofile: "
  316. + fofile.getAbsolutePath());
  317. }
  318. if (!xmlfile.exists()) {
  319. throw new FileNotFoundException("xml file "
  320. + xmlfile.getAbsolutePath()
  321. + " not found ");
  322. }
  323. if (!xsltfile.exists()) {
  324. throw new FileNotFoundException("xsl file "
  325. + xsltfile.getAbsolutePath()
  326. + " not found ");
  327. }
  328. } else if (inputmode == FO_INPUT) {
  329. if (xmlfile != null || xsltfile != null) {
  330. log.warn("fo input mode, but xmlfile or xslt file are set:");
  331. log.error("xml file: " + xmlfile.toString());
  332. log.error("xslt file: " + xsltfile.toString());
  333. }
  334. if (!fofile.exists()) {
  335. throw new FileNotFoundException("fo file "
  336. + fofile.getAbsolutePath()
  337. + " not found ");
  338. }
  339. }
  340. } // end checkSettings
  341. /**
  342. * returns the chosen renderer, throws FOPException
  343. */
  344. public int getRenderer() throws FOPException {
  345. switch (outputmode) {
  346. case NOT_SET:
  347. throw new FOPException("Renderer has not been set!");
  348. case PDF_OUTPUT:
  349. return Driver.RENDER_PDF;
  350. case AWT_OUTPUT:
  351. return Driver.RENDER_AWT;
  352. case MIF_OUTPUT:
  353. return Driver.RENDER_MIF;
  354. case PRINT_OUTPUT:
  355. return Driver.RENDER_PRINT;
  356. case PCL_OUTPUT:
  357. return Driver.RENDER_PCL;
  358. case PS_OUTPUT:
  359. return Driver.RENDER_PS;
  360. case TXT_OUTPUT:
  361. return Driver.RENDER_TXT;
  362. case SVG_OUTPUT:
  363. return Driver.RENDER_SVG;
  364. case AREA_OUTPUT:
  365. rendererOptions.put("fineDetail", isCoarseAreaXml());
  366. return Driver.RENDER_XML;
  367. default:
  368. throw new FOPException("Invalid Renderer setting!");
  369. }
  370. }
  371. /**
  372. *
  373. */
  374. public InputHandler getInputHandler() {
  375. switch (inputmode) {
  376. case FO_INPUT:
  377. return new FOInputHandler(fofile);
  378. case XSLT_INPUT:
  379. return new XSLTInputHandler(xmlfile, xsltfile);
  380. default:
  381. return new FOInputHandler(fofile);
  382. }
  383. }
  384. public java.util.HashMap getRendererOptions() {
  385. return rendererOptions;
  386. }
  387. public Starter getStarter() throws FOPException {
  388. Starter starter = null;
  389. switch (outputmode) {
  390. case AWT_OUTPUT:
  391. try {
  392. starter = ((Starter)Class.forName("org.apache.fop.apps.AWTStarter").getConstructor(new Class[] {
  393. CommandLineOptions.class
  394. }).newInstance(new Object[] {
  395. this
  396. }));
  397. } catch (Exception e) {
  398. if (e instanceof FOPException) {
  399. throw (FOPException)e;
  400. }
  401. throw new FOPException("AWTStarter could not be loaded.", e);
  402. }
  403. break;
  404. case PRINT_OUTPUT:
  405. try {
  406. starter = ((Starter)Class.forName("org.apache.fop.apps.PrintStarter").getConstructor(new Class[] {
  407. CommandLineOptions.class
  408. }).newInstance(new Object[] {
  409. this
  410. }));
  411. } catch (Exception e) {
  412. if (e instanceof FOPException) {
  413. throw (FOPException)e;
  414. }
  415. throw new FOPException("PrintStarter could not be loaded.",
  416. e);
  417. }
  418. break;
  419. default:
  420. starter = new CommandLineStarter(this);
  421. }
  422. starter.setLogger(log);
  423. return starter;
  424. }
  425. public int getInputMode() {
  426. return inputmode;
  427. }
  428. public int getOutputMode() {
  429. return outputmode;
  430. }
  431. public File getFOFile() {
  432. return fofile;
  433. }
  434. public File getXMLFile() {
  435. return xmlfile;
  436. }
  437. public File getXSLFile() {
  438. return xsltfile;
  439. }
  440. public File getOutputFile() {
  441. return outfile;
  442. }
  443. public File getUserConfigFile() {
  444. return userConfigFile;
  445. }
  446. public String getLanguage() {
  447. return language;
  448. }
  449. public File getBufferFile() {
  450. return bufferFile;
  451. }
  452. public Boolean isQuiet() {
  453. return quiet;
  454. }
  455. public Boolean dumpConfiguration() {
  456. return dumpConfiguration;
  457. }
  458. public Boolean isDebugMode() {
  459. return errorDump;
  460. }
  461. public Boolean isCoarseAreaXml() {
  462. return suppressLowLevelAreas;
  463. }
  464. /**
  465. * return either the fofile or the xmlfile
  466. */
  467. public File getInputFile() {
  468. switch (inputmode) {
  469. case FO_INPUT:
  470. return fofile;
  471. case XSLT_INPUT:
  472. return xmlfile;
  473. default:
  474. return fofile;
  475. }
  476. }
  477. /**
  478. * shows the commandline syntax including a summary of all available options and some examples
  479. */
  480. public static void printUsage() {
  481. System.err.println("\nUSAGE\nFop [options] [-fo|-xml] infile [-xsl file] [-awt|-pdf|-mif|-pcl|-ps|-txt|-at|-print] <outfile>\n"
  482. + " [OPTIONS] \n"
  483. + " -d debug mode \n"
  484. + " -x dump configuration settings \n"
  485. + " -q quiet mode \n"
  486. + " -c cfg.xml use additional configuration file cfg.xml\n"
  487. + " -l lang the language to use for user information \n"
  488. + " -s for area tree XML, down to block areas only\n\n"
  489. + " [INPUT] \n"
  490. + " infile xsl:fo input file (the same as the next) \n"
  491. + " -fo infile xsl:fo input file \n"
  492. + " -xml infile xml input file, must be used together with -xsl \n"
  493. + " -xsl stylesheet xslt stylesheet \n \n"
  494. + " [OUTPUT] \n"
  495. + " outfile input will be rendered as pdf file into outfile \n"
  496. + " -pdf outfile input will be rendered as pdf file (outfile req'd) \n"
  497. + " -awt input will be displayed on screen \n"
  498. + " -mif outfile input will be rendered as mif file (outfile req'd)\n"
  499. + " -pcl outfile input will be rendered as pcl file (outfile req'd) \n"
  500. + " -ps outfile input will be rendered as PostScript file (outfile req'd) \n"
  501. + " -txt outfile input will be rendered as text file (outfile req'd) \n"
  502. + " -svg outfile input will be rendered as an svg slides file (outfile req'd) \n"
  503. + " -at outfile representation of area tree as XML (outfile req'd) \n"
  504. + " -print input file will be rendered and sent to the printer \n"
  505. + " see options with \"-print help\" \n\n"
  506. + " [Examples]\n" + " Fop foo.fo foo.pdf \n"
  507. + " Fop -fo foo.fo -pdf foo.pdf (does the same as the previous line)\n"
  508. + " Fop -xsl foo.xsl -xml foo.xml -pdf foo.pdf\n"
  509. + " Fop foo.fo -mif foo.mif\n"
  510. + " Fop foo.fo -print or Fop -print foo.fo \n"
  511. + " Fop foo.fo -awt \n");
  512. }
  513. /**
  514. * shows the options for print output
  515. */
  516. public void printUsagePrintOutput() {
  517. System.err.println("USAGE: -print [-Dstart=i] [-Dend=i] [-Dcopies=i] [-Deven=true|false] "
  518. + " org.apache.fop.apps.Fop (..) -print \n"
  519. + "Example:\n"
  520. + "java -Dstart=1 -Dend=2 org.apache.Fop.apps.Fop infile.fo -print ");
  521. }
  522. /**
  523. * debug mode. outputs all commandline settings
  524. */
  525. private void debug() {
  526. log.debug("Input mode: ");
  527. switch (inputmode) {
  528. case NOT_SET:
  529. log.debug("not set");
  530. break;
  531. case FO_INPUT:
  532. log.debug("FO ");
  533. log.debug("fo input file: " + fofile.toString());
  534. break;
  535. case XSLT_INPUT:
  536. log.debug("xslt transformation");
  537. log.debug("xml input file: " + xmlfile.toString());
  538. log.debug("xslt stylesheet: " + xsltfile.toString());
  539. break;
  540. default:
  541. log.debug("unknown input type");
  542. }
  543. log.debug("Output mode: ");
  544. switch (outputmode) {
  545. case NOT_SET:
  546. log.debug("not set");
  547. break;
  548. case PDF_OUTPUT:
  549. log.debug("pdf");
  550. log.debug("output file: " + outfile.toString());
  551. break;
  552. case AWT_OUTPUT:
  553. log.debug("awt on screen");
  554. if (outfile != null) {
  555. log.error("awt mode, but outfile is set:");
  556. log.debug("out file: " + outfile.toString());
  557. }
  558. break;
  559. case MIF_OUTPUT:
  560. log.debug("mif");
  561. log.debug("output file: " + outfile.toString());
  562. break;
  563. case PRINT_OUTPUT:
  564. log.debug("print directly");
  565. if (outfile != null) {
  566. log.error("print mode, but outfile is set:");
  567. log.error("out file: " + outfile.toString());
  568. }
  569. break;
  570. case PCL_OUTPUT:
  571. log.debug("pcl");
  572. log.debug("output file: " + outfile.toString());
  573. break;
  574. case PS_OUTPUT:
  575. log.debug("PostScript");
  576. log.debug("output file: " + outfile.toString());
  577. break;
  578. case TXT_OUTPUT:
  579. log.debug("txt");
  580. log.debug("output file: " + outfile.toString());
  581. break;
  582. case SVG_OUTPUT:
  583. log.debug("svg");
  584. log.debug("output file: " + outfile.toString());
  585. break;
  586. default:
  587. log.debug("unknown input type");
  588. }
  589. log.debug("OPTIONS");
  590. if (userConfigFile != null) {
  591. log.debug("user configuration file: "
  592. + userConfigFile.toString());
  593. } else {
  594. log.debug("no user configuration file is used [default]");
  595. }
  596. if (errorDump != null) {
  597. log.debug("debug mode on");
  598. } else {
  599. log.debug("debug mode off [default]");
  600. }
  601. if (dumpConfiguration != null) {
  602. log.debug("dump configuration");
  603. } else {
  604. log.debug("don't dump configuration [default]");
  605. }
  606. if (quiet != null) {
  607. log.debug("quiet mode on");
  608. } else {
  609. log.debug("quiet mode off [default]");
  610. }
  611. }
  612. // debug: create class and output all settings
  613. public static void main(String args[]) {
  614. /*
  615. * for (int i = 0; i < args.length; i++) {
  616. * log.debug(">"+args[i]+"<");
  617. * }
  618. */
  619. try {
  620. CommandLineOptions options = new CommandLineOptions(args);
  621. } catch (Exception e) {
  622. e.printStackTrace();
  623. }
  624. // options.debug();
  625. }
  626. }