Fix failing build

Add runtime and annotations.jar to classpath when compiling Java in codegen
tests
This commit is contained in:
Alexander Udalov
2012-10-08 21:06:43 +04:00
parent a145e93ebb
commit 326720afc8
@@ -305,7 +305,9 @@ public abstract class CodegenTestCase extends UsefulTestCase {
protected File compileJava(@NotNull String filename) throws IOException {
File javaClassesTempDirectory = new File(FileUtil.getTempDirectory(), "java-classes");
JetTestUtils.mkdirs(javaClassesTempDirectory);
String classPath = "out/production/runtime" + File.pathSeparator + JetTestUtils.getAnnotationsJar().getPath();
List<String> options = Arrays.asList(
"-classpath", classPath,
"-d", javaClassesTempDirectory.getPath()
);