Explicitly process resources in wrapper scripts

This commit is contained in:
Antonin Delpeuch 2018-09-09 17:48:48 +01:00
parent e846df0b9d
commit 8d5cb67e0c
2 changed files with 3 additions and 3 deletions

4
refine
View File

@ -641,7 +641,7 @@ run() {
if [ ! -d $REFINE_CLASSES_DIR ] ; then if [ ! -d $REFINE_CLASSES_DIR ] ; then
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 compile dependency:build-classpath mvn process-resources compile dependency:build-classpath
echo "" echo ""
fi fi
fi fi
@ -1011,7 +1011,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 compile;; build) build_prepare; mvn process-resources compile;;
clean) mvn clean;; clean) mvn clean;;
whitespace) whitespace $1;; whitespace) whitespace $1;;
distclean) mvn distclean;; distclean) mvn distclean;;

View File

@ -232,7 +232,7 @@ echo http://bit.ly/1c2gkR
echo. echo.
:gotMvnHome :gotMvnHome
set MVN_ACTION=""%ACTION%"" set MVN_ACTION=""%ACTION%""
if ""%ACTION%"" == ""build"" set MVN_ACTION=""compile"" if ""%ACTION%"" == ""build"" set MVN_ACTION=""process-resources compile""
if ""%ACTION%"" == ""server_test"" set MVN_ACTION=""test -pl main"" if ""%ACTION%"" == ""server_test"" set MVN_ACTION=""test -pl main""
if ""%ACTION%"" == ""extensions_test"" set MVN_ACTION=""test -pl extensions"" if ""%ACTION%"" == ""extensions_test"" set MVN_ACTION=""test -pl extensions""
"%MAVEN_HOME%\bin\mvn.cmd" %MVN_ACTION% "%MAVEN_HOME%\bin\mvn.cmd" %MVN_ACTION%