Call test-compile explicitly when generating the classpath
This commit is contained in:
parent
4bb5795203
commit
f2c0361bfc
9
refine
9
refine
@ -645,16 +645,15 @@ run() {
|
|||||||
IS_JAR=`ls $REFINE_LIB_DIR | grep openrefine`
|
IS_JAR=`ls $REFINE_LIB_DIR | grep openrefine`
|
||||||
if [ -z "$IS_JAR" ] ; then
|
if [ -z "$IS_JAR" ] ; then
|
||||||
mvn_prepare
|
mvn_prepare
|
||||||
echo mvn process-resources compile dependency:build-classpath
|
$MVN process-resources
|
||||||
$MVN process-resources compile dependency:build-classpath
|
$MVN compile test-compile dependency:build-classpath
|
||||||
echo ""
|
echo ""
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -e "server/target/classpath.txt" ] ; then
|
if [ ! -e "server/target/classpath.txt" ] ; then
|
||||||
mvn_prepare
|
mvn_prepare
|
||||||
echo mvn compile dependency:build-classpath
|
$MVN compile test-compile dependency:build-classpath
|
||||||
$MVN compile dependency:build-classpath
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -d $REFINE_CLASSES_DIR ] ; then
|
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 --------------------------------------------
|
# ----- Respond to the action given --------------------------------------------
|
||||||
case "$ACTION" in
|
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;;
|
clean) mvn clean;;
|
||||||
whitespace) whitespace $1;;
|
whitespace) whitespace $1;;
|
||||||
distclean) mvn distclean;;
|
distclean) mvn distclean;;
|
||||||
|
@ -235,10 +235,10 @@ echo http://bit.ly/1c2gkR
|
|||||||
echo.
|
echo.
|
||||||
:gotMvnHome
|
:gotMvnHome
|
||||||
set MVN_ACTION=""%ACTION%""
|
set MVN_ACTION=""%ACTION%""
|
||||||
if ""%ACTION%"" == ""build"" set MVN_ACTION=compile dependency:build-classpath
|
if ""%ACTION%"" == ""build"" set MVN_ACTION=compile test-compile dependency:build-classpath
|
||||||
if ""%ACTION%"" == ""test"" set MVN_ACTION=compile test
|
if ""%ACTION%"" == ""test"" set MVN_ACTION=test dependency:build-classpath
|
||||||
if ""%ACTION%"" == ""server_test"" set MVN_ACTION=compile test -f main
|
if ""%ACTION%"" == ""server_test"" set MVN_ACTION=test -f main
|
||||||
if ""%ACTION%"" == ""extensions_test"" set MVN_ACTION=compile test -f extensions
|
if ""%ACTION%"" == ""extensions_test"" set MVN_ACTION=test -f extensions
|
||||||
call "%MAVEN_HOME%\bin\mvn.cmd" process-resources
|
call "%MAVEN_HOME%\bin\mvn.cmd" process-resources
|
||||||
call "%MAVEN_HOME%\bin\mvn.cmd" %MVN_ACTION%
|
call "%MAVEN_HOME%\bin\mvn.cmd" %MVN_ACTION%
|
||||||
goto end
|
goto end
|
||||||
|
Loading…
Reference in New Issue
Block a user