mirror of https://github.com/apache/maven.git
no longer needed
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@465899 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
044fa91569
commit
ddeb7d7367
71
bootstrap.sh
71
bootstrap.sh
|
@ -1,71 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
ARGS=$@
|
||||
ORIG_ARGS=$ARGS
|
||||
|
||||
if [ -z "$JAVA_HOME" ]; then
|
||||
echo You must specify the JAVA_HOME environment variable
|
||||
exit 1
|
||||
fi
|
||||
|
||||
JAVACMD="$JAVA_HOME/bin/java"
|
||||
|
||||
(
|
||||
cd bootstrap/bootstrap-mini
|
||||
./build
|
||||
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
||||
$JAVACMD $MAVEN_OPTS -jar bootstrap-mini.jar install $ARGS
|
||||
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
||||
)
|
||||
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
||||
|
||||
BOOTSTRAP_JAR=bootstrap-mini/bootstrap-mini.jar
|
||||
|
||||
(
|
||||
cd bootstrap/bootstrap-installer
|
||||
$JAVACMD $MAVEN_OPTS -jar ../$BOOTSTRAP_JAR package $ARGS
|
||||
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
||||
)
|
||||
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
||||
|
||||
# TODO: get rid of M2_HOME once integration tests are in here
|
||||
DESTDIR=$M2_HOME
|
||||
|
||||
# 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
|
||||
DESTDIR=`cygpath -w $DESTDIR`
|
||||
JAVA_HOME=`cygpath -w $JAVA_HOME`
|
||||
fi
|
||||
|
||||
OLD_M2_HOME=$M2_HOME
|
||||
unset M2_HOME
|
||||
$JAVACMD $MAVEN_OPTS -jar bootstrap/bootstrap-installer/target/bootstrap-installer.jar --destDir=$DESTDIR $ARGS
|
||||
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
||||
M2_HOME=$OLD_M2_HOME
|
||||
export M2_HOME
|
||||
|
||||
ARGS=$ORIG_ARGS
|
||||
|
||||
(
|
||||
# TODO: should we be going back to the mini now that we have the real thing?
|
||||
cd maven-core-it-verifier
|
||||
$JAVACMD $MAVEN_OPTS -jar ../bootstrap/$BOOTSTRAP_JAR package $ARGS
|
||||
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
|
||||
|
Loading…
Reference in New Issue