equal
deleted
inserted
replaced
33 import java.io.FileNotFoundException; |
33 import java.io.FileNotFoundException; |
34 import java.nio.file.Files; |
34 import java.nio.file.Files; |
35 import java.nio.file.Path; |
35 import java.nio.file.Path; |
36 import java.nio.file.Paths; |
36 import java.nio.file.Paths; |
37 import java.util.ArrayList; |
37 import java.util.ArrayList; |
38 import java.util.HashMap; |
38 import java.util.Map; |
39 import java.util.List; |
39 import java.util.List; |
40 |
40 |
41 /** |
41 /** |
42 * jcstress tests wrapper |
42 * jcstress tests wrapper |
43 */ |
43 */ |
46 public class JcstressRunner { |
46 public class JcstressRunner { |
47 |
47 |
48 public static final String MAIN_CLASS = "org.openjdk.jcstress.Main"; |
48 public static final String MAIN_CLASS = "org.openjdk.jcstress.Main"; |
49 |
49 |
50 public static Path pathToArtifact() { |
50 public static Path pathToArtifact() { |
51 HashMap<String, Path> artifacts; |
51 Map<String, Path> artifacts; |
52 try { |
52 try { |
53 artifacts = ArtifactResolver.resolve(JcstressRunner.class); |
53 artifacts = ArtifactResolver.resolve(JcstressRunner.class); |
54 } catch (FileNotFoundException e) { |
54 } catch (FileNotFoundException e) { |
55 throw new Error("TESTBUG: Can not resolve artifacts for " |
55 throw new Error("TESTBUG: Can not resolve artifacts for " |
56 + JcstressRunner.class.getName(), e); |
56 + JcstressRunner.class.getName(), e); |