Re: Javadoc for OSX
Re: Javadoc for OSX
- Subject: Re: Javadoc for OSX
- From: David Aspinall <email@hidden>
- Date: Tue, 12 Aug 2003 13:01:09 -0400
I am personally a big fan of accessible docs, so I wrote this shell
script to rebuild all the source docs every night. Assuming you have
WebObjects installed on a Linux box.
-------------------------
#! /bin/sh
#
# $Id: CreateJavadocs.sh,v 1.10 2003/08/12 16:59:41 davida Exp $
#
# documentation is available at
http://testserver.lab.ticoon.com/javadoc/ticoon
#
JAVADOC=/usr/java/current/bin/javadoc
WORK=work
DOCS=${WORK}/javadoc
SRC=${WORK}/src
WEB=/var/www/html/javadoc/ticoon
APPLE=/opt/Apple
LIBRARY=${APPLE}/Library
APPFW=${LIBRARY}/Frameworks
FWKS="JavaFoundation.framework/Resources/Java/javafoundation.jar \
JavaEOAccess.framework/Resources/Java/javaeoaccess.jar \
JavaJDBCAdaptor.framework/Resources/Java/javajdbcadaptor.jar \
JavaXML.framework/Resources/Java/javaxml.jar \
JavaWebObjects.framework/Resources/Java/javawebobjects.jar \
JavaEOControl.framework/Resources/Java/javaeocontrol.jar"
OTHR="JDK/lib/classes.zip \
JDK/lib/swingall.jar \
Java/msbase.jar \
Java/mssqlserver.jar \
Java/msutil.jar "
CP=.:/opt/Apple/Library/Java
for i in $FWKS
do
CP=${CP}:${APPFW}/${i}
done
for i in $OTHR
do
CP=${CP}:${LIBRARY}/${i}
done
# update the source from cvs
cd ~/wo5/source
cvs -q update -Pd
cd ~/wo5
# remove last night's compile
if [ -d $WORK ]; then
rm -Rf ${WORK}
fi
# put a java file in the correct package directory
packageclass()
{
JV=$1
shift
DEST=`basename $JV`
while [ $# -gt 0 ];
do
P=$P/$1
if [ ! -d ${SRC}${P} ]; then
mkdir ${SRC}${P}
fi
shift
done
##echo " ${SRC}${P}/${DEST}"
cp ${JV} ${SRC}${P}/${DEST}
unset P
}
mkdir ${WORK}
mkdir ${DOCS}
mkdir ${SRC}
FRMWKS="source/Clients source/Control source/UserInterface"
for dir in $FRMWKS
do
echo $dir
for java in `find $dir -name \*.java`
do
PKG=`head $java | grep package \
| sed 's/package //' \
| sed 's/;//' | sed 's/\./ /g'`
packageclass $java $PKG
done
done
cd ~/wo5/${SRC}
DT=`date`
echo
echo Generating docs ...
$JAVADOC -classpath ${CP} -d ~/wo5/${DOCS} \
-use -author -package -splitIndex \
-windowtitle 'Ticoon API Specification' \
-doctitle 'Ticoon<sup><font size="-2">TM</font></sup> version 3
API Specification' \
-header "<b>Ticoon version 3</b><br><font
size=\"-1\">${DT}</font>" \
-bottom '<font size="-1"><a
href="http://bugtracker.lab.ticoon.com>Submit a bug or
feature</a><br><br>Copyright 1993-2003 Ticoon Technology, Inc.</font>' \
-J-Xmx180m \
ticoon.crypto ticoon.eof ticoon.changenotification \
ticoon.foundation ticoon.foundation.exceptions \
ticoon.foundation.logservice ticoon.foundation.structs \
ticoon.net ticoon.xml ticoon.xml.menu ticoon.model \
ticoon.forecasting ticoon.forecasting.strategy \
ticoon.delete ticoon.edit ticoon.report \
ticoon.web ticoon.web.authentication \
*.java
if [ $? -eq 0 ]; then
echo "installing html"
rm -Rf ${WEB}
mv ~/wo5/${DOCS} ${WEB}
fi
echo "done"
-------------------------
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.