Rename tmpDirForReusableLibrary -> tmpDirForReusableFolder

This commit is contained in:
Mikhael Bogdanov
2019-04-10 12:11:27 +02:00
parent 8287e448d1
commit d806320383
4 changed files with 6 additions and 6 deletions
@@ -119,7 +119,7 @@ public class KotlinTestUtils {
static {
try {
IDEA_SYSTEM_PATH = tmpDirForReusableLibrary("idea-system").getPath();
IDEA_SYSTEM_PATH = tmpDirForReusableFolder("idea-system").getPath();
}
catch (IOException e) {
throw new RuntimeException(e);
@@ -442,7 +442,7 @@ public class KotlinTestUtils {
}
@NotNull
public static File tmpDirForReusableLibrary(String name) throws IOException {
public static File tmpDirForReusableFolder(String name) throws IOException {
return normalizeFile(FileUtil.createTempDirectory(new File(System.getProperty("java.io.tmpdir")), name, "", true));
}
@@ -52,7 +52,7 @@ object MockLibraryUtil {
useJava9: Boolean = false
): File {
return compileLibraryToJar(
sourcesPath, KotlinTestUtils.tmpDirForReusableLibrary("testLibrary-" + jarName), jarName, addSources, allowKotlinSources, extraOptions, extraClasspath
sourcesPath, KotlinTestUtils.tmpDirForReusableFolder("testLibrary-" + jarName), jarName, addSources, allowKotlinSources, extraOptions, extraClasspath
, useJava9)}
@JvmStatic
@@ -127,7 +127,7 @@ object MockLibraryUtil {
@JvmStatic
fun compileJsLibraryToJar(sourcesPath: String, jarName: String, addSources: Boolean, extraOptions: List<String> = emptyList()): File {
val contentDir = KotlinTestUtils.tmpDirForReusableLibrary("testLibrary-" + jarName)
val contentDir = KotlinTestUtils.tmpDirForReusableFolder("testLibrary-" + jarName)
val outDir = File(contentDir, "out")
val outputFile = File(outDir, jarName + ".js")