cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amania...@apache.org
Subject svn commit: r759943 - /cayenne/site/trunk/tlp-site/bin/javadoc-update.sh
Date Mon, 30 Mar 2009 12:34:14 GMT
Author: amaniatis
Date: Mon Mar 30 12:34:14 2009
New Revision: 759943

URL: http://svn.apache.org/viewvc?rev=759943&view=rev
Log:
Add the script that has been generating our nightly javadocs for the last two years to subversion.
This runs in a cron job nightly.

It also now publishes the XSD schema.


Added:
    cayenne/site/trunk/tlp-site/bin/javadoc-update.sh

Added: cayenne/site/trunk/tlp-site/bin/javadoc-update.sh
URL: http://svn.apache.org/viewvc/cayenne/site/trunk/tlp-site/bin/javadoc-update.sh?rev=759943&view=auto
==============================================================================
--- cayenne/site/trunk/tlp-site/bin/javadoc-update.sh (added)
+++ cayenne/site/trunk/tlp-site/bin/javadoc-update.sh Mon Mar 30 12:34:14 2009
@@ -0,0 +1,34 @@
+#!/usr/local/bin/bash
+
+CAYSVN="/home/amaniatis/svn/cayenne"
+MVNINSTALLDIR="/home/amaniatis/.m2/repository/org/apache/cayenne/docs/cayenne-doc/3.0-SNAPSHOT"
+TARGETDIR="/x1/home/amaniatis/svn/cayenne/docs/doc/target"
+DOCJAR="cayenne-doc-3.0-SNAPSHOT.jar"
+MVN="/home/amaniatis/maven/bin/mvn"
+SVN="/usr/local/bin/svn"
+
+JAVA_HOME="/usr/local"
+export JAVA_HOME
+
+# rebuild Javadoc
+cd ${CAYSVN}
+${SVN} up
+
+# update schema
+/usr/local/bin/rsync --exclude .svn -r --delete ${CAYSVN}/framework/cayenne-jdk1.5-unpublished/src/main/resources/org/apache/cayenne/schema/
/www/cayenne.apache.org/schema/
+
+# next line is needed to build source jar (can't figure a simpler way)
+${MVN} -Dmaven.test.skip=true install
+cd docs/doc
+${MVN} clean
+${MVN}
+
+# unpack javadocs
+cd ${TARGETDIR}
+rm -rf ${TARGETDIR}/doc
+/usr/local/bin/unzip ${DOCJAR}
+rm -rf /home/amaniatis/public_html/nightly-javadoc
+mv ${TARGETDIR}/doc/api /home/amaniatis/public_html/nightly-javadoc
+
+# Copy to main web site
+/usr/local/bin/rsync --exclude .svn -r --delete /home/amaniatis/public_html/nightly-javadoc/
/www/cayenne.apache.org/doc/api/



Mime
View raw message