#!/bin/bash

MYDIR=$(dirname "$0")
MYDIR=$(cd "$MYDIR" || exit 1; pwd)

# shellcheck source=lib.sh
. "${MYDIR}/lib.sh"

pushd "${WORKDIR}"

	"${WORKDIR}/clean.pl"
	"${WORKDIR}/bin/bamboo.pl" -Pbuild-bamboo "${COMPILE_OPTIONS[@]}" "${SKIP_TESTS[@]}" -v install
#	pushd opennms-full-assembly
#		"${WORKDIR}/bin/bamboo.pl" "${COMPILE_OPTIONS[@]}" "${SKIP_TESTS[@]}" -v install
#	popd
	"${WORKDIR}/bin/bamboo.pl" -Pbuild-bamboo -v javadoc:aggregate

	tar -cvzf javadocs.tar.gz -C "${WORKDIR}/target/site/apidocs" .
	"${MYDIR}"/generate-buildinfo.sh "${WORKDIR}" "${BAMBOO_WORKING_DIRECTORY}"

popd

#!/bin/bash

MYDIR=$(dirname "$0")
MYDIR=$(cd "$MYDIR" || exit 1; pwd)

# shellcheck source=lib.sh
. "${MYDIR}/lib.sh"

pushd "${WORKDIR}"

	"${WORKDIR}/clean.pl"
	"${WORKDIR}/bin/bamboo.pl" "${COMPILE_OPTIONS[@]}" "${SKIP_TESTS[@]}" -v install
	pushd opennms-full-assembly
		"${WORKDIR}/bin/bamboo.pl" "${COMPILE_OPTIONS[@]}" "${SKIP_TESTS[@]}" -v install
	popd
	"${WORKDIR}/bin/bamboo.pl" -Pbuild.bamboo -v javadoc:aggregate

	tar -cvzf javadocs.tar.gz -C "${WORKDIR}/target/site/apidocs" .
	"${MYDIR}"/generate-buildinfo.sh "${WORKDIR}" "${BAMBOO_WORKING_DIRECTORY}"

popd

Revert "fix javadoc:aggregate profile, also use build-bamboo rather than compile/assemble"
Revert "fix javadoc:aggregate profile, also use build-bamboo rather than compile/assemble"

This reverts commit cd5f94bda033f5caa818c8fdbfd65c1313376b5f.
