Skip to content
Permalink
Browse files
Add debug flag to runex. Fixes #18
  • Loading branch information
milleruntime committed Apr 11, 2018
1 parent 4094d00 commit 79486e9d16b5d65f19cf14f4e907660b92d22233
Showing 1 changed file with 5 additions and 1 deletion.
@@ -15,11 +15,15 @@
# 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}"

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"

0 comments on commit 79486e9

Please sign in to comment.