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
@@ -26,6 +26,7 @@ import org.jetbrains.jet.cli.jvm.compiler.*;
import org.jetbrains.jet.config.CommonConfigurationKeys;
import org.jetbrains.jet.config.CompilerConfiguration;
import org.jetbrains.jet.utils.KotlinPaths;
import org.jetbrains.jet.utils.KotlinPathsFromHomeDir;
import org.jetbrains.jet.utils.PathUtil;
import java.io.File;
@@ -199,7 +200,7 @@ public class BytecodeCompiler {
}
private static KotlinPaths getKotlinPathsForAntTask() {
return new KotlinPaths(PathUtil.getJarPathForClass(BytecodeCompiler.class).getParentFile().getParentFile());
return new KotlinPathsFromHomeDir(PathUtil.getJarPathForClass(BytecodeCompiler.class).getParentFile().getParentFile());
}
}