2004-07-27 13:37:07 -04:00
|
|
|
#!/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
|
|
|
|
|
2004-08-14 16:46:24 -04:00
|
|
|
ARGS="$@"
|
|
|
|
|
2004-09-09 07:13:12 -04:00
|
|
|
if [ ! -z "$M2_HOME" ]; then
|
|
|
|
ARGS="$ARGS -Dmaven.home=$M2_HOME"
|
|
|
|
fi
|
|
|
|
|
2004-07-27 13:37:07 -04:00
|
|
|
# Build and install mboot
|
|
|
|
(
|
|
|
|
echo "-----------------------------------------------------------------------"
|
|
|
|
echo " Building mboot ... "
|
|
|
|
echo "-----------------------------------------------------------------------"
|
|
|
|
|
|
|
|
cd ./maven-mboot2
|
2004-09-02 08:34:19 -04:00
|
|
|
./build $ARGS
|
2004-07-27 13:37:07 -04:00
|
|
|
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
|
|
|
)
|
|
|
|
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
|
|
|
|
|
|
|
(
|
|
|
|
echo "-----------------------------------------------------------------------"
|
|
|
|
echo " Building maven2 components ... "
|
|
|
|
echo "-----------------------------------------------------------------------"
|
|
|
|
|
2005-01-09 17:38:43 -05:00
|
|
|
$JAVA_HOME/bin/java $ARGS $MAVEN_OPTS -jar mboot.jar
|
2004-07-27 13:37:07 -04:00
|
|
|
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
|
|
|
)
|
|
|
|
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
|
|
|
|
2005-03-31 23:44:33 -05:00
|
|
|
(
|
|
|
|
echo "-----------------------------------------------------------------------"
|
|
|
|
echo " Rebuilding maven2 plugins ... "
|
|
|
|
echo "-----------------------------------------------------------------------"
|
|
|
|
|
|
|
|
cd maven-plugins
|
|
|
|
m2 install
|
|
|
|
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
|
|
|
)
|
|
|
|
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
|
|
|
|
2004-07-27 13:37:07 -04:00
|
|
|
(
|
|
|
|
cd ./maven-core-it
|
|
|
|
echo
|
|
|
|
echo "Running maven-core integration tests ..."
|
|
|
|
echo
|
2004-08-14 16:46:24 -04:00
|
|
|
./maven-core-it.sh $ARGS
|
2004-07-27 13:37:07 -04:00
|
|
|
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
|
|
|
)
|
|
|
|
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|