From e7ac7323693edbdc350ec36b578ba3e101657360 Mon Sep 17 00:00:00 2001 From: Robby Date: Mon, 19 Mar 2018 10:13:03 -0500 Subject: Java 9 optimization by caching rt.jar (#239) * Upgraded Ammonite to 1.0.5-7-f032887 that includes a Java 9 performance optimization for mill's client-server mode (lihaoyi/Ammonite#773). * Java 9 optimization for interactive mode by caching rt.jar. * Refactored based on @lihaoyi's comments on #239. * Removed client side rt.jar caching. * Propagatio of home path from Cli. * Propagation, propagation, propagation! --- clientserver/src/mill/clientserver/Client.java | 7 ------- 1 file changed, 7 deletions(-) (limited to 'clientserver/src') diff --git a/clientserver/src/mill/clientserver/Client.java b/clientserver/src/mill/clientserver/Client.java index eab8c5b5..261f69b1 100644 --- a/clientserver/src/mill/clientserver/Client.java +++ b/clientserver/src/mill/clientserver/Client.java @@ -1,6 +1,5 @@ package mill.clientserver; -import io.github.retronym.java9rtexport.Export; import org.scalasbt.ipcsocket.*; import java.io.*; @@ -8,7 +7,6 @@ import java.net.Socket; import java.net.URISyntaxException; import java.net.URL; import java.nio.channels.FileChannel; -import java.nio.file.Files; import java.util.ArrayList; import java.util.Arrays; import java.util.Iterator; @@ -29,11 +27,6 @@ public class Client { } if (!System.getProperty("java.specification.version").startsWith("1.")) { selfJars.addAll(Arrays.asList(System.getProperty("java.class.path").split(File.pathSeparator))); - File rtFile = new File(lockBase + "/rt-" + System.getProperty("java.version") + ".jar"); - if (!rtFile.exists()) { - Files.copy(Export.export().toPath(), rtFile.toPath()); - } - selfJars.add(rtFile.getCanonicalPath()); } ArrayList l = new java.util.ArrayList(); l.add("java"); -- cgit v1.2.3