revert unsuccessful attempt to fix android build

This commit is contained in:
Alex Tkachman
2012-08-14 09:26:27 +03:00
parent 6f4e84287e
commit 71208de565
2 changed files with 1 additions and 16 deletions
@@ -18,8 +18,6 @@ package org.jetbrains.jet.compiler.android;
import junit.framework.TestCase;
import java.lang.String;
import java.lang.Throwable;
import java.lang.reflect.Method;
/**
@@ -33,19 +31,7 @@ public class AbstractCodegenTestCaseOnAndroid extends TestCase {
Class clazz;
clazz = Class.forName(filePath.replaceAll("\\\\|-|\\.|/", "_") + ".namespace");
Method method;
try {
method = clazz.getMethod("box");
}
catch (NoSuchMethodException e) {
try {
method = clazz.getMethod("main", String[].class);
}
catch(Throwable t) {
throw new RuntimeException("File: " + filePath, t);
}
method.invoke(null);
return;
}
method = clazz.getMethod("box");
assertEquals("OK", method.invoke(null));
}
catch (Throwable e) {
-1
View File
@@ -5,7 +5,6 @@
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/tests" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/android-module/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />