-
-
Notifications
You must be signed in to change notification settings - Fork 364
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
Conversation
} | ||
current = current.getParent(); | ||
} | ||
if (Util.isJava9OrAbove) { |
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.
@robby-phd do you remember what this was for, or why we need it?
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.
It was always there before I worked on changing mill client; I assume it's to propagate classpath to the spawned server.
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.
@robby-phd how about the System.getProperty("java.class.path")
logic? It looks like you added it in a9d4eea#diff-00b5b77d5f332c03ac7aa4d9ac51c941R29
Ok, maybe in that case I can get rid of it then
…On Sat, 19 May 2018 at 8:08 PM, Robby ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In main/client/src/mill/main/client/MillClientMain.java
<#342 (comment)>:
> @@ -11,20 +11,8 @@
public class MillClientMain {
static void initServer(String lockBase, boolean setJnaNoSys) throws IOException,URISyntaxException{
- ArrayList<String> selfJars = new ArrayList<String>();
- ClassLoader current = MillClientMain.class.getClassLoader();
- while(current != null){
- if (current instanceof java.net.URLClassLoader) {
- URL[] urls = ((java.net.URLClassLoader) current).getURLs();
- for (URL url: urls) {
- selfJars.add(new File(url.toURI()).getCanonicalPath());
- }
- }
- current = current.getParent();
- }
- if (Util.isJava9OrAbove) {
It was always there before
<https://github.com/lihaoyi/mill/blob/122122729d8567e389f434cfb1c074d3119b0088/clientserver/src/mill/clientserver/Client.java#L14-L25>
I worked on changing mill client; I assume it's to propagate classpath to
the spawned server.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#342 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AA5A_M3E31hr7q9dWPpI6CDA-4mFw0gzks5t0N46gaJpZM4UF6ur>
.
|
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
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