From 37931306d54066f222def676e9f797afa8f40260 Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Thu, 22 May 2014 18:53:09 +0900 Subject: [PATCH] Use maven-antrun-plugin instead of exec-maven-plugin Motivation: exec-maven-plugin does not flush stdout and stderr, making the console output from the examples invisible to users Modification: Use maven-antrun-plugin instead Result: A user sees the output from the examples immediately. --- all/pom.xml | 2 +- example/pom.xml | 23 ++++++++++------------- pom.xml | 7 +------ run-example.sh | 2 +- 4 files changed, 13 insertions(+), 21 deletions(-) diff --git a/all/pom.xml b/all/pom.xml index e5630a1e44..8b1ab45131 100644 --- a/all/pom.xml +++ b/all/pom.xml @@ -292,7 +292,7 @@ run - + diff --git a/example/pom.xml b/example/pom.xml index 233277f444..36bd3530b1 100644 --- a/example/pom.xml +++ b/example/pom.xml @@ -104,20 +104,17 @@ - org.codehaus.mojo - exec-maven-plugin + maven-antrun-plugin - ${java.home}/bin/java - - ${argLine.common} - ${argLine.bootcp} - ${argLine.leak} - ${argLine.coverage} - -classpath %classpath - ${argLine.example} - ${exampleClass} - - runtime + + + + + + + diff --git a/pom.xml b/pom.xml index 678e064513..eef3afedd5 100644 --- a/pom.xml +++ b/pom.xml @@ -857,7 +857,7 @@ run - + @@ -1065,11 +1065,6 @@ build-helper-maven-plugin 1.8 - - org.codehaus.mojo - exec-maven-plugin - 1.3 - org.fusesource.hawtjni maven-hawtjni-plugin diff --git a/run-example.sh b/run-example.sh index 4344865350..6b63221cd7 100755 --- a/run-example.sh +++ b/run-example.sh @@ -58,5 +58,5 @@ fi cd "`dirname "$0"`"/example echo "[INFO] Running: $EXAMPLE ($EXAMPLE_CLASS $EXAMPLE_ARGS)" -exec mvn -nsu compile exec:exec -DargLine.example="$EXAMPLE_ARGS" -DexampleClass="$EXAMPLE_CLASS" +exec mvn -nsu compile antrun:run -Dcheckstyle.skip=true -Dantfile=src/antrun/run-example.xml -DargLine.example="$EXAMPLE_ARGS" -DexampleClass="$EXAMPLE_CLASS"