mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-15 17:31:31 +02:00
21 lines
605 B
Bash
Executable File
21 lines
605 B
Bash
Executable File
#!/bin/bash
|
|
# -----------------------------------------------------------------------------
|
|
# Builds the ONOS Java API docs.
|
|
# -----------------------------------------------------------------------------
|
|
|
|
[ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1
|
|
. $ONOS_ROOT/tools/build/envDefaults
|
|
|
|
apidocs=onos-apidocs-${ONOS_VERSION%~*}
|
|
|
|
set -e -x
|
|
rm -fr $ONOS_ROOT/docs/target
|
|
|
|
cd $ONOS_ROOT/docs
|
|
mvn -f external.xml javadoc:aggregate
|
|
cd target && mv site/apidocs $apidocs
|
|
tar zcf $apidocs.tar.gz $apidocs && cp $apidocs.tar.gz /tmp
|
|
|
|
cd $ONOS_ROOT/docs
|
|
mvn -f pom.xml javadoc:aggregate
|