jdk/test/com/sun/tools/attach/TempDirTest.java
changeset 28760 b83d51c77b31
parent 25182 1f6766bac82c
child 30376 2ccf2cf7ea48
equal deleted inserted replaced
28759:fb96c297a819 28760:b83d51c77b31
   118      * the -Djava.io.tmpdir property.
   118      * the -Djava.io.tmpdir property.
   119      */
   119      */
   120     private static void launchTests(long pid, Path clientTmpDir) throws Throwable {
   120     private static void launchTests(long pid, Path clientTmpDir) throws Throwable {
   121         final String sep = File.separator;
   121         final String sep = File.separator;
   122 
   122 
   123         // Need to add jdk/lib/tools.jar to classpath.
       
   124         String classpath =
   123         String classpath =
   125             System.getProperty("test.class.path", "") + File.pathSeparator +
   124             System.getProperty("test.class.path", "");
   126             System.getProperty("test.jdk", ".") + sep + "lib" + sep + "tools.jar";
       
   127 
   125 
   128         String[] tmpDirArg = null;
   126         String[] tmpDirArg = null;
   129         if (clientTmpDir != null) {
   127         if (clientTmpDir != null) {
   130             tmpDirArg = new String [] {"-Djava.io.tmpdir=" + clientTmpDir};
   128             tmpDirArg = new String [] {"-Djava.io.tmpdir=" + clientTmpDir};
   131         }
   129         }