chukwa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From billgra...@apache.org
Subject svn commit: r996997 - in /incubator/chukwa/site: README build.xml
Date Tue, 14 Sep 2010 17:16:43 GMT
Author: billgraham
Date: Tue Sep 14 17:16:42 2010
New Revision: 996997

URL: http://svn.apache.org/viewvc?rev=996997&view=rev
Log:
CHUKWA-519. Make it easier to publish site

Added:
    incubator/chukwa/site/README   (with props)
Modified:
    incubator/chukwa/site/build.xml

Added: incubator/chukwa/site/README
URL: http://svn.apache.org/viewvc/incubator/chukwa/site/README?rev=996997&view=auto
==============================================================================
--- incubator/chukwa/site/README (added)
+++ incubator/chukwa/site/README Tue Sep 14 17:16:42 2010
@@ -0,0 +1,35 @@
+--- To republish the Chukwa site do the following:
+
+1. Check out the source:
+svn co https://svn.apache.org/repos/asf/incubator/chukwa/site
+
+Note: You'll need Java 5 and Apache Forrest. If you don't already have Forrest,
+download it from here and untar it:
+http://forrest.apache.org/mirrors.cgi
+
+2. Make any modification to the xml files under author/, then run:
+ant —forrest.home=/path/to/forrest_home —java5.home=/path/to/java5_home
+
+This generates the documents in publish/ directory. Do an svn stat to check on
+what's changed, then commit those changes back to svn.
+
+3. Update the site:
+ssh people.apache.org
+cd /www/incubator.apache.org/chukwa
+svn update
+
+4. Wait for the site to update.
+
+--- To republish the chukwa page at http://incubator.apache.org/projects/chukwa.html
+
+1. Check out the source
+svn co https://svn.apache.org/repos/asf/incubator/public/trunk/site-publish
+
+2. Make any modifications to projects/chukwa.html
+
+3. Update the site
+ssh people.apache.org
+cd /www/incubator.apache.org/projects 
+svn update
+
+4. Wait for the site to update.

Propchange: incubator/chukwa/site/README
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/chukwa/site/README
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Modified: incubator/chukwa/site/build.xml
URL: http://svn.apache.org/viewvc/incubator/chukwa/site/build.xml?rev=996997&r1=996996&r2=996997&view=diff
==============================================================================
--- incubator/chukwa/site/build.xml (original)
+++ incubator/chukwa/site/build.xml Tue Sep 14 17:16:42 2010
@@ -2,8 +2,8 @@
 
 <project name="site" default="update" basedir=".">
   
-  <target name="update" depends="clean">
-    <exec dir="author" executable="forrest" failonerror="true">
+  <target name="update" depends="forrest.check,java.check,clean" description="Generate
forrest-based documentation. To use, specify -Dforrest.home=[base of Apache Forrest installation]
-Djava5.home=[java5 home] on the command line." if="forrest.home">
+    <exec dir="author" executable="${forrest.home}/bin/forrest" failonerror="true">
 				<env key="JAVA_HOME" value="${java5.home}" />
     </exec>
     <copy todir="publish/">
@@ -11,6 +11,14 @@
     </copy>
   </target>
 
+  <target name="forrest.check" unless="forrest.home">
+    <fail message="'forrest.home' is not defined. Please pass -Dforrest.home=[base of
Apache Forrest installation] to Ant on the command-line." />
+  </target>
+
+  <target name="java.check" unless="java5.home">
+    <fail message="'java5.home' is not defined. Please pass -Djava5.home=[java 5 home
dir] to Ant on the command-line." />
+  </target>
+
   <target name="clean">
     <delete dir="author/build"/>
   </target>



Mime
View raw message