--- /dev/null 2016-11-22 16:08:38.000000000 -0800 +++ new/modules/jdk.packager/src/test/examples/modularantswingapp/package.sh 2016-11-22 16:08:38.000000000 -0800 @@ -0,0 +1,17 @@ +#!/bin/bash + +DEBUG_ARG="-J-Xdebug:"; + +# Argument parsing. +ARGS=() +for i in "$@"; do + if [[ "$i" == ${DEBUG_ARG}* ]]; then + ADDRESS=${i:${#DEBUG_ARG}} + DEBUG="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=${ADDRESS}" + export ANT_OPTS=${DEBUG} + fi +done + +rm -r -f output + +ant