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.

jspc.html 3.5 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Language" content="en-us">
  4. <title>Ant User Manual</title>
  5. </head>
  6. <body>
  7. <h2><a name="jspc">jspc</a></h2>
  8. <h3>Description</h3>
  9. <p> Ant task to run the jsp compiler.
  10. <p> This task takes the given jsp files and compiles them into java files. It
  11. is then up to the user to compile the java files into classes.
  12. <p><h3>Parameters</h3>
  13. The Task has the following attributes:
  14. <table border="1" cellpadding="2" cellspacing="0">
  15. <tr>
  16. <td valign="top"><b>Attribute</b></td>
  17. <td valign="top"><b>Description</b></td>
  18. <td align="center" valign="top"><b>Required</b></td>
  19. </tr>
  20. <tr>
  21. <td valign="top">destdir</td>
  22. <td valign="top">Where to place the generated files. They are located
  23. under here according to the given package name.</td>
  24. <td valign="top" align="center">Yes</td>
  25. </tr>
  26. <tr>
  27. <td valign="top">srcdir</td>
  28. <td valign="top">Where to look for source jsp files.</td>
  29. <td valign="top" align="center">Yes</td>
  30. </tr>
  31. <tr>
  32. <td valign="top">verbose</td>
  33. <td valign="top">The verbose flag to pass to the compiler.</td>
  34. <td valign="top" align="center">No</td>
  35. </tr>
  36. <tr>
  37. <td valign="top">package</td>
  38. <td valign="top">Name of the destination package for generated java
  39. classes.</td>
  40. <td valign="top" align="center">No</td>
  41. </tr>
  42. <tr>
  43. <td valign="top">ieplugin</td>
  44. <td valign="top">Java Plugin classid for Internet Explorer.</td>
  45. <td valign="top" align="center">No</td>
  46. </tr>
  47. <tr>
  48. <td valign="top">mapped</td>
  49. <td valign="top">(boolean) Generate separate write() calls for each HTML
  50. line in the JSP.</td>
  51. <td valign="top" align="center">No</td>
  52. </tr>
  53. <tr>
  54. <td valign="top">classpath</td>
  55. <td valign="top">The classpath to use to run the jsp compiler, if the
  56. compiler is not already in the ant classpath. This can also be specified
  57. by the nested element <code>classpath</code> (a
  58. <a href="../using.html#path">Path</a>).</td>
  59. <td valign="top" align="center">No</td>
  60. </tr>
  61. <tr>
  62. <td valign="top">classpathref</td>
  63. <td valign="top">A <a href="../using.html#references">Reference</a>. As
  64. per <code>classpath</code></td>
  65. <td valign="top" align="center">No</td>
  66. </tr>
  67. * classes and classpath (the classpath to use when running the jsp
  68. * compiler).
  69. * <p> This task supports the nested elements classpath (A Path) and
  70. * classpathref (A Reference) which can be used in preference to the
  71. * attribute classpath, if the jsp compiler is not already in the ant
  72. * classpath.
  73. </table>
  74. <p> This task is a <a href="../dirtasks.html">directory based task</a>, like
  75. <strong>javac</strong>, so the jsp files to be compiled are located as java
  76. files are by <strong>javac</strong>.
  77. <p><h3>Example</h3>
  78. <pre>
  79. &lt;jspc srcdir="${basedir}/src/war"
  80. destdir="${basedir}/gensrc"
  81. package="com.i3sp.jsp"
  82. verbose="9"&gt;
  83. &lt;include name="**\/*.jsp" /&gt;
  84. &lt;/jspc&gt;
  85. </pre>
  86. <p><h4>Notes</h4>
  87. <p> At present, this task only supports the jasper compiler. In future,
  88. other compilers will be supported by setting the jsp.compiler property.
  89. <p> The jasper compiler option <code>-webapp</code> is not supported. Using
  90. the <code>package</code> attribute it is possible to identify the resulting
  91. java files and thus do full dependency checking - this task only rebuilds
  92. java files if their jsp file has been modified.
  93. <hr>
  94. <p align="center">Copyright &copy; 2000,2001 Apache Software Foundation. All rights
  95. Reserved.</p>
  96. </body>
  97. </html>