[jboss-dev-forums] [Design of JBoss internal QA (Test Suite)] - Re: AS testsuite using wrong jvm to exectute tests?
emuckenhuber
do-not-reply at jboss.com
Thu Feb 12 10:19:32 EST 2009
"akostadinov" wrote :
| That should never be a problem for hudson, because it always sets both - JAVA_HOME and PATH. As well our QA scripts do the same when changing java version.
|
okay good to know :)
"akostadinov" wrote :
| It makes some sense to have junit.jvm property default to JAVA_HOME/... but see the logic in ant.sh to guess the java executable location.
Yes, how about adding this in tools/bin/ant - because there you already have the logic for calling ant with the correct jdk:
| ant_exec_command="exec \"$JAVACMD\" $ANT_OPTS
| -classpath \"$LOCALCLASSPATH\" -Dant.home=\"$ANT_HOME\"
| -Dant.library.dir=\"$ANT_LIB\" $ant_sys_opts org.apache.tools.ant.launch.Launcher $ANT_ARGS
| -cp \"$CLASSPATH\" $ant_exec_args"
|
So you can add -Djunit.jvm= $JAVACMD - then you use the same jdk calling ant :)
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4209574#4209574
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4209574
More information about the jboss-dev-forums
mailing list