incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject svn commit: r674167 - in /incubator/public/trunk: ./ site-author/audit/ site-author/stylesheets/audit/ site-publish/audit/
Date Sat, 05 Jul 2008 09:12:54 GMT
Author: rdonkin
Date: Sat Jul  5 02:12:53 2008
New Revision: 674167

URL: http://svn.apache.org/viewvc?rev=674167&view=rev
Log:
Generate basic audit index

Added:
    incubator/public/trunk/site-author/audit/index.xml
    incubator/public/trunk/site-author/stylesheets/audit/
      - copied from r673502, incubator/public/trunk/site-author/stylesheets/sitemap/
    incubator/public/trunk/site-publish/audit/index.html
Removed:
    incubator/public/trunk/site-author/stylesheets/audit/index.xsl
Modified:
    incubator/public/trunk/build.xml
    incubator/public/trunk/site-author/stylesheets/audit/control.vsl
    incubator/public/trunk/site-author/stylesheets/audit/index.vsl

Modified: incubator/public/trunk/build.xml
URL: http://svn.apache.org/viewvc/incubator/public/trunk/build.xml?rev=674167&r1=674166&r2=674167&view=diff
==============================================================================
--- incubator/public/trunk/build.xml (original)
+++ incubator/public/trunk/build.xml Sat Jul  5 02:12:53 2008
@@ -72,14 +72,14 @@
 	-->
 	<property name="sitemap.work" value="target/texen"/>
 	<property name="sitemap.src" value="${docs.src}/stylesheets/sitemap"/>
-	<target name="prepare-texen">
+	<target name="_prepare-texen">
 		<available classname="org.apache.velocity.texen.ant.TexenTask" 
             property="TexenTask.present">
 			<classpath refid="classpath"/>
 		</available>
 	</target>
 	
-	<target name='generate-site-map' depends='prepare-texen' if='TexenTask.present'>
+	<target name='generate-site-map' depends='_prepare-texen' if='TexenTask.present'>
 		<delete quiet="true" dir="${sitemap.work}"/>
 		<mkdir dir='${sitemap.work}'/>
 		<taskdef 
@@ -116,6 +116,29 @@
 ===========
 	-->
 	
+	<!--
+	Audit index generation
+	-->
+	<property name="audit.index.work" value="target/audit-gen"/>
+	<property name="audit.index.src" value="${docs.src}/stylesheets/audit"/>
+	
+	<target name='generate-audit-index' depends='_prepare-texen' if='TexenTask.present'>
+		<delete quiet="true" dir="${audit.index.work}"/>
+		<mkdir dir='${audit.index.work}'/>
+		<taskdef 
+				name="texen" 
+				classname="org.apache.velocity.texen.ant.TexenTask" 
+				classpathref='classpath' />
+
+		<!-- Use Texen to generate index -->
+		<texen 
+				controlTemplate='control.vsl' 
+				outputDirectory='${docs.src}' 
+				templatePath='${audit.index.src}' 
+				outputFile='../${sitemap.work}/generation.report' />
+	</target>
+	
+	
 	<property name='dir.build' value='target'/>
 	<property name='dir.audit' value='site-author/audit'/>
 	<property name='audit.mailinglist.address' value='general@incubator.apache.org'/>

