#!/bin/sh
#
# Build the HTML documentation for the Java API.
. ./RELEASE
# Save the absolute path of the target Berkeley DB documents directory.
DB_HOME=`dirname $0`/..
javadoc $JAVADOC_ARGS -protected -d $DB_HOME/docs/java \
-use -link http://download.oracle.com/javase/1.5.0/docs/api/ \
-link http://download.oracle.com/javaee/5/api/ \
-sourcepath $DB_HOME/lang/java/src \
-source 1.5 \
-stylesheetfile $DB_HOME/lang/java/doc/style.css \
-header 'Berkeley DB
version '$DB_VERSION_MAJOR.$DB_VERSION_MINOR.$DB_VERSION_PATCH'' \
-windowtitle 'Oracle - Berkeley DB Java API' -bottom 'Copyright (c) 1996, 2012 Oracle and/or its affiliates. All rights reserved.' \
com.sleepycat.db \
com.sleepycat.bind com.sleepycat.bind.serial com.sleepycat.bind.tuple \
com.sleepycat.collections \
com.sleepycat.persist com.sleepycat.persist.model \
com.sleepycat.persist.evolve com.sleepycat.persist.raw \
com.sleepycat.util \
-group 'Berkeley DB Core Package' com.sleepycat.db \
-group 'Berkeley DB Direct Persistence Layer (DPL) Packages' \
com.sleepycat.persist:com.sleepycat.persist.model:com.sleepycat.persist.evolve:com.sleepycat.persist.raw \
-group 'Berkeley DB Bind and Collections Packages' com.sleepycat.bind:com.sleepycat.bind.serial:com.sleepycat.bind.tuple:com.sleepycat.collections:com.sleepycat.util | \
egrep -v 'Generating|first sentence'