test/jdk/javax/management/remote/rest/RunRestAdapter.java
branchjmx-rest-api
changeset 56002 60ab3b595a8e
parent 55998 54779691e11f
child 56003 4f7f76f6be2f
--- a/test/jdk/javax/management/remote/rest/RunRestAdapter.java	Thu Dec 28 20:34:32 2017 +0530
+++ b/test/jdk/javax/management/remote/rest/RunRestAdapter.java	Mon Jan 01 23:59:14 2018 +0530
@@ -5,7 +5,6 @@
 import java.io.FileWriter;
 import java.io.IOException;
 import java.util.Properties;
-import java.util.Scanner;
 import javax.management.remote.rest.PlatformRestAdapter;
 
 
@@ -23,6 +22,7 @@
 
     public static void main(String[] args) throws Exception {
         RunRestAdapter rr = new RunRestAdapter();
+        System.setProperty("test.src",System.getProperty("user.dir") + "/test");
         rr.run();
         while (true)
         {
@@ -64,7 +64,7 @@
         }
     }
 
-    private void setupMgmtConfig(String fileName) throws IOException {
+    private void setupManagementConfig(String fileName) throws IOException {
         Properties props = new Properties();
         props.setProperty("com.sun.management.jmxremote.ssl", "true");
         props.setProperty("com.sun.management.jmxremote.ssl.config.file", sslAgentConfig);
@@ -84,7 +84,7 @@
         configFile = testSrcRoot + "mgmt1.properties";
         createAgentSslConfigFile(sslAgentConfig);
         createClientSslConfigFile(sslClientConfig);
-        setupMgmtConfig(configFile);
+        setupManagementConfig(configFile);
     }
 
     public void run() throws Exception {