Added: incubator/public/trunk/site-author/audit/index.xml
URL: http://svn.apache.org/viewvc/incubator/public/trunk/site-author/audit/index.xml?rev=674167&view=auto
==============================================================================
--- incubator/public/trunk/site-author/audit/index.xml (added)
+++ incubator/public/trunk/site-author/audit/index.xml Sat Jul  5 02:12:53 2008
@@ -0,0 +1,72 @@
+<?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. 
+-->
+<!--
+DO NOT EDIT 
+THIS IS GENERATED FROM xdocs/stylesheets/texen/index.vsl
+EDIT THAT FILE INSTEAD
+-->
+<document>
+  <properties>
+    <title>Audit Records</title>
+  </properties>
+<body>
+<section><title>Auditing</title>
+<p>
+The directories containing the released artifacts are scanned regularly. 
+Meta-data is collected for each file and stored as xml. Differences between
+successive runs are calculated then stored as xml. This xml is used to generate
+reports.
+</p>
+</section>
+<section><title>Audit Records</title>
+<ul>
+<li><a href='changes-2008-01-24.html'>changes-2008-01-24</a></li>
+<li><a href='changes-2008-01-26.html'>changes-2008-01-26</a></li>
+<li><a href='changes-2008-01-27.html'>changes-2008-01-27</a></li>
+<li><a href='changes-2008-01-29.html'>changes-2008-01-29</a></li>
+<li><a href='changes-2008-03-02.html'>changes-2008-03-02</a></li>
+<li><a href='changes-2008-05-05.html'>changes-2008-05-05</a></li>
+<li><a href='changes-2008-05-07.html'>changes-2008-05-07</a></li>
+<li><a href='changes-2008-05-17.html'>changes-2008-05-17</a></li>
+<li><a href='changes-2008-05-25.html'>changes-2008-05-25</a></li>
+<li><a href='changes-2008-05-26.html'>changes-2008-05-26</a></li>
+<li><a href='changes-2008-05-27.html'>changes-2008-05-27</a></li>
+<li><a href='changes-2008-05-29.html'>changes-2008-05-29</a></li>
+<li><a href='changes-2008-05-31.html'>changes-2008-05-31</a></li>
+<li><a href='changes-2008-06-11.html'>changes-2008-06-11</a></li>
+<li><a href='changes-2008-06-19.html'>changes-2008-06-19</a></li>
+<li><a href='rat-scan-data-2008-05-31.html'>rat-scan-data-2008-05-31</a></li>
+<li><a href='rat-scan-data-2008-06-11.html'>rat-scan-data-2008-06-11</a></li>
+<li><a href='rat-scan-data-2008-06-19.html'>rat-scan-data-2008-06-19</a></li>
+<li><a href='rat-scan-data-2008-06-21.html'>rat-scan-data-2008-06-21</a></li>
+<li><a href='rat-scan-data-2008-06-28.html'>rat-scan-data-2008-06-28</a></li>
+<li><a href='rat-scan-data-2008-06-29.html'>rat-scan-data-2008-06-29</a></li>
+<li><a href='rat-scan-diff-2008-06-11.html'>rat-scan-diff-2008-06-11</a></li>
+<li><a href='rat-scan-diff-2008-06-19.html'>rat-scan-diff-2008-06-19</a></li>
+<li><a href='rat-scan-diff-2008-06-21.html'>rat-scan-diff-2008-06-21</a></li>
+<li><a href='rat-scan-diff-2008-06-28.html'>rat-scan-diff-2008-06-28</a></li>
+<li><a href='rat-scan-report-2008-06-11.html'>rat-scan-report-2008-06-11</a></li>
+<li><a href='rat-scan-report-2008-06-19.html'>rat-scan-report-2008-06-19</a></li>
+<li><a href='rat-scan-report-2008-06-21.html'>rat-scan-report-2008-06-21</a></li>
+<li><a href='rat-scan-report-2008-06-28.html'>rat-scan-report-2008-06-28</a></li>
+</ul>
+</section>
+</body>
+</document>

Modified: incubator/public/trunk/site-author/stylesheets/audit/control.vsl
URL: http://svn.apache.org/viewvc/incubator/public/trunk/site-author/stylesheets/audit/control.vsl?rev=674167&r1=673502&r2=674167&view=diff
==============================================================================
--- incubator/public/trunk/site-author/stylesheets/audit/control.vsl (original)
+++ incubator/public/trunk/site-author/stylesheets/audit/control.vsl Sat Jul  5 02:12:53 2008
@@ -17,29 +17,6 @@
 ##  under the License. 
 ##
 
-#macro ( process $file $base )
-#set ( $name = $strings.chop( $file.getName(),3 ) )
-#set ( $name = $strings.concat( [$base, $name, "html"] ) )
-#set ( $filecontents = $strings.fileContentsToString( $file.getPath() ).trim() )
-#set ( $length = ${filecontents.length()} )
-#set ( $start = ${filecontents.indexOf("?>")} + 2)
-#set ( $contents =  $strings.concat([ $contents, $filecontents.substring( $start,  $length)
]))
-## @@@document-name@@@ is a placeholder for the name of the html document referred to
-#set ( $contents = $contents.replaceAll("@@@document-name@@@", $name) )
-#end
-
-#macro ( scan $dir $relative_base )
-#set ( $temp = $relative_base )
-#foreach ($file in $sorter.sort(${dir.listFiles()}))
-#if ( $file.getName().endsWith(".xml") )
-	#process( $file $temp )
-#end
-#if ( $file.isDirectory() )
-#scan ( $file $strings.concat( [ $relative_base, $file.getName(), "/" ] ) )
-#end
-#end
-#end
-
 ##
 ## This document drives the generation process.
 ## It relies on indexes generated by XSLT
@@ -47,15 +24,26 @@
 
 Generating siteindex...
 
