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.

templates.vm 15 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  1. #*
  2. * ============================================================================
  3. * The Apache Software License, Version 1.1
  4. * ============================================================================
  5. *
  6. * Copyright (C) 2000-2003 The Apache Software Foundation. All
  7. * rights reserved.
  8. *
  9. * Redistribution and use in source and binary forms, with or without modifica-
  10. * tion, are permitted provided that the following conditions are met:
  11. *
  12. * 1. Redistributions of source code must retain the above copyright notice,
  13. * this list of conditions and the following disclaimer.
  14. *
  15. * 2. Redistributions in binary form must reproduce the above copyright notice,
  16. * this list of conditions and the following disclaimer in the documentation
  17. * and/or other materials provided with the distribution.
  18. *
  19. * 3. The end-user documentation included with the redistribution, if any, must
  20. * include the following acknowledgment: "This product includes software
  21. * developed by the Apache Software Foundation (http://www.apache.org/)."
  22. * Alternately, this acknowledgment may appear in the software itself, if
  23. * and wherever such third-party acknowledgments normally appear.
  24. *
  25. * 4. The names "Ant" and "Apache Software Foundation" must not be used to
  26. * endorse or promote products derived from this software without prior
  27. * written permission. For written permission, please contact
  28. * apache@apache.org.
  29. *
  30. * 5. Products derived from this software may not be called "Apache", nor may
  31. * "Apache" appear in their name, without prior written permission of the
  32. * Apache Software Foundation.
  33. *
  34. * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
  35. * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
  36. * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
  37. * APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
  38. * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
  39. * DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
  40. * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
  41. * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  42. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  43. * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  44. *
  45. * This software consists of voluntary contributions made by many individuals
  46. * on behalf of the Apache Software Foundation. For more information on the
  47. * Apache Software Foundation, please see <http://www.apache.org/>.
  48. *
  49. *#
  50. ## This is where the common macro's live
  51. #macro ( table $table)
  52. <table class="ForrestTable" cellspacing="1" cellpadding="4">
  53. #foreach ( $items in $table.getChildren() )
  54. #if ($items.getName().equals("tr"))
  55. #tr ($items)
  56. #end
  57. #end
  58. </table>
  59. #end
  60. #macro ( tr $tr)
  61. <tr>
  62. #foreach ( $items in $tr.getChildren() )
  63. #if ($items.getName().equals("td"))
  64. #td ($items)
  65. #elseif ($items.getName().equals("th"))
  66. #th ($items)
  67. #end
  68. #end
  69. </tr>
  70. #end
  71. #macro ( td $value)
  72. #if ($value.getAttributeValue("colspan"))
  73. #set ($colspan = $value.getAttributeValue("colspan"))
  74. #else
  75. #set ($colspan = 1)
  76. #end
  77. #if ($value.getAttributeValue("rowspan"))
  78. #set ($rowspan = $value.getAttributeValue("rowspan"))
  79. #else
  80. #set ($rowspan = 1)
  81. #end
  82. <td colspan="$!colspan" rowspan="$!rowspan"
  83. valign="top" align="left">
  84. #if ($value.getText().length() != 0 || $value.hasChildren())
  85. $xmlout.outputString($value, true)
  86. #else
  87. &nbsp;
  88. #end
  89. </td>
  90. #end
  91. #macro ( th $value)
  92. #if ($value.getAttributeValue("colspan"))
  93. #set ($colspan = $value.getAttributeValue("colspan"))
  94. #else
  95. #set ($colspan = 1)
  96. #end
  97. #if ($value.getAttributeValue("rowspan"))
  98. #set ($rowspan = $value.getAttributeValue("rowspan"))
  99. #else
  100. #set ($rowspan = 1)
  101. #end
  102. <th colspan="$!colspan" rowspan="$!rowspan"
  103. valign="top" align="left">
  104. #if ($value.getText().length() != 0 || $value.hasChildren())
  105. $xmlout.outputString($value, true)
  106. #else
  107. &nbsp;
  108. #end
  109. </th>
  110. #end
  111. #macro ( projectanchor $name $value )
  112. #if ($value.startsWith("http://"))
  113. <a href="$value">$name</a>
  114. #elseif ($value.startsWith("/site"))
  115. <a href="http://jakarta.apache.org$value">$name</a>
  116. #else
  117. <a href="$relativePath$value">$name</a>
  118. #end
  119. #end
  120. #macro ( metaauthor $author $email )
  121. <meta name="author" content="$author">
  122. <meta name="email" content="$email">
  123. #end
  124. #macro ( image $value )
  125. #if ($value.getAttributeValue("width"))
  126. #set ($width=$value.getAttributeValue("width"))
  127. #end
  128. #if ($value.getAttributeValue("height"))
  129. #set ($height=$value.getAttributeValue("height"))
  130. #end
  131. #if ($value.getAttributeValue("align"))
  132. #set ($align=$value.getAttributeValue("align"))
  133. #end
  134. #if ($value.getAttributeValue("alt"))
  135. #set ($align=$value.getAttributeValue("alt"))
  136. #end
  137. <img src="$relativePath$value.getAttributeValue("src")"
  138. width="$!width" height="$!height" align="$!align" alt="$!alt">
  139. #end
  140. #macro ( source $value)
  141. <pre class="code">$escape.getText($value.getText())</pre>
  142. #end
  143. #macro ( makeProject )
  144. #set ($menus = $project.getChild("body").getChildren("menu"))
  145. <div class="menu"><ul>
  146. #foreach ( $menu in $menus )
  147. <li><font color="$blue1">$menu.getAttributeValue("name")</font>
  148. <ul>
  149. #foreach ( $item in $menu.getChildren() )
  150. #set ($name = $item.getAttributeValue("name"))
  151. #set ($current = $root.getChild("properties").getChild("title").getText() )
  152. <li>
  153. #if ( $current.trim().equals( $name ) )
  154. <span class="sel"><font color="$active">$name</font></span>
  155. #else
  156. #projectanchor($name $item.getAttributeValue("href"))
  157. #end
  158. </li>
  159. #end
  160. </ul>
  161. </li>
  162. #end
  163. </ul></div>
  164. #end
  165. #macro (header)
  166. <html>
  167. <!-- GENERATED FILE, DO NOT EDIT, EDIT THE XML FILE IN xdocs INSTEAD! -->
  168. <head>
  169. <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  170. <title>$project.getChild("title").getText() - $root.getChild("properties").getChild("title").getText()</title>
  171. <link type="text/css" href="page.css" rel="stylesheet">
  172. #set ($authors = $root.getChild("properties").getChildren("author"))
  173. #foreach ( $au in $authors )
  174. #metaauthor ( $au.getText() $au.getAttributeValue("email") )
  175. #end
  176. </head>
  177. <body text="$darkfg" bgcolor="$lightbg">
  178. <table summary="navigation path" width="100%" border="0" cellpadding="0" cellspacing="0">
  179. <tr>
  180. <td nowrap="nowrap" valign="middle" bgcolor="$blue1" height="20"><img height="1" width="5" alt="" border="0" src="images/spacer.gif"><font size="2" face="Arial, Helvetica, Sans-serif"><script src="breadcrumbs.js" language="JavaScript" type="text/javascript"></script></font></td>
  181. </tr>
  182. <tr>
  183. <td bgcolor="$blue2" height="2"><img height="2" width="2" alt="" border="0" src="images/spacer.gif"></td>
  184. </tr>
  185. </table>
  186. <table summary="header with logos" width="100%" border="0" cellpadding="0" cellspacing="0">
  187. <tr>
  188. <td bgcolor="$blue3"><a href="http://ant.apache.org/"><img border="0" alt="Apache Ant site" src="images/group-logo.gif"></a></td><td width="100%" align="center" bgcolor="$blue3"><a href="http://ant.apache.org/"><img alt="Apache Ant logo" border="0" src="images/project-logo.gif"></a></td><td valign="top" rowspan="2" bgcolor="$blue3">
  189. <form target="_blank" onsubmit="q.value = query.value + ' site:ant.apache.org'" action="http://www.google.com/search" method="get">
  190. <table summary="search" border="0" cellspacing="0" cellpadding="0" bgcolor="$blue2">
  191. <tr>
  192. <td colspan="3"><img height="10" width="1" alt="" src="images/spacer.gif"></td>
  193. </tr>
  194. <tr>
  195. <td><img height="1" width="1" alt="" src="images/spacer.gif"></td><td nowrap="nowrap"><input name="q" type="hidden"><input size="15" id="query" type="text"><img height="1" width="5" alt="" src="images/spacer.gif"><input name="Search" value="Search" type="submit">
  196. <br>
  197. <font face="Arial, Helvetica, Sans-serif" size="2" color="white">
  198. the Apache Ant site
  199. </font></td><td><img height="1" width="1" alt="" src="images/spacer.gif"></td>
  200. </tr>
  201. <tr>
  202. <td><img alt="" border="0" height="10" width="9" src="images/search-left.gif"></td><td><img height="1" width="1" alt="" src="images/spacer.gif"></td><td><img alt="" border="0" height="10" width="9" src="images/search-right.gif"></td>
  203. </tr>
  204. </table>
  205. </form>
  206. </td><td bgcolor="$blue3"><img height="10" width="10" alt="" src="images/spacer.gif"></td>
  207. </tr>
  208. <tr>
  209. <td valign="bottom" bgcolor="$blue3" colspan="2">
  210. <div class="tab">
  211. <table summary="tab bar" border="0" cellpadding="0" cellspacing="0">
  212. <tr>
  213. <td width="8"><img alt="" height="8" width="8" src="images/spacer.gif"></td><td valign="bottom">
  214. <table summary="selected tab" border="0" cellpadding="0" cellspacing="0">
  215. <tr>
  216. <td height="30" valign="top" width="5" bgcolor="$blue2"><img height="5" width="5" alt="" src="images/tabSel-left.gif"></td><td valign="middle" bgcolor="$blue2"><font color="$lightfg" size="2" face="Arial, Helvetica, Sans-serif"><b>Home</b></font></td><td valign="top" width="5" bgcolor="$blue2"><img height="5" width="5" alt="" src="images/tabSel-right.gif"></td>
  217. </tr>
  218. </table>
  219. </td>
  220. </tr>
  221. </table>
  222. </div>
  223. </td><td bgcolor="$blue3"><img alt="" width="1" height="1" src="images/spacer.gif"></td>
  224. </tr>
  225. <tr>
  226. <td bgcolor="$blue2" colspan="4"><img width="1" height="10" alt="" src="images/spacer.gif"></td>
  227. </tr>
  228. </table>
  229. <table summary="page content" bgcolor="$lightbg" width="100%" border="0" cellpadding="0" cellspacing="0">
  230. <tr>
  231. <td valign="top">
  232. <table summary="menu" border="0" cellspacing="0" cellpadding="0">
  233. <tr>
  234. <td rowspan="3" valign="top">
  235. <table summary="blue line" border="0" cellpadding="0" cellspacing="0">
  236. <tr>
  237. <td bgcolor="$blue3"><img width="10" height="1" alt="" src="images/spacer.gif"></td>
  238. </tr>
  239. <tr>
  240. <td bgcolor="$blue1"><font color="$blue2" size="4" face="Arial, Helvetica, Sans-serif">&nbsp;</font></td>
  241. </tr>
  242. <tr>
  243. <td bgcolor="$blue3"><img width="10" height="1" alt="" src="images/spacer.gif"></td>
  244. </tr>
  245. </table>
  246. </td><td bgcolor="$blue3"><img width="1" height="1" alt="" src="images/spacer.gif"></td><td valign="bottom" bgcolor="$blue2"><img width="10" height="10" alt="" src="images/spacer.gif"></td><td nowrap="nowrap" valign="top" bgcolor="$blue2">
  247. #makeProject()
  248. </td><td valign="bottom" bgcolor="$blue2"><img width="10" height="10" alt="" src="images/spacer.gif"></td><td bgcolor="$blue3"><img width="1" height="1" alt="" src="images/spacer.gif"></td>
  249. </tr>
  250. <tr>
  251. <td valign="bottom" align="left" colspan="2" rowspan="2" bgcolor="$blue2"><img height="10" width="10" border="0" alt="" src="images/menu-left.gif"></td><td bgcolor="$blue2"><img height="10" width="10" border="0" alt="" src="images/spacer.gif"></td><td valign="bottom" align="right" colspan="2" rowspan="2" bgcolor="$blue2"><img height="10" width="10" border="0" alt="" src="images/menu-right.gif"></td>
  252. </tr>
  253. <tr>
  254. <td height="1" bgcolor="$blue3"><img width="1" height="1" alt="" src="images/spacer.gif"></td>
  255. </tr>
  256. </table>
  257. </td><td valign="top" width="100%">
  258. <table summary="content" width="100%" border="0" cellpadding="0" cellspacing="0">
  259. <tr>
  260. <td colspan="4" bgcolor="$blue3"><img width="10" height="1" alt="" src="images/spacer.gif"></td>
  261. </tr>
  262. <tr>
  263. <td align="left" width="10" bgcolor="$blue1"><img width="10" height="1" alt="" src="images/spacer.gif"></td><td align="left" width="50%" bgcolor="$blue1"><font color="$blue2" size="3" face="Arial, Helvetica, Sans-serif">
  264. &nbsp;
  265. </font><img width="10" height="8" alt="" src="images/spacer.gif"></td><td align="right" width="50%" bgcolor="$blue1"><font color="$blue2" size="3" face="Arial, Helvetica, Sans-serif">
  266. &nbsp;
  267. </font><img width="10" height="8" alt="" src="images/spacer.gif"></td><td width="10" bgcolor="$blue1"><img width="10" height="1" alt="" src="images/spacer.gif"></td>
  268. </tr>
  269. <tr>
  270. <td colspan="4" bgcolor="$blue3"><img width="10" height="1" alt="" src="images/spacer.gif"></td>
  271. </tr>
  272. <tr>
  273. <td align="left" width="10"><img width="10" height="1" alt="" src="images/spacer.gif"></td><td align="left" width="100%">
  274. <div class="content">
  275. #end
  276. #macro (footer)
  277. </div>
  278. </td><td width="10"><img width="10" height="4" alt="" src="images/spacer.gif"></td>
  279. </tr>
  280. </table>
  281. </td>
  282. </tr>
  283. </table>
  284. <table summary="footer" cellspacing="0" cellpadding="0" width="100%" border="0">
  285. <tr>
  286. <td colspan="2" height="1" bgcolor="$blue2"><img height="1" width="1" alt="" src="images/spacer.gif"><a href="images/label.gif"></a><a href="images/page.gif"></a><a href="images/chapter.gif"></a><a href="images/chapter_open.gif"></a><a href="images/current.gif"></a><a href="/favicon.ico"></a></td>
  287. </tr>
  288. <tr>
  289. <td colspan="2" bgcolor="$blue1" class="copyright" align="center"><font size="2" face="Arial, Helvetica, Sans-Serif">Copyright &copy; 2000-2003&nbsp;The Apache Software Foundation. All rights reserved.<script type="text/javascript" language="JavaScript"><!--
  290. document.write(" - "+"Last Published: " + document.lastModified);
  291. // --></script></font></td>
  292. </tr>
  293. </table>
  294. </body>
  295. </html>
  296. #end