Better jar names for runtime/builtins/jdk-annotations in tests.
This commit is contained in:
+2
-2
@@ -46,9 +46,9 @@ abstract class ForTestCompileSomething {
|
|||||||
long start = System.currentTimeMillis();
|
long start = System.currentTimeMillis();
|
||||||
this.jarName = jarName;
|
this.jarName = jarName;
|
||||||
try {
|
try {
|
||||||
File tmpDir = JetTestUtils.tmpDir("runtimejar");
|
File tmpDir = JetTestUtils.tmpDir("test_jars");
|
||||||
|
|
||||||
jarFile = new File(tmpDir, "runtime.jar");
|
jarFile = new File(tmpDir, jarName + ".jar");
|
||||||
|
|
||||||
File classesDir = new File(tmpDir, "classes");
|
File classesDir = new File(tmpDir, "classes");
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -35,8 +35,8 @@ public class ForTestPackJdkAnnotations {
|
|||||||
private static File getJarFile() {
|
private static File getJarFile() {
|
||||||
if (jarFile == null) {
|
if (jarFile == null) {
|
||||||
try {
|
try {
|
||||||
File tmpDir = JetTestUtils.tmpDir("runtimejar");
|
File tmpDir = JetTestUtils.tmpDir("test_jars");
|
||||||
jarFile = new File(tmpDir, "runtime.jar");
|
jarFile = new File(tmpDir, "jdk-annotations.jar");
|
||||||
FileOutputStream annotationsJar = new FileOutputStream(jarFile);
|
FileOutputStream annotationsJar = new FileOutputStream(jarFile);
|
||||||
try {
|
try {
|
||||||
JarOutputStream jarOutputStream = new JarOutputStream(new BufferedOutputStream(annotationsJar));
|
JarOutputStream jarOutputStream = new JarOutputStream(new BufferedOutputStream(annotationsJar));
|
||||||
|
|||||||
Reference in New Issue
Block a user