milleruntime closed pull request #21: Add debug flag to runex Fixes #18
URL: https://github.com/apache/accumulo-examples/pull/21
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/bin/runex b/bin/runex
index fc273ad..8bf7479 100755
--- a/bin/runex
+++ b/bin/runex
@@ -15,6 +15,10 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+# For debugging run this script like so:
+# RUNEX_MVN_ARG="-X" ./bin/runex client.RandomBatchScanner
+mvn_arg="${RUNEX_MVN_ARG:--q}"
+
 main_class="$1"
 main_args="${*:2}"
 
@@ -22,4 +26,4 @@ if command -v accumulo > /dev/null 2>&1 ; then
   av_arg="-Daccumulo.version=`accumulo version | tail -n 1`"
 fi
 
-mvn -q exec:java -Dlog4j.configuration="file:./conf/log4j.properties" 
-Dexec.mainClass="org.apache.accumulo.examples.$main_class" $av_arg 
-Dexec.args="$main_args"
+mvn $mvn_arg exec:java -Dlog4j.configuration="file:./conf/log4j.properties" 
-Dexec.mainClass="org.apache.accumulo.examples.$main_class" $av_arg 
-Dexec.args="$main_args"


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to