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-07-27 13:37:07 -04:00
|
|
|
# Build and install mboot
|
|
|
|
(
|
|
|
|
echo "-----------------------------------------------------------------------"
|
|
|
|
echo " Building mboot ... "
|
|
|
|
echo "-----------------------------------------------------------------------"
|
|
|
|
|
|
|
|
cd ./maven-mboot2
|
|
|
|
./build
|
|
|
|
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
|
|
|
)
|
|
|
|
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
|
|
|
|
|
|
|
(
|
|
|
|
echo "-----------------------------------------------------------------------"
|
|
|
|
echo " Building maven2 components ... "
|
|
|
|
echo "-----------------------------------------------------------------------"
|
|
|
|
|
2004-08-14 16:46:24 -04:00
|
|
|
$JAVA_HOME/bin/java $ARGS -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
|
|
|
|
|
|
|
|
(
|
|
|
|
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
|