maven/m2-bootstrap-all.sh
Carlos Sanchez Gonzalez 763811d0fa Added debug option to compiler configuration.
Copied compiler classes from plexus compiler.
Allow bootstrapping with debug info.


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163301 13f79535-47bb-0310-9956-ffa450edef68
2005-01-09 22:38:43 +00:00

43 lines
1.1 KiB
Bash

#!/bin/sh
# Check to make sure JAVA_HOME is set
[ -z $JAVA_HOME ] && echo && echo 'You must set $JAVA_HOME to use mboot!' && echo && exit 1
ARGS="$@"
if [ ! -z "$M2_HOME" ]; then
ARGS="$ARGS -Dmaven.home=$M2_HOME"
fi
# Build and install mboot
(
echo "-----------------------------------------------------------------------"
echo " Building mboot ... "
echo "-----------------------------------------------------------------------"
cd ./maven-mboot2
./build $ARGS
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
)
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
(
echo "-----------------------------------------------------------------------"
echo " Building maven2 components ... "
echo "-----------------------------------------------------------------------"
$JAVA_HOME/bin/java $ARGS $MAVEN_OPTS -jar mboot.jar
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
)
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
(
cd ./maven-core-it
echo
echo "Running maven-core integration tests ..."
echo
./maven-core-it.sh $ARGS
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
)
ret=$?; if [ $ret != 0 ]; then exit $ret; fi