public virtual void CacheResult() { ModuleRepository repository = new ModuleRepository(); if (this.packages != null) { repository.Modules.AddRange(this.packages); } try { DirectoryInfo tempDirectory = Utils.GetTempDirectory(); File.Copy(repository.WriteIvyFile(tempDirectory.FullName, null), this.IndexCache, true); tempDirectory.Delete(true); } catch { } }