#!/usr/local/bin/bash # # Copyright 2003-2004 The Apache Software Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ROOT=`pwd` LOGDIR=$ROOT/logs SITEDIR=$ROOT/site COMPONENTS="csv exec id i18n javaflow pipeline openpgp" rm -rf $LOGDIR mkdir -p $LOGDIR rm -rf $SITEDIR mkdir -p $SITEDIR for dir in $COMPONENTS ; do NAME=`dirname $dir` if [ $NAME == . ] ; then NAME=$dir fi echo ============================================================ echo Building $NAME echo ============================================================ cd $ROOT/$dir maven clean site 2>&1 | tee $LOGDIR/$NAME.log cp -R $ROOT/$dir/target/docs $SITEDIR/$NAME done cd $ROOT echo ============================================================ echo Build complete echo ============================================================ grep WARNING $LOGDIR/*.log grep ERROR $LOGDIR/*.log grep FAILED $LOGDIR/*.log