adding javadoc generation as a single PDF file
[cdmlib.git] / pdfdocs / cdmlib-doc.sh
1 #!/bin/sh
2
3 # Simple example shell script which demonstrates
4 # how to use the PDFDoclet with javadoc directly
5 # (which means: without ANT).
6 CFG=cdmlib-config.properties
7 BASEPCKG="eu.etaxonomy.cdm.model"
8 PACKAGES="$BASEPCKG.agent $BASEPCKG.common $BASEPCKG.description $BASEPCKG.location $BASEPCKG.molecular $BASEPCKG.name $BASEPCKG.occurrence $BASEPCKG.package.html $BASEPCKG.reference $BASEPCKG.taxon"
9 SRC=../cdmlib-model/src/main/java
10 JAVA_HOME=/Library/Java/Home
11
12 PATH=$JAVA_HOME/bin
13 VERSION=1.0.2
14 DOCLET=com.tarsec.javadoc.pdfdoclet.PDFDoclet
15 JARS=pdfdoclet-$VERSION-all.jar
16
17
18 export JAVA_HOME PATH DOCLET JARS PACKAGES
19
20 javadoc -doclet $DOCLET -docletpath $JARS -config $CFG -sourcepath $SRC $PACKAGES