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 16 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  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. #end
  75. #if ($value.getAttributeValue("rowspan"))
  76. #set ($rowspan = $value.getAttributeValue("rowspan"))
  77. #end
  78. <td colspan="$!colspan" rowspan="$!rowspan"
  79. valign="top" align="left">
  80. #if ($value.getText().length() != 0 || $value.hasChildren())
  81. $xmlout.outputString($value, true)
  82. #else
  83. &nbsp;
  84. #end
  85. </td>
  86. #end
  87. #macro ( th $value)
  88. #if ($value.getAttributeValue("colspan"))
  89. #set ($colspan = $value.getAttributeValue("colspan"))
  90. #end
  91. #if ($value.getAttributeValue("rowspan"))
  92. #set ($rowspan = $value.getAttributeValue("rowspan"))
  93. #end
  94. <th colspan="$!colspan" rowspan="$!rowspan"
  95. valign="top" align="left">
  96. #if ($value.getText().length() != 0 || $value.hasChildren())
  97. $xmlout.outputString($value, true)
  98. #else
  99. &nbsp;
  100. #end
  101. </th>
  102. #end
  103. #macro ( projectanchor $name $value )
  104. #if ($value.startsWith("http://"))
  105. <a href="$value">$name</a>
  106. #elseif ($value.startsWith("/site"))
  107. <a href="http://jakarta.apache.org$value">$name</a>
  108. #else
  109. <a href="$relativePath$value">$name</a>
  110. #end
  111. #end
  112. #macro ( metaauthor $author $email )
  113. <meta name="author" value="$author">
  114. <meta name="email" value="$email">
  115. #end
  116. #macro ( image $value )
  117. #if ($value.getAttributeValue("width"))
  118. #set ($width=$value.getAttributeValue("width"))
  119. #end
  120. #if ($value.getAttributeValue("height"))
  121. #set ($height=$value.getAttributeValue("height"))
  122. #end
  123. #if ($value.getAttributeValue("align"))
  124. #set ($align=$value.getAttributeValue("align"))
  125. #end
  126. <img src="$relativePath$value.getAttributeValue("src")"
  127. width="$!width" height="$!height" align="$!align">
  128. #end
  129. #macro ( source $value)
  130. <pre class="code">$escape.getText($value.getText())</pre>
  131. #end
  132. #macro ( makeProject )
  133. #set ($menus = $project.getChild("body").getChildren("menu"))
  134. <div class="menu"><ul>
  135. #foreach ( $menu in $menus )
  136. <li><font color="$blue1">$menu.getAttributeValue("name")</font>
  137. <ul>
  138. #foreach ( $item in $menu.getChildren() )
  139. #set ($name = $item.getAttributeValue("name"))
  140. #set ($current = $root.getChild("properties").getChild("title").getText() )
  141. <li>
  142. #if ( $current.trim().equals( $name ) )
  143. <span class="sel"><font color="$active">$name</font></span>
  144. #else
  145. #projectanchor($name $item.getAttributeValue("href"))
  146. #end
  147. </li>
  148. #end
  149. </ul>
  150. </li>
  151. #end
  152. </ul>
  153. #end
  154. #macro (getProjectImage)
  155. #if ($project.getChild("logo"))
  156. <td align="left">
  157. <a href="http://jakarta.apache.org"><img src="images/jakarta-logo.gif" border="0"/></a>
  158. </td>
  159. <td align="right">
  160. #set ( $logoString = $project.getChild("logo").getAttributeValue("href") )
  161. #if ( $logoString.startsWith("/") )
  162. <a href="$project.getAttributeValue("href")"><img src="$relativePath$logoString" alt="$project.getChild("logo").getText()" border="0"/></a>
  163. #else
  164. <a href="$project.getAttributeValue("href")"><img src="$relativePath/$logoString" alt="$project.getChild("logo").getText()" border="0"/></a>
  165. #end
  166. </td>
  167. #else
  168. <td colspan="2">
  169. <a href="http://jakarta.apache.org"><img src="http://jakarta.apache.org/images/jakarta-logo.gif" align="left" border="0"/></a>
  170. </td>
  171. #end
  172. #end
  173. #macro (header)
  174. <html>
  175. <!-- GENERATED FILE, DO NOT EDIT, EDIT THE XML FILE IN xdocs INSTEAD! -->
  176. <head>
  177. <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  178. <title>$project.getChild("title").getText() - $root.getChild("properties").getChild("title").getText()</title>
  179. <link type="text/css" href="page.css" rel="stylesheet">
  180. #set ($authors = $root.getChild("properties").getChildren("author"))
  181. #foreach ( $au in $authors )
  182. #metaauthor ( $au.getText() $au.getAttributeValue("email") )
  183. #end
  184. </head>
  185. <body marginheight="0" marginwidth="0" topmargin="0" leftmargin="0" text="$darkfg" bgcolor="$lightbg">
  186. <table summary="navigation path" width="100%" border="0" cellpadding="0" cellspacing="0">
  187. <tr>
  188. <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>
  189. </tr>
  190. <tr>
  191. <td bgcolor="$blue2" height="2"><img height="2" width="2" alt="" border="0" src="images/spacer.gif"></td>
  192. </tr>
  193. </table>
  194. <table summary="header with logos" width="100%" border="0" cellpadding="0" cellspacing="0">
  195. <tr>
  196. <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">
  197. <form target="_blank" onsubmit="q.value = query.value + ' site:ant.apache.org'" action="http://www.google.com/search" method="get">
  198. <table summary="search" border="0" cellspacing="0" cellpadding="0" bgcolor="$blue2">
  199. <tr>
  200. <td colspan="3"><img height="10" width="1" alt="" src="images/spacer.gif"></td>
  201. </tr>
  202. <tr>
  203. <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">
  204. <br>
  205. <font face="Arial, Helvetica, Sans-serif" size="2" color="white">
  206. the Apache Ant site
  207. </font></td><td><img height="1" width="1" alt="" src="images/spacer.gif"></td>
  208. </tr>
  209. <tr>
  210. <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>
  211. </tr>
  212. </table>
  213. </form>
  214. </td><td bgcolor="$blue3"><img height="10" width="10" alt="" src="images/spacer.gif"></td>
  215. </tr>
  216. <tr>
  217. <td valign="bottom" bgcolor="$blue3" colspan="2">
  218. <div class="tab">
  219. <table summary="tab bar" border="0" cellpadding="0" cellspacing="0">
  220. <tr>
  221. <td width="8"><img alt="" height="8" width="8" src="images/spacer.gif"></td><td valign="bottom">
  222. <table summary="selected tab" height="30" border="0" cellpadding="0" cellspacing="0">
  223. <tr>
  224. <td 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>
  225. </tr>
  226. </table>
  227. </td>
  228. </tr>
  229. </table>
  230. </div>
  231. </td><td bgcolor="$blue3"><img alt="" width="1" height="1" src="images/spacer.gif"></td>
  232. </tr>
  233. <tr>
  234. <td bgcolor="$blue2" colspan="4"><img width="1" height="10" alt="" src="images/spacer.gif"></td>
  235. </tr>
  236. </table>
  237. <table summary="page content" bgcolor="$lightbg" width="100%" border="0" cellpadding="0" cellspacing="0">
  238. <tr>
  239. <td valign="top">
  240. <table summary="menu" border="0" cellspacing="0" cellpadding="0">
  241. <tr>
  242. <td rowspan="3" valign="top">
  243. <table summary="blue line" border="0" cellpadding="0" cellspacing="0">
  244. <tr>
  245. <td bgcolor="$blue3"><img width="10" height="1" alt="" src="images/spacer.gif"></td>
  246. </tr>
  247. <tr>
  248. <td bgcolor="$blue1"><font color="$blue2" size="4" face="Arial, Helvetica, Sans-serif">&nbsp;</font></td>
  249. </tr>
  250. <tr>
  251. <td bgcolor="$blue3"><img width="10" height="1" alt="" src="images/spacer.gif"></td>
  252. </tr>
  253. </table>
  254. </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">
  255. #makeProject()
  256. </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>
  257. </tr>
  258. <tr>
  259. <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>
  260. </tr>
  261. <tr>
  262. <td height="1" bgcolor="$blue3"><img width="1" height="1" alt="" src="images/spacer.gif"></td>
  263. </tr>
  264. </table>
  265. </td><td valign="top" width="100%">
  266. <table summary="content" width="100%" border="0" cellpadding="0" cellspacing="0">
  267. <tr>
  268. <td colspan="4" bgcolor="$blue3"><img width="10" height="1" alt="" src="images/spacer.gif"></td>
  269. </tr>
  270. <tr>
  271. <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">
  272. &nbsp;
  273. </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">
  274. &nbsp;
  275. </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>
  276. </tr>
  277. <tr>
  278. <td colspan="4" bgcolor="$blue3"><img width="10" height="1" alt="" src="images/spacer.gif"></td>
  279. </tr>
  280. <tr>
  281. <td align="left" width="10"><img width="10" height="1" alt="" src="images/spacer.gif"></td><td align="left" width="100%">
  282. <div class="content">
  283. #end
  284. #macro (footer)
  285. </div>
  286. </td><td width="10"><img width="10" height="1" alt="" src="images/spacer.gif"></td>
  287. </tr>
  288. </table>
  289. </td>
  290. </tr>
  291. </table>
  292. <table summary="footer" cellspacing="0" cellpadding="0" width="100%" height="20" border="0">
  293. <tr>
  294. <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>
  295. </tr>
  296. <tr>
  297. <td colspan="2" bgcolor="$blue1" class="copyright" align="center"><font size="2" face="Arial, Helvetica, Sans-Serif">Copyright &copy;
  298. 2000-2003&nbsp;The Apache Software Foundation. All rights reserved.<script type="text/javascript" language="JavaScript"><!--
  299. document.write(" - "+"Last Published: " + document.lastModified);
  300. // --></script></font></td>
  301. </tr>
  302. </table>
  303. </body>
  304. </html>
  305. #end