Call test-compile explicitly when generating the classpath

This commit is contained in:
Antonin Delpeuch 2018-09-10 18:11:34 +01:00
parent 4bb5795203
commit f2c0361bfc
2 changed files with 8 additions and 9 deletions

9
refine
View File

@ -645,16 +645,15 @@ run() {
IS_JAR=`ls $REFINE_LIB_DIR | grep openrefine`
if [ -z "$IS_JAR" ] ; then
mvn_prepare
echo mvn process-resources compile dependency:build-classpath
$MVN process-resources compile dependency:build-classpath
$MVN process-resources
$MVN compile test-compile dependency:build-classpath
echo ""
fi
fi
if [ ! -e "server/target/classpath.txt" ] ; then
mvn_prepare
echo mvn compile dependency:build-classpath
$MVN compile dependency:build-classpath
$MVN compile test-compile dependency:build-classpath
fi
if [ -d $REFINE_CLASSES_DIR ] ; then
@ -1018,7 +1017,7 @@ add_option "-Dpython.cachedir=$HOME/.local/share/google/refine/cachedir"
# ----- Respond to the action given --------------------------------------------
case "$ACTION" in
build) build_prepare; mvn process-resources compile;;
build) build_prepare; mvn process-resources; mvn compile test-compile dependency:build-classpath;;
clean) mvn clean;;
whitespace) whitespace $1;;
distclean) mvn distclean;;

View File

@ -235,10 +235,10 @@ echo http://bit.ly/1c2gkR
echo.
:gotMvnHome
set MVN_ACTION=""%ACTION%""
if ""%ACTION%"" == ""build"" set MVN_ACTION=compile dependency:build-classpath
if ""%ACTION%"" == ""test"" set MVN_ACTION=compile test
if ""%ACTION%"" == ""server_test"" set MVN_ACTION=compile test -f main
if ""%ACTION%"" == ""extensions_test"" set MVN_ACTION=compile test -f extensions
if ""%ACTION%"" == ""build"" set MVN_ACTION=compile test-compile dependency:build-classpath
if ""%ACTION%"" == ""test"" set MVN_ACTION=test dependency:build-classpath
if ""%ACTION%"" == ""server_test"" set MVN_ACTION=test -f main
if ""%ACTION%"" == ""extensions_test"" set MVN_ACTION=test -f extensions
call "%MAVEN_HOME%\bin\mvn.cmd" process-resources
call "%MAVEN_HOME%\bin\mvn.cmd" %MVN_ACTION%
goto end