Author: bayard
Date: Sun Jan 4 00:18:39 2009
New Revision: 731198
URL: http://svn.apache.org/viewvc?rev=731198&view=rev
Log:
Random stab in the dark... which is more than I'm getting from the build so
far. Velocity error.
Added:
attic/site/xdocs/
attic/site/xdocs/index.xml (with props)
attic/site/xdocs/stylesheets/
attic/site/xdocs/stylesheets/project.xml (with props)
attic/site/xdocs/stylesheets/site.vsl (with props)
Modified:
attic/site/build.xml
Modified: attic/site/build.xml
URL:
http://svn.apache.org/viewvc/attic/site/build.xml?rev=731198&r1=731197&r2=731198&view=diff
==============================================================================
--- attic/site/build.xml (original)
+++ attic/site/build.xml Sun Jan 4 00:18:39 2009
@@ -53,36 +53,6 @@
</echo>
</target>
- <target name='generate-site-map' depends='prepare-texen'
if='TexenTask.present'>
- <delete quiet="true">
- <fileset dir="${texen.work}" includes="*.xml"/>
- </delete>
- <mkdir dir='${texen.work}'/>
- <taskdef
- name="texen"
-
classname="org.apache.velocity.texen.ant.TexenTask"
- classpathref='classpath' />
- <!-- Use XSLT to extract indexes from development documents -->
- <xslt
- processor="trax"
- basedir='${docs.src}/dev'
- destdir='${texen.work}'
- extension='.xml'
- style='${texen.src}/index.xsl'>
- <exclude name='navigation.xml' />
- <exclude name='sitemap.xml' />
- <exclude name='index.xml' />
- <include name='*.xml' />
- </xslt>
-
- <!-- Use Texen to combine indexes into final document -->
- <texen
- controlTemplate='control.vsl'
- outputDirectory='${docs.src}/dev'
- templatePath='${texen.src}'
-
outputFile='../../${texen.work}/generation.report' />
- </target>
-
<target name="prepare">
<available classname="org.apache.velocity.anakia.AnakiaTask"
property="AnakiaTask.present">
<classpath refid="classpath"/>
@@ -97,7 +67,7 @@
</target>
- <target name="docs" depends="prepare-error, generate-site-map"
if="AnakiaTask.present">
+ <target name="docs" depends="prepare-error" if="AnakiaTask.present">
<taskdef name="anakia"
classname="org.apache.velocity.anakia.AnakiaTask">
<classpath refid="classpath"/>
</taskdef>
@@ -124,18 +94,13 @@
<exclude name="**/*.xml"/>
<exclude name="**/stylesheets/**"/>
- <!-- Ignore the word-processor source documents
used to create the PDFs -->
- <exclude name="**/icla.odt"/>
- <exclude name="**/icla.doc"/>
-
<!-- Editor-specific ignores. -->
<exclude name="**/*~"/>
<exclude name="**/.#*"/>
</fileset>
</copy>
<echo level="info">
- The build process always rebuilds site.html, but only
rebuilds other html files
- that are older than the corresponding xml file.
+ The build process only rebuilds html files that are
older than the corresponding xml file.
If a file is not updated, and you think it should be,
try deleting the html file and rebuilding.
Or rebuild with the property: -Danakia.check.date=false
Added: attic/site/xdocs/index.xml
URL:
http://svn.apache.org/viewvc/attic/site/xdocs/index.xml?rev=731198&view=auto
==============================================================================
--- attic/site/xdocs/index.xml (added)
+++ attic/site/xdocs/index.xml Sun Jan 4 00:18:39 2009
@@ -0,0 +1,66 @@
+<?xml version="1.0"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<document>
+ <properties>
+ <author email="apache.AT.apache.DOT.org">The Apache Software
Foundation</author>
+ <title>The Apache Attic</title>
+ </properties>
+<body>
+
+<section id="attic">
+ <title>The Apache Attic</title>
+
+ <!-- TODO: Make Specifically a link to the relevant board resolution -->
+ <p>
+ The Apache Attic was created in Dec 2008 to provide process and solutions
to make it
+ clear when an Apache product has reached its end of life. Specifically to
be:
+ </p>
+ <p style="font-family: monospace">
+ "responsible for the oversight of projects which otherwise would not have
+ oversight; and be it further ... is not authorized to actively develop and
release the
+ projects under its oversight"
+ </p>
+
+</section>
+
+<section id="incoming">
+ <title>Getting into the Attic</title>
+
+ <p>There are two mechanisms by which a product may enter the Attic. Either
the managing
+ Project Management Committee (PMC) decides it would like to move the
product, or The
+ Apache Software Foundation board dissolves the PMC and chooses to move
the product. </p>
+</section>
+
+<section id="attic-projects">
+ <title>Projects in the Attic</title>
+
+ <p>There are currently no projects in the Attic. </p>
+</section>
+
+<section id="contact">
+ <title>Contacting the Attic PMC</title>
+
+ <p>The Attic is managed by a Project Management Committee (PMC). Discussions
are found on
+ the <a
href="http://mail-archives.apache.org/mod_mbox/attic-general/">general@ mailing
list</a>
+ and you are welcome to subscribe. </p>
+</section>
+
+</body>
+</document>
Propchange: attic/site/xdocs/index.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: attic/site/xdocs/stylesheets/project.xml
URL:
http://svn.apache.org/viewvc/attic/site/xdocs/stylesheets/project.xml?rev=731198&view=auto
==============================================================================
--- attic/site/xdocs/stylesheets/project.xml (added)
+++ attic/site/xdocs/stylesheets/project.xml Sun Jan 4 00:18:39 2009
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+<project name="Attic"
+ href="http://attic.apache.org/">
+
+ <title>Apache Attic</title>
+ <logo href="/images/apache-attic-logo.png">Apache Attic</logo>
+
+ <body>
+
+
+ <projects><title href="">What's the Attic?</title>
+ </projects>
+
+ <projects><title href="">Projects in the Attic</title>
+ <li><a href="">Foo Proj</a></li>
+ </projects>
+
+ <menu>
+ <title href=''>Right hand side</title>
+ <li><a href=''>menu</a></li>
+ </menu>
+
+ </body>
+</project>
Propchange: attic/site/xdocs/stylesheets/project.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: attic/site/xdocs/stylesheets/site.vsl
URL:
http://svn.apache.org/viewvc/attic/site/xdocs/stylesheets/site.vsl?rev=731198&view=auto
==============================================================================
--- attic/site/xdocs/stylesheets/site.vsl (added)
+++ attic/site/xdocs/stylesheets/site.vsl Sun Jan 4 00:18:39 2009
@@ -0,0 +1,462 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+##
+## Content Stylesheet for Site
+##
+## Defined variables
+##
+##
+## Start and end the processing
+##
+#document
+##
+## This is where the macros live
+##
+#macro ( relativise $elem )
+#if ($elem.getAttribute("href"))
+#set ($href = $elem.getAttributeValue("href"))
+#if ($href.startsWith("/"))
+#set ($elem = $elem.setAttribute("href", "$relativePath$href"))
+#end
+#end
+#if ($elem.getAttribute("src"))
+#set ($href = $elem.getAttributeValue("src"))
+#if ($href.startsWith("/"))
+#set ($elem = $elem.setAttribute("src", "$relativePath$href"))
+#end
+#end
+#end
+##
+##
+#macro ( color_table $table )
+#set ($table = $table.setAttribute("class", "colortable"))
+#foreach ( $tw in $treeWalk.allElements($table) )
+#if ($tw.getName().equals("trh"))
+#set ($tw = $tw.setAttribute("align", "left"))
+#set ($tw = $tw.setName("th"))
+#end
+#end
+#if (! $table.getAttributeValue("width"))
+#set ($table = $table.setAttribute("width", "100%"))
+#end
+$table
+#end
+##
+#macro ( make_toc )
+#set ($allSections = $root.getChild("body").getChildren("section"))
+<ul>
+#foreach ( $section in $allSections )
+<li>#if ($section.getAttributeValue("id"))
+<a href='#$section.getAttributeValue("id")'>
+#end
+$section.getChild("title").getText()
+#if ($section.getAttributeValue("id")) </a>
+#end
+#if ( $section.getChildren("section").size() > 0 ) <ul>
+#foreach ( $subsection in $section.getChildren("section") )
+<li>#if ($subsection.getAttributeValue("id"))
+<a href='#$subsection.getAttributeValue("id")'>
+#end
+$subsection.getChild("title").getText()
+#if ($subsection.getAttributeValue("id")) </a>
+#end
+#if ( $subsection.getChildren("section").size() > 0 ) <ul>
+#foreach ( $subsubsection in $subsection.getChildren("section") )
+<li>#if ($subsubsection.getAttributeValue("id"))
+<a href='#$subsubsection.getAttributeValue("id")'>
+#end
+$subsubsection.getChild("title").getText()
+#if ($subsubsection.getAttributeValue("id")) </a>
+#end
+#if ( $subsubsection.getChildren("section").size() > 0 ) <ul>
+#foreach ( $subsubsubsection in $subsubsection.getChildren("section") )
+<li>#if ($subsubsubsection.getAttributeValue("id"))
+<a href='#$subsubsubsection.getAttributeValue("id")'>
+#end
+$subsubsubsection.getChild("title").getText()
+#if ($subsubsubsection.getAttributeValue("id")) </a>
+#end
+</li>
+#end
+</ul>
+#end
+</li>
+#end
+</ul>
+#end
+</li>
+#end
+</ul>
+#end
+</li>
+#end
+</ul>
+#end
+##
+##
+#macro ( make_note $note)
+<div class="note">
+$note
+</div>
+#end
+##
+##
+#macro ( metaauthor $author $email )
+<meta name="author" content="$author" /><meta name="email" content="$email" />
+#end
+##
+##
+#macro ( metaatom $title $url )
+<link rel="alternate" title="$title" type="application/atom+xml" href="$url" />
+#end
+##
+##
+#macro ( source $value )
+<div class="source"><code>$escape.getText($value.getText())</code>
+</div>
+#end
+##
+##
+#macro ( eccnmatrix $matrix )
+<table width="100%" border="1" class="eccnmatrix">
+#foreach ( $project in $matrix.getChildren('Project') )
+<tr><th colspan="4"><a
href="$project.getAttributeValue('href')">$project.getChild('Name').getText()</a></th></tr>
+<tr>
+<th>Product Name</th>
+<th>Versions</th>
+<th>ECCN</th>
+<th>Controlled Source</th>
+</tr>
+#foreach ( $product in $project.getChildren('Product') )
+#set ($prodspan = $product.getChildren("Version").size())
+#foreach ( $version in $product.getChildren('Version') )
+#set ($sources = '')
+#foreach ( $source in $version.getChildren('ControlledSource') )
+#set ($itA = '<a href="')
+#set ($itB = '" title="')
+#set ($itC = '">')
+#set ($item =
"$itA$source.getAttributeValue('href')$itB$source.getChild('Why').getText()$itC$source.getChild('Manufacturer').getText()</a>")
+#if ($velocityCount == 1)
+#set ($sources = $item)
+#else
+#set ($sources = "$sources, $item")
+#end
+#end
+<tr>
+#if ($velocityCount == 1)
+<td rowspan="$prodspan">$product.getChild('Name').getText()</td>
+#end
+<td>$version.getChild('Names').getText()</td>
+<td>$version.getChild('ECCN').getText()</td>
+<td>$sources</td>
+</tr>
+#end
+#end
+#end
+</table>
+#end
+##
+##
+#macro ( section $section $level )
+#if ($section.getChild("title"))
+#set ($heading = $section.getChildText("title"))
+#elseif ($section.getAttributeValue("id"))
+#set ($heading = $section.getAttributeValue("id"))
+#else
+#set ($heading = "")
+#end
+
+#if ($level == 0)
+#set ($foo = "bar")
+#elseif ($level == 1)
+#if ($section.getAttributeValue("id"))
+<h4 id="$section.getAttributeValue("id")">
+ $heading
+#else
+<h4>
+ $heading
+#end
+</h4>
+#elseif ($level == 2)
+#if ($section.getAttributeValue("id"))
+<h5 id="$section.getAttributeValue("id")">
+ $heading
+#else
+<h5>
+ $heading
+#end
+</h5>
+#else
+#if ($section.getAttributeValue("id"))
+<h6 id="$section.getAttributeValue("id")">
+ $heading
+#else
+<h6>
+ $heading
+#end
+</h6>
+#end
+<div class="section-content">
+## First, walk the tree and relativise any absolute path URI references
+##foreach ( $tw in $treeWalk.allElements($section) )
+##relativise ($tw)
+##end
+## Second, output the section-level children with transformers
+#foreach ( $items in $section.getChildren() )
+#if ($items.getName().equals("source"))
+#source ($items)
+#elseif ($items.getName().equals("table"))
+#color_table ($items)
+#elseif ($items.getName().equals("note"))
+#make_note ($items)
+#elseif ($items.getName().equals("toc"))
+#make_toc ()
+#elseif ($items.getName().equals("eccnmatrix"))
+#eccnmatrix ($items)
+#elseif ($items.getName().equals("section"))
+#set ($sublevel = $level + 1)
+#section ($items $sublevel)
+#elseif ($items.getName().equals("title"))
+## we already handled this one
+#else
+$items
+#end
+#end
+</div>
+#end
+##
+##
+#macro ( makeProject )
+#set ($menus = $project.selectNodes("body/menu"))
+#foreach ( $menu in $menus )
+##foreach ( $tw in $menu.selectNodes("//*") )
+##relativise ($tw)
+##end
+#set ($title = $menu.getChild("title"))
+#if ($title.getAttributeValue("href"))
+ <h6><a
+href="$title.getAttributeValue("href")">$menu.getChildText("title")</a></h6>
+#else
+ <h6>$menu.getChildText("title")</h6>
+#end
+ <ul>
+ #foreach ( $item in $menu.getChildren("li") )
+ $item
+ #end
+ </ul>
+#end
+#end
+##
+##
+#macro ( listProjects )
+#set ($menus = $project.selectNodes("body/projects"))
+#foreach ( $menu in $menus )
+##foreach ( $tw in $menu.selectNodes("//*") )
+##relativise ($tw)
+##end
+#set ($title = $menu.getChild("title"))
+#if ($title.getAttributeValue("href"))
+ <div class="menuheader"><a
+href="$title.getAttributeValue("href")">$menu.getChildText("title")</a></div>
+#else
+ <div class="menuheader">$menu.getChildText("title")</div>
+#end
+ <ul>
+ #foreach ( $item in $menu.getChildren("li") )
+ $item
+ #end
+ </ul>
+#end
+#end
+##
+##
+#macro ( getProjectImage )
+#if ($project.getChild("logo"))
+<td align="left" valign="top">
+<a href="http://www.apache.org/"><img
src="$relativePath/images/asf_logo_wide.gif" alt="The Apache Software
Foundation" title="The Apache Software Foundation" border="0"/></a>
+</td>
+<td align="right">
+#set ( $logoString = $project.getChild("logo").getAttributeValue("href") )
+#if ( $logoString.startsWith("/") )
+<a href="$project.getAttributeValue("href")"><img
src="$relativePath$logoString" alt="$project.getChild("logo").getText()"
title="$project.getChild("logo").getText()" border="0"/></a>
+#else
+<a href="$project.getAttributeValue("href")"><img src="$logoString"
alt="$project.getChild("logo").getText()"
title="$project.getChild("logo").getText()" border="0"/></a>
+#end
+</td>
+<td>
+<!-- Need to specify height otherwise iframe seems to grab extra -->
+<iframe src="http://www.apache.org/ads/halfbanner.html" height="65"
+ style="border-width:0; float: right" frameborder="0"
scrolling="no"></iframe>
+</td>
+#else
+<td align="left" valign="top">
+<a href="http://www.apache.org/"><img
src="$relativePath/images/asf_logo_wide.gif" alt="The Apache Software
Foundation" title="The Apache Software Foundation" align="left" border="0"/></a>
+</td>
+<td>
+<!-- Need to specify height otherwise iframe seems to grab extra -->
+<iframe src="http://www.apache.org/ads/halfbanner.html" height="65"
+ style="border-width:0; float: right" frameborder="0"
scrolling="no"></iframe>
+</td>
+##<td width="150" valign="middle" align="center">
+## <p><strong><a href="http://www.apache.org/dyn/closer.cgi">Mirrored<br />
+##
Worldwide</a></strong></p>
+##</td>
+#end
+#end
+##
+##
+#macro ( document )
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <!--
+ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+ This file is generated from XML source: DO NOT EDIT!
+ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+ -->
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+#set ($base = $root.getChild("properties").getChild("base"))
+#if ( $base )
+ $base
+#end
+#set ($refresh = $root.getChild("properties").getChild("refresh").getText())
+#if ( $refresh )
+ <meta http-equiv="refresh" content="$refresh"/>
+#end
+#set ($is_dynpage = 0)
+#if ($root.getAttributeValue("id") == "closer")
+#set ($is_dynpage = 1)
+#end
+ <link rel="stylesheet" href="$relativePath/style/compressed.css"
type="text/css" media="screen, projection"/>
+ <link rel="stylesheet" href="$relativePath/style/style.css"
type="text/css" media="screen, projection"/>
+#if ($is_dynpage == 1)
+ <!--[[]if IE]><link rel="stylesheet" href="$relativePath/style/ie.css"
type="text/css" media="screen, projection"/><![[]endif]-->
+#else
+ <!--[if IE]><link rel="stylesheet" href="$relativePath/style/ie.css"
type="text/css" media="screen, projection"/><![endif]-->
+#end
+#set ($atoms = $root.getChild("properties").getChildren("atom"))
+#foreach ( $atom in $atoms )
+#metaatom ( $atom.getText() $atom.getAttributeValue("url") )
+#end
+ #set ($authors = $root.getChild("properties").getChildren("author"))
+ #foreach ( $au in $authors )
+ #metaauthor ( $au.getText() $au.getAttributeValue("email") )
+ #end
+ <title>$root.getChild("properties").getChild("title").getText() -
$project.getChild("title").getText()</title>
+#set ($scripts = $root.getChild("properties").getChildren("script"))
+#if ( $scripts )
+ $scripts
+#end
+ </head>
+#set ($isHomePage = 0)
+#set ($headerSection = $root.getChild("body").getChild("header_section"))
+#if ( $headerSection )
+ #set ($isHomePage = 1)
+#end
+#if ($isHomePage == 1)
+ <body>
+#else
+ <body id="sub">
+#end
+ <div class="navigation">
+ <ul>
+#if ($isHomePage == 0)
+ <li><a href="$relativePath/" title="Foundation
Home">Home</a></li>
+#end
+ <li><a href="$relativePath/foundation" title="About the
Foundation">Foundation</a></li>
+ <li><a href="http://projects.apache.org" title="Apache
Projects">Projects</a></li>
+ <li><a href="http://people.apache.org" title="Apache
People">People</a></li>
+ <li><a href="$relativePath/foundation/getinvolved.html"
title="Get involved in Apache">Get Involved</a></li>
+ <li><a href="$relativePath/foundation/sponsorship.html"
title="Support the mission of Apache">Support Apache</a></li>
+ <li class="dlink"><a
href="$relativePath/dyn/closer.cgi" title="Download Apache
projects">Download</a></li>
+ </ul>
+ </div>
+ <div class="container">
+ <hr class="space col"/>
+ <div class="block">
+ <div class="column span-24">
+ <div id="header">
+ #set ($headerSection =
$root.getChild("body").getChild("header_section"))
+ #if ( $headerSection )
+ $headerSection.getChildren()
+ #else
+ <!-- Add 'default' header section here. -->
+ #set ($allSections = $root.getChild("body").getChildren("section"))
+ #if ($allSections.get(0).getChild('title').getText())
+ <h1>$allSections.get(0).getChild('title').getText()</h1>
+ #end
+ #end
+ </div>
+ </div>
+ </div>
+ <hr/>
+ <div class="block">
+ #if ($isHomePage == 1)
+ <div class="column span-15 first append-1">
+ <h3>
+ #set ($allSections = $root.getChild("body").getChildren("section"))
+ #if ($allSections.get(0).getChild('title').getText())
+ $allSections.get(0).getChild('title').getText()
+ #end
+ </h3>
+ </div>
+ <div class="column span-8 las search">
+ #else
+ <div class="column span-8 prepend-16 search searchsub">
+ #end
+ <form action="http://www.google.com/search"
method="get">
+ <input value="*.apache.org" name="sitesearch"
type="hidden"/>
+ <input size="10" name="q" id="query" type="text"/>
+ <input name="Search" value="Go" type="submit"/>
+ </form>
+ </div>
+ </div>
+ <div class="block content">
+ <div class="column span-15 colborder">
+ #set ($allSections = $root.getChild("body").getChildren("section"))
+ #foreach ( $section in $allSections )
+ #set ($level = 1)
+ #if ( $section.getChild('title').getText() ==
$allSections.get(0).getChild('title').getText())
+ #set ($level = 0)
+ #end
+ #section ($section $level)
+ #end
+ </div>
+ <div class="column span-8 last">
+ <div class="block">
+ <div class="nav column span-11">
+ <div>
+ #listProjects()
+ </div>
+ </div>
+ <div class="nav column prepend-1 span-12 last">
+ #makeProject()
+ </div>
+ </div>
+ </div>
+ <div class="column span-24 footer">
+ <hr/>
+ <p>Copyright © 2008 The Apache Software Foundation, Licensed
under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License,
Version 2.0</a>.</p>
+ </div>
+ </div>
+ </div>
+</body>
+</html>
+#end
Propchange: attic/site/xdocs/stylesheets/site.vsl
------------------------------------------------------------------------------
svn:eol-style = native