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

jjtree.html 16 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556
  1. <!--
  2. Licensed to the Apache Software Foundation (ASF) under one or more
  3. contributor license agreements. See the NOTICE file distributed with
  4. this work for additional information regarding copyright ownership.
  5. The ASF licenses this file to You under the Apache License, Version 2.0
  6. (the "License"); you may not use this file except in compliance with
  7. the License. You may obtain a copy of the License at
  8. http://www.apache.org/licenses/LICENSE-2.0
  9. Unless required by applicable law or agreed to in writing, software
  10. distributed under the License is distributed on an "AS IS" BASIS,
  11. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. See the License for the specific language governing permissions and
  13. limitations under the License.
  14. -->
  15. <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
  16. <html>
  17. <head>
  18. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  19. <meta http-equiv="Content-Language" content="en-us">
  20. <link rel="stylesheet" type="text/css" href="../stylesheets/style.css">
  21. <title>JJTree Task</title>
  22. </head>
  23. <body>
  24. <h2>
  25. <a NAME="jjtree"></a>JJTree</h2>
  26. <h3>
  27. Description</h3>
  28. <p>Invokes the <a href="http://javacc.dev.java.net/">JJTree</a> preprocessor
  29. for the JavaCC compiler compiler. It inserts parse tree building actions
  30. at various places in the JavaCC source that it generates. The output of
  31. JJTree is run through JavaCC to create the parser.
  32. <p>To use the jjtree task, set the <i>target</i> attribute to the name
  33. of the JJTree grammar file to process. You also need to specify the directory
  34. containing the JavaCC installation using the <i>javacchome</i> attribute,
  35. so that ant can find the JavaCC classes. Optionally, you can also set the
  36. <i>outputdirectory</i>
  37. to write the generated JavaCC grammar and node files to a specific directory.
  38. Otherwise jjtree writes the generated JavaCC grammar and node files to the directory
  39. containing the JJTree grammar file. As an extra option, you can also set the
  40. <i>outputfile</i> to write the generated JavaCC grammar file to a specific (directory and) file.
  41. Otherwise jjtree writes the generated JavaCC grammar file as the JJTree
  42. grammar file with a suffix .jj.</p>
  43. <p>This task only invokes JJTree if the grammar file is newer than the
  44. generated JavaCC file.</p>
  45. <h3>Parameters</h3>
  46. <table BORDER CELLSPACING=0 CELLPADDING=2 >
  47. <tr>
  48. <td VALIGN=TOP><b>Attribute</b></td>
  49. <td VALIGN=TOP><b>Description</b></td>
  50. <td ALIGN=CENTER VALIGN=TOP><b>Required</b></td>
  51. </tr>
  52. <tr>
  53. <td VALIGN=TOP>target</td>
  54. <td VALIGN=TOP>The jjtree grammar file to process.</td>
  55. <td ALIGN=CENTER VALIGN=TOP>Yes</td>
  56. </tr>
  57. <tr>
  58. <td VALIGN=TOP>javacchome</td>
  59. <td VALIGN=TOP>The directory containing the JavaCC distribution.</td>
  60. <td ALIGN=CENTER VALIGN=TOP>Yes</td>
  61. </tr>
  62. <tr>
  63. <td VALIGN=TOP>outputdirectory</td>
  64. <td VALIGN=TOP>The directory to write the generated JavaCC grammar and node files to.
  65. If not set, the files are written to the directory containing the grammar file.&nbsp;</td>
  66. <td ALIGN=CENTER VALIGN=TOP>No</td>
  67. </tr>
  68. <tr>
  69. <td VALIGN=TOP>outputfile</td>
  70. <td VALIGN=TOP>The file to write the generated JavaCC grammar file
  71. to. If not set, the file is written with the same name as the JJTree
  72. grammar file but with a the suffix <code>.jj</code>. This is a
  73. filename relative to <em>outputdirectory</em> if specified, the
  74. project's basedir.</td>
  75. <td ALIGN=CENTER VALIGN=TOP>No</td>
  76. </tr>
  77. <tr>
  78. <td VALIGN=TOP>buildnodefiles</td>
  79. <td VALIGN=TOP>Sets the BUILD_NODE_FILES grammar option. This is a boolean
  80. option.</td>
  81. <td ALIGN=CENTER VALIGN=TOP>No</td>
  82. </tr>
  83. <tr>
  84. <td VALIGN=TOP>multi</td>
  85. <td VALIGN=TOP>Sets the MULTI grammar option. This is a boolean option.</td>
  86. <td ALIGN=CENTER VALIGN=TOP>No</td>
  87. </tr>
  88. <tr>
  89. <td VALIGN=TOP>nodedefaultvoid</td>
  90. <td VALIGN=TOP>Sets the NODE_DEFAULT_VOID grammar option. This is a boolean
  91. option.</td>
  92. <td ALIGN=CENTER VALIGN=TOP>No</td>
  93. </tr>
  94. <tr>
  95. <td VALIGN=TOP>nodefactory</td>
  96. <td VALIGN=TOP>Sets the NODE_FACTORY grammar option. This is boolean option.</td>
  97. <td ALIGN=CENTER VALIGN=TOP>No</td>
  98. </tr>
  99. <tr>
  100. <td VALIGN=TOP>nodescopehook</td>
  101. <td VALIGN=TOP>Sets the NODE_SCOPE_HOOK grammar option. This is a boolean
  102. option.</td>
  103. <td ALIGN=CENTER VALIGN=TOP>No</td>
  104. </tr>
  105. <tr>
  106. <td VALIGN=TOP>nodeusesparser</td>
  107. <td VALIGN=TOP>Sets the NODE_USES_PARSER grammar option. This is a boolean
  108. option.</td>
  109. <td ALIGN=CENTER VALIGN=TOP>No</td>
  110. </tr>
  111. <tr>
  112. <td VALIGN=TOP>static</td>
  113. <td VALIGN=TOP>Sets the STATIC grammar option. This is a boolean option.</td>
  114. <td ALIGN=CENTER VALIGN=TOP>No</td>
  115. </tr>
  116. <tr>
  117. <td VALIGN=TOP>visitor</td>
  118. <td VALIGN=TOP>Sets the VISITOR grammar option. This is a boolean option.</td>
  119. <td ALIGN=CENTER VALIGN=TOP>No</td>
  120. </tr>
  121. <tr>
  122. <td VALIGN=TOP>nodepackage</td>
  123. <td VALIGN=TOP>Sets the NODE_PACKAGE grammar option. This is a string option.</td>
  124. <td ALIGN=CENTER VALIGN=TOP>No</td>
  125. </tr>
  126. <tr>
  127. <td VALIGN=TOP>visitorexception</td>
  128. <td VALIGN=TOP>Sets the VISITOR_EXCEPTION grammar option. This is a string
  129. option.</td>
  130. <td ALIGN=CENTER VALIGN=TOP>No</td>
  131. </tr>
  132. <tr>
  133. <td VALIGN=TOP>nodeprefix</td>
  134. <td VALIGN=TOP>Sets the NODE_PREFIX grammar option. This is a string option.</td>
  135. <td ALIGN=CENTER VALIGN=TOP>No</td>
  136. </tr>
  137. </table>
  138. <h3>
  139. Example</h3>
  140. <blockquote>
  141. <pre>&lt;jjtree&nbsp;
  142. &nbsp;&nbsp;&nbsp; target="src/Parser.jjt"&nbsp;
  143. &nbsp;&nbsp;&nbsp; outputdirectory="build/src"
  144. &nbsp;&nbsp;&nbsp; javacchome="c:/program files/JavaCC"&nbsp;
  145. &nbsp;&nbsp;&nbsp; nodeusesparser="true"
  146. /&gt;</pre>
  147. </blockquote>
  148. This invokes JJTree on grammar file src/Parser.jjt, writing the generated
  149. grammar file, Parser.jj, file to build/src. The grammar option NODE_USES_PARSER
  150. is set to true when invoking JJTree.
  151. <br>
  152. <h3>Comparison output locations between command line JJTree and different Ant taskdef versions</h3>
  153. <table cellpadding="3" border="1">
  154. <tr>
  155. <td><b>Command Line JJTree options</b>
  156. <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<i>and Generated Files</i> (working directory: <code>/tmp</code>)</td>
  157. <td><b>Ant 1.5.3</b> versus command line</td>
  158. <td><b>Ant 1.6</b> versus command line</td>
  159. </tr>
  160. <tr>
  161. <td><pre><b>jjtree grammar.jjt</b>
  162. /tmp/grammar.jj
  163. /tmp/&lt;generated&gt;.java</pre>
  164. </td>
  165. <td>Same</td>
  166. <td>Same</td>
  167. </tr>
  168. <tr>
  169. <td><pre><b>jjtree relative/grammar.jjt</b>
  170. /tmp/grammar.jj
  171. /tmp/&lt;generated&gt;.java</pre>
  172. </td>
  173. <td><pre>
  174. /tmp/relative/grammar.jj
  175. /tmp/relative/&lt;generated&gt;.java</pre>
  176. </td>
  177. <td>Same</td>
  178. </tr>
  179. <tr>
  180. <td><pre><b>jjtree /tmp/absolute/grammar.jjt</b>
  181. /tmp/grammar.jj
  182. /tmp/&lt;generated&gt;.java</pre>
  183. </td>
  184. <td><pre>
  185. /tmp/absolute/grammar.jj
  186. /tmp/absolute/&lt;generated&gt;.java</pre>
  187. </td>
  188. <td>Same</td>
  189. </tr>
  190. <tr>
  191. <td><pre><b>jjtree -OUTPUT_DIRECTORY:relative grammar.jjt</b>
  192. /tmp/relative/grammar.jj
  193. /tmp/relative/&lt;generated&gt;.java</pre>
  194. </td>
  195. <td>Same</td>
  196. <td>Same</td>
  197. </tr>
  198. <tr>
  199. <td><pre><b>jjtree -OUTPUT_DIRECTORY:relative relative/grammar.jjt</b>
  200. /tmp/relative/grammar.jj
  201. /tmp/relative/&lt;generated&gt;.java</pre>
  202. </td>
  203. <td>Same</td>
  204. <td>Same</td>
  205. </tr>
  206. <tr>
  207. <td><pre><b>jjtree -OUTPUT_DIRECTORY:relative /tmp/absolute/grammar.jjt</b>
  208. /tmp/relative/grammar.jj
  209. /tmp/relative/&lt;generated&gt;.java</pre>
  210. </td>
  211. <td>Same</td>
  212. <td>Same</td>
  213. </tr>
  214. <tr>
  215. <td><pre><b>jjtree -OUTPUT_DIRECTORY:/tmp/absolute/ grammar.jjt</b>
  216. /tmp/absolute/grammar.jj
  217. /tmp/absolute/&lt;generated&gt;.java</pre>
  218. </td>
  219. <td>Same</td>
  220. <td>Same</td>
  221. </tr>
  222. <tr>
  223. <td><pre><b>jjtree -OUTPUT_DIRECTORY:/tmp/absolute/ relative/grammar.jjt</b>
  224. /tmp/absolute/grammar.jj
  225. /tmp/absolute/&lt;generated&gt;.java</pre>
  226. </td>
  227. <td>Same</td>
  228. <td>Same</td>
  229. </tr>
  230. <tr>
  231. <td><pre><b>jjtree -OUTPUT_DIRECTORY:/tmp/absolute/ /tmp/absolute/grammar.jjt</b>
  232. /tmp/absolute/grammar.jj
  233. /tmp/absolute/&lt;generated&gt;.java</pre>
  234. </td>
  235. <td>Same</td>
  236. <td>Same</td>
  237. </tr>
  238. <tr>
  239. <td><pre><b>jjtree -OUTPUT_FILE:output.jj grammar.jjt</b>
  240. /tmp/output.jj
  241. /tmp/&lt;generated&gt;.java</pre>
  242. </td>
  243. <td>Not Supported</td>
  244. <td>Same</td>
  245. </tr>
  246. <tr>
  247. <td><pre><b>jjtree -OUTPUT_FILE:output.jj relative/grammar.jjt</b>
  248. /tmp/output.jj
  249. /tmp/&lt;generated&gt;.java</pre>
  250. </td>
  251. <td>Not Supported</td>
  252. <td>Same</td>
  253. </tr>
  254. <tr>
  255. <td><pre><b>jjtree -OUTPUT_FILE:output.jj /tmp/absolute/grammar.jjt</b>
  256. /tmp/output.jj
  257. /tmp/&lt;generated&gt;.java</pre>
  258. </td>
  259. <td>Not Supported</td>
  260. <td>Same</td>
  261. </tr>
  262. <tr>
  263. <td><pre><b>jjtree -OUTPUT_FILE:output.jj -OUTPUT_DIRECTORY:relative grammar.jjt</b>
  264. /tmp/relative/output.jj
  265. /tmp/relative/&lt;generated&gt;.java</pre>
  266. </td>
  267. <td>Not Supported</td>
  268. <td>Same</td>
  269. </tr>
  270. <tr>
  271. <td><pre><b>jjtree -OUTPUT_FILE:output.jj -OUTPUT_DIRECTORY:relative relative/grammar.jjt</b>
  272. /tmp/relative/output.jj
  273. /tmp/relative/&lt;generated&gt;.java</pre>
  274. </td>
  275. <td>Not Supported</td>
  276. <td>Same</td>
  277. </tr>
  278. <tr>
  279. <td><pre><b>jjtree -OUTPUT_FILE:output.jj -OUTPUT_DIRECTORY:relative /tmp/absolute/grammar.jjt</b>
  280. /tmp/relative/output.jj
  281. /tmp/relative/&lt;generated&gt;.java</pre>
  282. </td>
  283. <td>Not Supported</td>
  284. <td>Same</td>
  285. </tr>
  286. <tr>
  287. <td><pre><b>jjtree -OUTPUT_FILE:output.jj -OUTPUT_DIRECTORY:/tmp/absolute/ grammar.jjt</b>
  288. /tmp/absolute/output.jj
  289. /tmp/absolute/&lt;generated&gt;.java</pre>
  290. </td>
  291. <td>Not Supported</td>
  292. <td>Same</td>
  293. </tr>
  294. <tr>
  295. <td><pre><b>jjtree -OUTPUT_FILE:output.jj -OUTPUT_DIRECTORY:/tmp/absolute/ relative/grammar.jjt</b>
  296. /tmp/absolute/output.jj
  297. /tmp/absolute/&lt;generated&gt;.java</pre>
  298. </td>
  299. <td>Not Supported</td>
  300. <td>Same</td>
  301. </tr>
  302. <tr>
  303. <td><pre><b>jjtree -OUTPUT_FILE:output.jj -OUTPUT_DIRECTORY:/tmp/absolute/ /tmp/absolute/grammar.jjt</b>
  304. /tmp/absolute/output.jj
  305. /tmp/absolute/&lt;generated&gt;.java</pre>
  306. </td>
  307. <td>Not Supported</td>
  308. <td>Same</td>
  309. </tr>
  310. <tr>
  311. <td><pre><b>jjtree -OUTPUT_FILE:subdir/output.jj grammar.jjt</b>
  312. /tmp/subdir/output.jj
  313. /tmp/&lt;generated&gt;.java</pre>
  314. </td>
  315. <td>Not Supported</td>
  316. <td>Same</td>
  317. </tr>
  318. <tr>
  319. <td><pre><b>jjtree -OUTPUT_FILE:subdir/output.jj relative/grammar.jjt</b>
  320. /tmp/subdir/output.jj
  321. /tmp/&lt;generated&gt;.java</pre>
  322. </td>
  323. <td>Not Supported</td>
  324. <td>Same</td>
  325. </tr>
  326. <tr>
  327. <td><pre><b>jjtree -OUTPUT_FILE:subdir/output.jj /tmp/absolute/grammar.jjt</b>
  328. /tmp/subdir/output.jj
  329. /tmp/&lt;generated&gt;.java</pre>
  330. </td>
  331. <td>Not Supported</td>
  332. <td>Same</td>
  333. </tr>
  334. <tr>
  335. <td><pre><b>jjtree -OUTPUT_FILE:subdir/output.jj -OUTPUT_DIRECTORY:relative grammar.jjt</b>
  336. /tmp/relative/subdir/output.jj
  337. /tmp/relative/&lt;generated&gt;.java</pre>
  338. </td>
  339. <td>Not Supported</td>
  340. <td>Same</td>
  341. </tr>
  342. <tr>
  343. <td><pre><b>jjtree -OUTPUT_FILE:subdir/output.jj -OUTPUT_DIRECTORY:relative relative/grammar.jjt</b>
  344. /tmp/relative/subdir/output.jj
  345. /tmp/relative/&lt;generated&gt;.java</pre>
  346. </td>
  347. <td>Not Supported</td>
  348. <td>Same</td>
  349. </tr>
  350. <tr>
  351. <td><pre><b>jjtree -OUTPUT_FILE:subdir/output.jj -OUTPUT_DIRECTORY:relative /tmp/absolute/grammar.jjt</b>
  352. /tmp/relative/subdir/output.jj
  353. /tmp/relative/&lt;generated&gt;.java</pre>
  354. </td>
  355. <td>Not Supported</td>
  356. <td>Same</td>
  357. </tr>
  358. <tr>
  359. <td><pre><b>jjtree -OUTPUT_FILE:subdir/output.jj -OUTPUT_DIRECTORY:/tmp/absolute/ grammar.jjt</b>
  360. /tmp/absolute/subdir/output.jj
  361. /tmp/absolute/&lt;generated&gt;.java</pre>
  362. </td>
  363. <td>Not Supported</td>
  364. <td>Same</td>
  365. </tr>
  366. <tr>
  367. <td><pre><b>jjtree -OUTPUT_FILE:subdir/output.jj -OUTPUT_DIRECTORY:/tmp/absolute/ relative/grammar.jjt</b>
  368. /tmp/absolute/subdir/output.jj
  369. /tmp/absolute/&lt;generated&gt;.java</pre>
  370. </td>
  371. <td>Not Supported</td>
  372. <td>Same</td>
  373. </tr>
  374. <tr>
  375. <td><pre><b>jjtree -OUTPUT_FILE:subdir/output.jj -OUTPUT_DIRECTORY:/tmp/absolute/ /tmp/absolute/grammar.jjt</b>
  376. /tmp/absolute/subdir/output.jj
  377. /tmp/absolute/&lt;generated&gt;.java</pre>
  378. </td>
  379. <td>Not Supported</td>
  380. <td>Same</td>
  381. </tr>
  382. <tr>
  383. <td><pre><b>jjtree -OUTPUT_FILE:/tmp/subdir/output.jj grammar.jjt</b>
  384. /tmp/subdir/output.jj
  385. /tmp/&lt;generated&gt;.java</pre>
  386. </td>
  387. <td>Not Supported</td>
  388. <td>Same</td>
  389. </tr>
  390. <tr>
  391. <td><pre><b>jjtree -OUTPUT_FILE:/tmp/subdir/output.jj relative/grammar.jjt</b>
  392. /tmp/subdir/output.jj
  393. /tmp/&lt;generated&gt;.java</pre>
  394. </td>
  395. <td>Not Supported</td>
  396. <td>Same</td>
  397. </tr>
  398. <tr>
  399. <td><pre><b>jjtree -OUTPUT_FILE:/tmp/subdir/output.jj /tmp/absolute/grammar.jjt</b>
  400. /tmp/subdir/output.jj
  401. /tmp/&lt;generated&gt;.java</pre>
  402. </td>
  403. <td>Not Supported</td>
  404. <td>Same</td>
  405. </tr>
  406. <tr>
  407. <td><pre><b>jjtree -OUTPUT_FILE:<i><u>D:</u></i>/tmp/subdir/output.jj grammar.jjt</b>
  408. /tmp/subdir/output.jj
  409. /tmp/&lt;generated&gt;.java</pre>
  410. </td>
  411. <td>Not Supported</td>
  412. <td>Not Supported *)</td>
  413. </tr>
  414. <tr>
  415. <td><pre><b>jjtree -OUTPUT_FILE:<i><u>D:</u></i>/tmp/subdir/output.jj relative/grammar.jjt</b>
  416. /tmp/subdir/output.jj
  417. /tmp/&lt;generated&gt;.java</pre>
  418. </td>
  419. <td>Not Supported</td>
  420. <td>Not Supported *)</td>
  421. </tr>
  422. <tr>
  423. <td><pre><b>jjtree -OUTPUT_FILE:<i><u>D:</u></i>/tmp/subdir/output.jj /tmp/absolute/grammar.jjt</b>
  424. /tmp/subdir/output.jj
  425. /tmp/&lt;generated&gt;.java</pre>
  426. </td>
  427. <td>Not Supported</td>
  428. <td>Not Supported *)</td>
  429. </tr>
  430. <tr>
  431. <td><pre><b>jjtree -OUTPUT_FILE:/tmp/subdir/output.jj -OUTPUT_DIRECTORY:relative grammar.jjt</b>
  432. /tmp/relative/tmp/subdir/output.jj
  433. /tmp/relative/&lt;generated&gt;.java</pre>
  434. </td>
  435. <td>Not Supported</td>
  436. <td>Same</td>
  437. </tr>
  438. <tr>
  439. <td><pre><b>jjtree -OUTPUT_FILE:/tmp/subdir/output.jj -OUTPUT_DIRECTORY:relative relative/grammar.jjt</b>
  440. /tmp/relative/tmp/subdir/output.jj
  441. /tmp/relative/&lt;generated&gt;.java</pre>
  442. </td>
  443. <td>Not Supported</td>
  444. <td>Same</td>
  445. </tr>
  446. <tr>
  447. <td><pre><b>jjtree -OUTPUT_FILE:/tmp/subdir/output.jj -OUTPUT_DIRECTORY:relative /tmp/absolute/grammar.jjt</b>
  448. /tmp/relative/tmp/subdir/output.jj
  449. /tmp/relative/&lt;generated&gt;.java</pre>
  450. </td>
  451. <td>Not Supported</td>
  452. <td>Same</td>
  453. </tr>
  454. <tr>
  455. <td><pre><b>jjtree -OUTPUT_FILE:/tmp/subdir/output.jj -OUTPUT_DIRECTORY:/tmp/absolute/ grammar.jjt</b>
  456. /tmp/absolute/tmp/subdir/output.jj
  457. /tmp/absolute/&lt;generated&gt;.java</pre>
  458. </td>
  459. <td>Not Supported</td>
  460. <td>Same</td>
  461. </tr>
  462. <tr>
  463. <td><pre><b>jjtree -OUTPUT_FILE:/tmp/subdir/output.jj -OUTPUT_DIRECTORY:/tmp/absolute/ relative/grammar.jjt</b>
  464. /tmp/absolute/tmp/subdir/output.jj
  465. /tmp/absolute/&lt;generated&gt;.java</pre>
  466. </td>
  467. <td>Not Supported</td>
  468. <td>Same</td>
  469. </tr>
  470. <tr>
  471. <td><pre><b>jjtree -OUTPUT_FILE:/tmp/subdir/output.jj -OUTPUT_DIRECTORY:/tmp/absolute/ /tmp/absolute/grammar.jjt</b>
  472. /tmp/absolute/tmp/subdir/output.jj
  473. /tmp/absolute/&lt;generated&gt;.java</pre>
  474. </td>
  475. <td>Not Supported</td>
  476. <td>Same</td>
  477. </tr>
  478. </table>
  479. <p>*) <u>Footnote</u>: When running JJTree with the Ant taskdef <i>jjtree</i> the option <code>-OUTPUT_DIRECTORY</code> must always
  480. be set, because the project's basedir and the ant working directory might differ. So even if you don't specify the jjtree taskdef
  481. <i>outputdirectory</i> JJTree will be called with the <code>-OUTPUT_DIRECTORY</code> set to the project's basedirectory.
  482. But when the <code>-OUTPUT_DIRECTORY</code> is set, the <code>-OUTPUT_FILE</code> setting is handled as if relative to this
  483. <code>-OUTPUT_DIRECTORY</code>. Thus when the <code>-OUTPUT_FILE</code> is absolute or contains a drive letter we have a
  484. problem.
  485. Therefore absolute <i>outputfile</i>s (when the <i>outputdirectory</i> isn't specified) are made relative to the default directory.
  486. And for this reason <i>outputfile</i>s that contain a drive letter can't be supported.</p>
  487. <p>By the way: specifying a drive letter in the <code>-OUTPUT_FILE</code> when the <code>-OUTPUT_DIRECTORY</code> is set, also
  488. results in strange behavior when running JJTree from the command line.</p>
  489. <br>
  490. </body>
  491. </html>