KT-3120 The compiler should not depend on the file directory of the libs

#KT-3120 In Progress
This commit is contained in:
Andrey Breslav
2012-12-12 17:35:05 +04:00
parent 968a57fa7c
commit e324d3914f
5 changed files with 87 additions and 38 deletions
@@ -51,6 +51,7 @@ import org.jetbrains.jet.util.slicedmap.ReadOnlySlice;
import org.jetbrains.jet.util.slicedmap.SlicedMap;
import org.jetbrains.jet.util.slicedmap.WritableSlice;
import org.jetbrains.jet.utils.KotlinPaths;
import org.jetbrains.jet.utils.KotlinPathsFromHomeDir;
import org.junit.Assert;
import javax.tools.*;
@@ -492,7 +493,7 @@ public class JetTestUtils {
}
public static KotlinPaths getPathsForTests() {
return new KotlinPaths(new File("dist/kotlinc"));
return new KotlinPathsFromHomeDir(new File("dist/kotlinc"));
}
public static JetFile loadJetFile(@NotNull Project project, @NotNull File ioFile) throws IOException {