2004-05-21 13:25:02 -04:00
|
|
|
#!/bin/sh
|
|
|
|
|
2004-05-21 13:28:07 -04:00
|
|
|
# This process assumes that maven-core-it-verifier has been built.
|
|
|
|
|
2005-11-16 08:17:50 -05:00
|
|
|
cp=../maven-core-it-verifier/target/maven-core-it-verifier.jar
|
2004-06-19 09:36:23 -04:00
|
|
|
|
2004-05-21 13:25:02 -04:00
|
|
|
verifier=org.apache.maven.it.Verifier
|
|
|
|
|
2004-12-15 06:27:43 -05:00
|
|
|
# OS specific support. $var _must_ be set to either true or false.
|
|
|
|
cygwin=false;
|
|
|
|
case "`uname`" in
|
|
|
|
CYGWIN*) cygwin=true ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
# For Cygwin, ensure paths are in UNIX format before anything is touched
|
|
|
|
if $cygwin ; then
|
|
|
|
[ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath -w "$JAVA_HOME"`
|
|
|
|
export JAVA_HOME
|
2005-04-05 02:48:46 -04:00
|
|
|
[ -n "$M2_HOME" ] && M2_HOME=`cygpath -w "$M2_HOME"`
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ ! -z "$M2_HOME" ]; then
|
2005-05-08 18:50:01 -04:00
|
|
|
jvm_m2_home="-Dmaven.home=$M2_HOME"
|
2004-12-15 06:27:43 -05:00
|
|
|
fi
|
|
|
|
|
2005-07-29 22:13:16 -04:00
|
|
|
# Don't debug the verifier, debug m2
|
|
|
|
opts=`echo $MAVEN_OPTS | sed 's/-Xdebug//' | sed 's/-Djava.compiler=NONE//' | sed 's/-Xnoagent//' | sed 's/-Xrunjdwp[^ ]*//'`
|
|
|
|
|
|
|
|
# If you want to debug the verifier, make --debug the first argument
|
|
|
|
if [ "$1" = "--debug" ]; then
|
|
|
|
shift
|
|
|
|
opts="$opts -Xdebug -Djava.compiler=NONE -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005"
|
|
|
|
echo Debugging verifier on port 5005
|
|
|
|
fi
|
|
|
|
|
|
|
|
java "$jvm_m2_home" $opts -cp "$cp" $verifier $@
|
2004-09-02 08:34:19 -04:00
|
|
|
|