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

Preserve caches between interactive and client/server mode #342

Merged
merged 1 commit into from
May 20, 2018

Conversation

lihaoyi
Copy link
Member

@lihaoyi lihaoyi commented May 20, 2018

We were incorrectly duplicating the JDK classpath as part of the application classpath when we spawned the Mill server from the Mill client. This makes the transmission of application classpath to the Mill server explicit via an environment variable, so we don't end up including random things from the client classloader hierarchy that we didn't expect

}
current = current.getParent();
}
if (Util.isJava9OrAbove) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@robby-phd do you remember what this was for, or why we need it?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was always there before I worked on changing mill client; I assume it's to propagate classpath to the spawned server.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@robby-phd how about the System.getProperty("java.class.path") logic? It looks like you added it in a9d4eea#diff-00b5b77d5f332c03ac7aa4d9ac51c941R29

@lihaoyi
Copy link
Member Author

lihaoyi commented May 20, 2018 via email

@lihaoyi lihaoyi merged commit c4c1b39 into master May 20, 2018
lihaoyi added a commit that referenced this pull request May 20, 2018
We were incorrectly duplicating the JDK classpath as part of the application classpath when we spawned the Mill server from the Mill client. This makes the transmission of application classpath to the Mill server explicit via an environment variable, so we don't end up including random things from the client classloader hierarchy that we didn't expect
@lihaoyi lihaoyi deleted the keep-interactive branch November 5, 2018 14:36
@lefou lefou added this to the 0.2.1 milestone Apr 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants