Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix #476] Fixing -jvm-debug flags so that they use args compatible with the latest JDKs #478

Merged
merged 1 commit into from
Feb 4, 2015

Conversation

jateenjoshi
Copy link
Contributor

When providing the -jvm-debug flag the sbt native packager's bash template currently passes the following jvm debug flags:

-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=[debug port]

This is outdated (it is for JVM 1.4.x) and for newer JVMs should be:

-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=[debug port]

…est JDKs, instead of the outdated JDK 1.4 args
@lightbend-cla-validator
Copy link

Hi @jateenjoshi,

Thank you for your contribution! We really value the time you've taken to put this together.

Before we proceed with reviewing this pull request, please sign the Typesafe Contributors License Agreement:

http://typesafe.com/contribute/cla

@jateenjoshi
Copy link
Contributor Author

This change simply changes the -jvm-debug flag being passed through a bash script - there's no reason why this should fail a build - especially on a particular jdk8 build.

Is this a known issue with the build? The jdk8 build seems to be unable to resolve:

org.scala-lang#scala-actors;2.10.2!scala-actors.jar

@muuki88
Copy link
Contributor

muuki88 commented Feb 4, 2015

Travis sometimes fails. I retriggered the job. We don't have any tests that cover this, so everything is fine.

thanks for your work :)

@jateenjoshi
Copy link
Contributor Author

Thanks, np :)

@muuki88 muuki88 added the universal Zip, tar.gz, tgz and bash issues label Feb 4, 2015
muuki88 added a commit that referenced this pull request Feb 4, 2015
[Fix #476] Fixing -jvm-debug flags so that they use args compatible with the latest JDKs
@muuki88 muuki88 merged commit 582a7f4 into sbt:master Feb 4, 2015
@jateenjoshi jateenjoshi deleted the fix_jvm-debug-flags branch February 4, 2015 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
universal Zip, tar.gz, tgz and bash issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants