use of org.robovm.compiler.config.FakeHome in project robovm by robovm.
the class DependencyGraphTest method setup.
@Before
public void setup() throws Exception {
Config.Builder builder = new Config.Builder().home(new FakeHome()).skipRuntimeLib(true).skipLinking(true);
for (String path : System.getProperty("sun.boot.class.path").split(File.pathSeparator)) {
builder.addBootClasspathEntry(new File(path));
}
for (String path : System.getProperty("java.class.path").split(File.pathSeparator)) {
builder.addClasspathEntry(new File(path));
}
config = builder.build();
Root = loadClazz(Root.class);
A = loadClazz(A.class);
B = loadClazz(B.class);
C = loadClazz(C.class);
Root.getClazzInfo().addClassDependency(A.getInternalName(), false);
Root.getClazzInfo().addClassDependency(B.getInternalName(), false);
Root.getClazzInfo().addClassDependency(C.getInternalName(), false);
}
use of org.robovm.compiler.config.FakeHome in project robovm by robovm.
the class AnnotationImplPluginTest method initialize.
@BeforeClass
public static void initialize() throws IOException {
Builder builder = new Builder();
for (String p : System.getProperty("sun.boot.class.path").split(File.pathSeparator)) {
builder.addBootClasspathEntry(new File(p));
}
for (String p : System.getProperty("java.class.path").split(File.pathSeparator)) {
builder.addClasspathEntry(new File(p));
}
builder.home(new FakeHome());
builder.mainClass("Main");
File cacheDir = Files.createTempDirectory(AnnotationImplPlugin.class.getSimpleName()).toFile();
builder.cacheDir(cacheDir);
config = builder.build();
}
Aggregations