blob: fcdd3f763b09b29d02ef3181228aecfc0b048836 [file] [log] [blame]
Thomas Vachuska45331492014-10-31 11:08:11 -07001#!/bin/bash
2# -----------------------------------------------------------------------------
Thomas Vachuska683b31b2015-01-26 11:54:31 -08003# Builds the ONOS Java API docs.
Thomas Vachuska45331492014-10-31 11:08:11 -07004# -----------------------------------------------------------------------------
5
6[ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1
7. $ONOS_ROOT/tools/build/envDefaults
8
9apidocs=onos-apidocs-${ONOS_VERSION%~*}
10
11set -e -x
12rm -fr $ONOS_ROOT/docs/target
13
14cd $ONOS_ROOT/docs
15mvn -f external.xml javadoc:aggregate
16cd target && mv site/apidocs $apidocs
17tar zcf $apidocs.tar.gz $apidocs && cp $apidocs.tar.gz /tmp
18
19cd $ONOS_ROOT/docs
20mvn -f pom.xml javadoc:aggregate