public void loadDefaultSetOfFilesToConvert() { dotNetAssembliesToConvert.clearMappings(); dotNetAssembliesToConvert.setExtensionsToShow(".dll .exe"); dotNetAssembliesToConvert.addFiles(CompileEngine.getListOfO2AssembliesInExecutionDir()); dotNetAssembliesToConvert.addFiles(AppDomainUtils.getDllsInCurrentAppDomain_FullPath()); runOnLoad = false; }
public void _test_createJarStubForAllO2Assemblies() { var o2Timer = new O2Timer("created Jar Stubs for all O2Assemblies").start(); var o2Assemblies = CompileEngine.getListOfO2AssembliesInExecutionDir(); foreach (var o2Assembly in o2Assemblies) { var jarStubFile = JavaCompile.createJarStubForDotNetDll(o2Assembly, IKVMConfig.jarStubsCacheDir); Assert.That(File.Exists(jarStubFile), "jarStubFile didn't exist: {0}", jarStubFile); } DI.log.info("\n...all done\n"); o2Timer.stop(); }
private static List <Assembly> getDefaultLoadedAssemblies() { var assembliesPaths = CompileEngine.getListOfO2AssembliesInExecutionDir(); var assemblies = new List <Assembly>(); foreach (var assemblyPath in assembliesPaths) { // PublicDI.log.error("Loading file: {0}", assemblyPath); var assembly = PublicDI.reflection.getAssembly(assemblyPath); //PublicDI.reflection.getAssembliesInCurrentAppDomain() if (assembly != null) { assemblies.Add(assembly); } else { PublicDI.log.debug("could not load assembly: {0}", assemblyPath); } } return(assemblies); }