2005-11-15 22:43:28 -05:00
|
|
|
#!/bin/sh
|
|
|
|
|
2005-11-16 00:56:00 -05:00
|
|
|
ARGS=$@
|
2005-11-16 06:25:11 -05:00
|
|
|
ORIG_ARGS=$ARGS
|
2005-11-15 22:43:28 -05:00
|
|
|
|
2006-10-04 23:10:27 -04:00
|
|
|
echo $M2_HOME
|
|
|
|
|
|
|
|
exit
|
|
|
|
|
2005-11-21 17:42:41 -05:00
|
|
|
if [ -z "$JAVA_HOME" ]; then
|
|
|
|
echo You must specify the JAVA_HOME environment variable
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
JAVACMD="$JAVA_HOME/bin/java"
|
|
|
|
|
2005-11-15 22:43:28 -05:00
|
|
|
(
|
|
|
|
cd bootstrap/bootstrap-mini
|
|
|
|
./build
|
|
|
|
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
2005-11-21 17:42:41 -05:00
|
|
|
$JAVACMD $MAVEN_OPTS -jar bootstrap-mini.jar install $ARGS
|
2005-11-15 22:43:28 -05:00
|
|
|
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
|
|
|
)
|
|
|
|
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
|
|
|
|
2005-11-16 22:39:28 -05:00
|
|
|
BOOTSTRAP_JAR=bootstrap-mini/bootstrap-mini.jar
|
2005-11-15 22:43:28 -05:00
|
|
|
|
|
|
|
(
|
|
|
|
cd bootstrap/bootstrap-installer
|
2005-11-21 17:42:41 -05:00
|
|
|
$JAVACMD $MAVEN_OPTS -jar ../$BOOTSTRAP_JAR package $ARGS
|
2005-11-15 22:43:28 -05:00
|
|
|
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
|
|
|
)
|
|
|
|
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
|
|
|
|
2005-11-16 07:31:08 -05:00
|
|
|
# TODO: get rid of M2_HOME once integration tests are in here
|
2006-10-04 23:10:27 -04:00
|
|
|
DESTDIR=$M2_HOME
|
2005-11-16 22:39:28 -05:00
|
|
|
|
|
|
|
# OS specific support. $var _must_ be set to either true or false.
|
|
|
|
cygwin=false;
|
|
|
|
case "`uname`" in
|
|
|
|
CYGWIN*) cygwin=true ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
if [ "$cygwin" = "true" ]; then
|
2006-10-04 23:10:27 -04:00
|
|
|
DESTDIR=`cygpath -w $DESTDIR`
|
2005-11-16 22:39:28 -05:00
|
|
|
JAVA_HOME=`cygpath -w $JAVA_HOME`
|
|
|
|
fi
|
|
|
|
|
|
|
|
OLD_M2_HOME=$M2_HOME
|
|
|
|
unset M2_HOME
|
2006-10-04 23:10:27 -04:00
|
|
|
$JAVACMD $MAVEN_OPTS -jar bootstrap/bootstrap-installer/target/bootstrap-installer.jar --destDir=$DESTDIR $ARGS
|
2005-11-16 03:29:06 -05:00
|
|
|
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
2005-11-16 22:39:28 -05:00
|
|
|
M2_HOME=$OLD_M2_HOME
|
2005-11-19 19:14:46 -05:00
|
|
|
export M2_HOME
|
2005-11-16 03:29:06 -05:00
|
|
|
|
2005-11-16 06:25:11 -05:00
|
|
|
ARGS=$ORIG_ARGS
|
|
|
|
|
2005-11-16 03:29:06 -05:00
|
|
|
(
|
2005-12-22 23:41:42 -05:00
|
|
|
# TODO: should we be going back to the mini now that we have the real thing?
|
2005-11-16 03:29:06 -05:00
|
|
|
cd maven-core-it-verifier
|
2005-11-21 17:42:41 -05:00
|
|
|
$JAVACMD $MAVEN_OPTS -jar ../bootstrap/$BOOTSTRAP_JAR package $ARGS
|
2005-11-16 03:29:06 -05:00
|
|
|
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
|
|
|
)
|
2005-11-16 00:56:00 -05:00
|
|
|
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
|
|
|
|
|
|
|
(
|
|
|
|
cd ./maven-core-it
|
|
|
|
echo
|
|
|
|
echo "Running maven-core integration tests ..."
|
2005-11-16 22:39:28 -05:00
|
|
|
echo
|
2005-11-16 00:56:00 -05:00
|
|
|
./maven-core-it.sh $ARGS
|
|
|
|
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
|
|
|
)
|
2005-11-15 22:43:28 -05:00
|
|
|
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
|
|
|
|