#!/usr/bin/env bash set -e #set -x core_repo="http://svn.apache.org/repos/asf/myfaces/core/trunk" shared_repo="http://svn.apache.org/repos/asf/myfaces/shared/trunk" tomahawk_repo="http://svn.apache.org/repos/asf/myfaces/tomahawk/trunk" usage() { echo "Usage: $0" exit 1 } if [ -r ./settings ] then source ./settings fi if [ -z "$NIGHTLY_ROOT" ] then echo "NIGHTLY_ROOT must be set" exit 1 fi root="$NIGHTLY_ROOT" mkdir -p $root ############################################################################## # Do some checks of the enviroment ############################################################################## if [ -z "$JAVA_HOME" ] then echo "JAVA_HOME must be set." fi if [ -z "`which java`" ] then echo "Could not find 'java' in the path." echo "PATH: $PATH" exit 1 fi ############################################################################## # Check out the sources ############################################################################## cd $root # myfaces echo "Updating the myfaces checkout." svn co $core_repo core svn co $shared_repo shared svn co $tomahawk_repo tomahawk ############################################################################## # Build ############################################################################## echo "Building myfaces." cd shared mvn -Pgenerate-assembly -U clean install cd ../core mvn -Pgenerate-assembly -U clean install cd assembly mvn clean assembly:assembly org.apache.myfaces.maven:wagon-maven-plugin:deploy cd ../../tomahawk mvn -Pgenerate-assembly clean -U install cd assembly mvn clean assembly:assembly org.apache.myfaces.maven:wagon-maven-plugin:deploy cd ../examples/assembly mvn clean assembly:assembly org.apache.myfaces.maven:wagon-maven-plugin:deploy cd ../..