-#set ( $contents = "" )
-#set ($dir = $files.file("target/texen"))
+#set ($dir = $files.file("site-author/audit"))
 
 Using directory $dir.getAbsolutePath()
 
 ## Hack to define sorter object. There's probably a better way to do this ;-)
-#set ($sorter = $generator.getClass().forName("org.apache.velocity.tools.generic.SortTool").newInstance())
-#scan( $dir  "" )
+#set ( $sorter = $generator.getClass().forName("org.apache.velocity.tools.generic.SortTool").newInstance())
+#set ( $contents = [] )
+
+#foreach ($file in $sorter.sort(${dir.listFiles()}))
+#if ( $file.getName().endsWith(".xml") && ! ($file.getName() == "index.xml") )
+#set ( $name = $strings.chop( $file.getName(),4 ) )
+#set ( $added = $contents.add( $name ) )
+#end
+#if ( $file.getName().endsWith(".html") )
+#set ( $name = $strings.chop( $file.getName(),5 ) )
+#set ( $added = $contents.add( $name ) )
+#end
+#end
+
 ...
-$generator.parse("index.vsl", "sitemap.xml", "contents", $contents)
+$generator.parse("index.vsl", "audit/index.xml", "contents", $contents)
 ...
 Finished :-)
\ No newline at end of file

Modified: incubator/public/trunk/site-author/stylesheets/audit/index.vsl
URL: http://svn.apache.org/viewvc/incubator/public/trunk/site-author/stylesheets/audit/index.vsl?rev=674167&r1=673502&r2=674167&view=diff
==============================================================================
--- incubator/public/trunk/site-author/stylesheets/audit/index.vsl (original)
+++ incubator/public/trunk/site-author/stylesheets/audit/index.vsl Sat Jul  5 02:12:53 2008
@@ -29,16 +29,22 @@
 -->
 <document>
   <properties>
-    <title>Apache Incubator Document Index</title>
+    <title>Audit Records</title>
   </properties>
 <body>
-
-<section><title>Documentation Index</title>
+<section><title>Auditing</title>
+<p>
+The directories containing the released artifacts are scanned regularly. 
+Meta-data is collected for each file and stored as xml. Differences between
+successive runs are calculated then stored as xml. This xml is used to generate
+reports.
+</p>
+</section>
+<section><title>Audit Records</title>
 <ul>
-##
-## The contents of the index will replace this variable
-##
-$contents
+#foreach ($page in $contents)
+<li><a href='${page}.html'>$page</a></li>
+#end
 </ul>
 </section>
 </body>

