-
Notifications
You must be signed in to change notification settings - Fork 194
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
disable vm install job in jdt #2919
disable vm install job in jdt #2919
Conversation
@@ -162,6 +162,7 @@ public void execute() throws MojoExecutionException, MojoFailureException { | |||
} catch (Exception e) { | |||
throw new MojoFailureException("Can't fetch dependencies!", e); | |||
} | |||
System.setProperty("DetectVMInstallationsJob.disabled", "true"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be too late, not sure at which point in time this code is triggered...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code is triggered (job is scheduled) when the jdt.launching bundle starts, which can be pretty early as it's required by jdt.core to resolve the classpath IIRC.
Wouldn't it be possible to set the flag before starting the VM (or at least the Equinox container) ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- This is before Equinox Container starts
- I now using the preference instead (so no unforeseen side effects)
- I have debugged that this prevents the job from being started.
So if setting it on the Jenkins Job directly works as system-property, this should then work here as well.
3c05780
to
0a6547c
Compare
0a6547c
to
9e400fc
Compare
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation and see the Github Action logs for details |
See eclipse-pde/eclipse.pde#782 (comment)