BATCHEE-168 fix problems with parallel class loading
This prevents "attempted duplicate class definition for name" issues
which might happen in partitioned batches which start to do the same
code in parallel threads.
diff --git a/tools/cli/src/main/resources/batchee b/tools/cli/src/main/resources/batchee
index 1ad8182..3642b50 100644
--- a/tools/cli/src/main/resources/batchee
+++ b/tools/cli/src/main/resources/batchee
@@ -91,12 +91,12 @@
if $cygwin; then
home=$(cygpath -wp "$home")
fi
-BATCHEE_OPTS="$BATCHEE_OPTS -Dbatchee.home=$home"
+BATCHEE_OPTS="$BATCHEE_OPTS -Dbatchee.home=$home -XX:+AllowParallelDefineClass"
args="$@"
if [ "$1" = "debug" ]; then
BATCHEE_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005 $BATCHEE_OPTS"
- shift
+ shift
fi
logging="$BATCHEE_HOME/conf/logging.properties"