Added: incubator/public/trunk/site-publish/audit/index.html
URL: http://svn.apache.org/viewvc/incubator/public/trunk/site-publish/audit/index.html?rev=674167&view=auto
==============================================================================
--- incubator/public/trunk/site-publish/audit/index.html (added)
+++ incubator/public/trunk/site-publish/audit/index.html Sat Jul  5 02:12:53 2008
@@ -0,0 +1,201 @@
+<!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.
+-->
+<html>
+ <head>
+  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+  <link rel="stylesheet" href="../style/style.css" type="text/css" />
+        <title>Audit Records - Apache Incubator</title>
+ </head>
+ <body>        
+  <table border="0" width="100%" cellspacing="0">
+   <tr><!-- SITE BANNER AND PROJECT IMAGE -->
+    <td align="left" valign="top">
+<a href="http://www.apache.org/"><img src="http://www.apache.org/images/asf_logo_wide.gif"
alt="The Apache Software Foundation" border="0"/></a>
+</td>
+<td align="right">
+<a href="http://incubator.apache.org/"><img src="../images/apache-incubator-logo.png"
alt="Apache Incubator" border="0"/></a>
+</td>
+   </tr>
+  </table>
+  <table border="0" width="100%" cellspacing="4">
+   <tr><td colspan="3"><hr noshade="noshade" size="1"/></td></tr>
+   <tr>
+    <!-- LEFT SIDE NAVIGATION -->
+    <td valign="top" nowrap="nowrap" class="navleft">
+           <div class="menuheader"><a 
+href="http://www.apache.org/foundation/glossary.html#Podling">Podlings (What's that?)</a></div>

+    <menu compact="compact">
+          <li><a href="/incubation/Incubation_Policy.html">How? (Policy)</a></li>

+          <li><a href="/incubation/Roles_and_Responsibilities.html">Who? (Roles)</a></li>

+          <li><a href="/incubation/Process_Description.html">When? (Process)</a></li>

+            </menu>
+      <div class="menuheader"><a 
+href="/guides/index.html">Entry Guides</a></div> 
+    <menu compact="compact">
+          <li><a href="/guides/proposal.html">Proposal Guide</a></li>

+            </menu>
+      <div class="menuheader"><a 
+href="/guides/index.html">Podling Guides</a></div> 
+    <menu compact="compact">
+          <li><a href="/guides/committer.html">Podling Committers</a></li>

+          <li><a href="/guides/ppmc.html">Podling PMC (PPMC)</a></li>

+          <li><a href="/guides/mentor.html">Podling Mentor</a></li>

+          <li><a href="/guides/releasemanagement.html">Podling Releases</a></li>

+          <li><a href="/guides/branding.html">Podling Branding</a></li>

+          <li><a href="/guides/sites.html">Podling Websites</a></li>

+          <li><a href="/guides/graduation.html">Graduation</a></li>

+            </menu>
+      <div class="menuheader"><a 
+href="/ip-clearance/index.html">IP Clearance</a></div> 
+    <menu compact="compact">
+            </menu>
+      <div class="menuheader"><a 
+href="/whoweare.html">Who We Are</a></div> 
+    <menu compact="compact">
+            </menu>
+      <div class="menuheader"><a 
+href="http://www.apache.org">ASF</a></div> 
+    <menu compact="compact">
+          <li><a href="http://www.apache.org/foundation/how-it-works.html">How
Apache Works</a></li> 
+          <li><a href="http://www.apache.org/dev/">Developer Documentation</a></li>

+          <li><a href="http://www.apache.org/foundation/">Foundation</a></li>

+          <li><a href="http://www.apache.org/foundation/sponsorship.html">Sponsor
Apache</a></li> 
+          <li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>

+            </menu>
+      <div class="menuheader">Other Guides</div>
+    <menu compact="compact">
+          <li><a href="/guides/participation.html">Participation</a></li>

+          <li><a href="/faq.html">General FAQ</a></li> 
+          <li><a href="/guides/pmc.html">PMC</a> (<a href="/guides/chair.html">Chair</a>)</li>

+          <li><a href="/guides/lists.html">Mailing Lists</a></li>

+          <li><a href="/guides/website.html">Incubator Website</a></li>

+            </menu>
+      <div class="menuheader"><a 
+href="http://wiki.apache.org/incubator">Wiki</a></div> 
+    <menu compact="compact">
+            </menu>
+
+    <!-- start Ads Server -->
+    <iframe src="http://www.apache.org/ads/buttonbar.html"
+        style="border-width:0; float: left" frameborder="0" scrolling="no"
+        width="135" height="265"></iframe>
+    <!-- end Ads Server -->
+    </td>
+    <!-- CONTENT -->
+    <td align="left" valign="top" class="content">
+                <h2><img src="../images/redarrow.gif" />
+   Auditing
+</h2>
+<div class="section-content">
+<p>
+The directories containing the released artifacts are scanned regularly. 
+Meta-data is collected for each file and stored as xml. Differences between
+successive runs are calculated then stored as xml. This xml is used to generate
+reports.
+</p>
+</div>
+           <h2><img src="../images/redarrow.gif" />
+   Audit Records
+</h2>
+<div class="section-content">
+<ul>
+<li><a href="changes-2008-01-24.html">changes-2008-01-24</a></li>
+<li><a href="changes-2008-01-26.html">changes-2008-01-26</a></li>
+<li><a href="changes-2008-01-27.html">changes-2008-01-27</a></li>
+<li><a href="changes-2008-01-29.html">changes-2008-01-29</a></li>
+<li><a href="changes-2008-03-02.html">changes-2008-03-02</a></li>
+<li><a href="changes-2008-05-05.html">changes-2008-05-05</a></li>
+<li><a href="changes-2008-05-07.html">changes-2008-05-07</a></li>
+<li><a href="changes-2008-05-17.html">changes-2008-05-17</a></li>
+<li><a href="changes-2008-05-25.html">changes-2008-05-25</a></li>
+<li><a href="changes-2008-05-26.html">changes-2008-05-26</a></li>
+<li><a href="changes-2008-05-27.html">changes-2008-05-27</a></li>
+<li><a href="changes-2008-05-29.html">changes-2008-05-29</a></li>
+<li><a href="changes-2008-05-31.html">changes-2008-05-31</a></li>
+<li><a href="changes-2008-06-11.html">changes-2008-06-11</a></li>
+<li><a href="changes-2008-06-19.html">changes-2008-06-19</a></li>
+<li><a href="rat-scan-data-2008-05-31.html">rat-scan-data-2008-05-31</a></li>
+<li><a href="rat-scan-data-2008-06-11.html">rat-scan-data-2008-06-11</a></li>
+<li><a href="rat-scan-data-2008-06-19.html">rat-scan-data-2008-06-19</a></li>
+<li><a href="rat-scan-data-2008-06-21.html">rat-scan-data-2008-06-21</a></li>
+<li><a href="rat-scan-data-2008-06-28.html">rat-scan-data-2008-06-28</a></li>
+<li><a href="rat-scan-data-2008-06-29.html">rat-scan-data-2008-06-29</a></li>
+<li><a href="rat-scan-diff-2008-06-11.html">rat-scan-diff-2008-06-11</a></li>
+<li><a href="rat-scan-diff-2008-06-19.html">rat-scan-diff-2008-06-19</a></li>
+<li><a href="rat-scan-diff-2008-06-21.html">rat-scan-diff-2008-06-21</a></li>
+<li><a href="rat-scan-diff-2008-06-28.html">rat-scan-diff-2008-06-28</a></li>
+<li><a href="rat-scan-report-2008-06-11.html">rat-scan-report-2008-06-11</a></li>
+<li><a href="rat-scan-report-2008-06-19.html">rat-scan-report-2008-06-19</a></li>
+<li><a href="rat-scan-report-2008-06-21.html">rat-scan-report-2008-06-21</a></li>
+<li><a href="rat-scan-report-2008-06-28.html">rat-scan-report-2008-06-28</a></li>
+</ul>
+</div>
+         </td>
+    <!-- RIGHT SIDE NAVIGATION -->
+    <td valign="top" nowrap="nowrap" class="navright">
+           <div class="menuheader"><a 
+href="http://www.apache.org/foundation/sponsorship.html">Thanks</a></div>
+    <menu compact="compact">
+          <li><a href="http://www.apache.org/foundation/thanks.html">Apache sponsors</a></li>

+        </menu>
+      <div class="menuheader"><a 
+href="/projects/index.html">Projects</a></div>
+    <menu compact="compact">
+          <li><a href="/projects/abdera.html">Abdera</a></li> 
+          <li><a href="/projects/buildr.html">Buildr</a></li> 
+          <li><a href="/projects/couchdb.html">CouchDB</a></li> 
+          <li><a href="/projects/jspwiki.html">JSPWiki</a></li> 
+          <li><a href="/projects/hama.html">Hama</a></li> 
+          <li><a href="/projects/imperius.html">Imperius</a></li>

+          <li><a href="/projects/lokahi.html">Lokahi</a></li> 
+          <li><a href="/projects/log4php.html">Log4php</a></li> 
+          <li><a href="/projects/lucene.net.html">Lucene.Net</a></li>

+          <li><a href="/projects/nmaven.html">NMaven</a></li> 
+          <li><a href="/projects/pdfbox.html">PDFBox</a></li> 
+          <li><a href="/projects/pig.html">Pig</a></li> 
+          <li><a href="/projects/qpid.html">Qpid</a></li> 
+          <li><a href="/projects/rcf.html">RCF</a></li> 
+          <li><a href="/projects/river.html">River</a></li> 
+          <li><a href="/projects/sanselan.html">Sanselan</a></li>

+          <li><a href="/projects/shindig.html">Shindig</a></li> 
+          <li><a href="/projects/sling.html">Sling</a></li> 
+          <li><a href="/projects/tika.html">Tika</a></li> 
+          <li><a href="/projects/uima.html">UIMA</a></li> 
+          <li><a href="/projects/wsrp4j.html">WSRP4J</a></li> 
+          <li><a href="/projects/xap.html">XAP</a></li> 
+        </menu>
+
+<form action="http://www.google.com/search" method="get">
+    <input value="incubator.apache.org" name="sitesearch" type="hidden"/>
+    <input size="8" name="q" id="query" type="text" value="search..."
+        onclick="if(this.value == 'search...') {this.value = ''}"/>
+    <input name="Search" value="Go" type="submit"/>
+</form>
+    </td>     
+   </tr>
+   <!-- FOOTER -->
+   <tr><td colspan="3"><hr noshade="noshade" size="1"/></td></tr>
+   <tr><td colspan="3" class="footer">
+         Copyright &#169; 2008 The Apache Software Foundation<br />
+Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License,
Version 2.0</a>.
+       </td>
+   </tr>
+  </table>
+ </body>
+</html>



---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@incubator.apache.org
For additional commands, e-mail: cvs-help@incubator.apache.org


Mime
View raw message