commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From di...@apache.org
Subject cvs commit: jakarta-commons-sandbox buildall.sh
Date Sun, 30 May 2004 22:58:56 GMT
dirkv       2004/05/30 15:58:56

  Added:       .        buildall.sh
  Log:
  script to build the whole sandbox site
  (components listed in sandbox menu)
  
  Revision  Changes    Path
  1.1                  jakarta-commons-sandbox/buildall.sh
  
  Index: buildall.sh
  ===================================================================
  #!/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="attributes/site cache chain clazz compress convert email events feedparser functor
id jjar mapper messenger resources scaffold sql threadpool transaction vfs workflow"
  
  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
  
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message