From 0e8655fd5d602ccaae9f1cf2f533eb6644f97fe7 Mon Sep 17 00:00:00 2001 From: fredge Date: Thu, 13 Dec 2018 12:11:08 +0900 Subject: [PATCH] fix #248. Move setting JVM's debug option after executing `:copyrt` label, in order to avoid unintended debug string written to `rtext.txt` --- src/universal/bin/sbt.bat | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/universal/bin/sbt.bat b/src/universal/bin/sbt.bat index 6c510e8bd..fbe0704e2 100644 --- a/src/universal/bin/sbt.bat +++ b/src/universal/bin/sbt.bat @@ -104,16 +104,16 @@ if not exist build.sbt ( ) ) -if defined JVM_DEBUG_PORT ( - set _JAVA_OPTS=!_JAVA_OPTS! -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=!JVM_DEBUG_PORT! -) - call :process call :checkjava call :copyrt +if defined JVM_DEBUG_PORT ( + set _JAVA_OPTS=!_JAVA_OPTS! -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=!JVM_DEBUG_PORT! +) + call :sync_preloaded call :run %SBT_ARGS%