Ejemplo n.º 1
0
            // Download zip file.  It's arguable that this should be in the
            private static async Task DownloadZip(CIClient cic, Config config, string outputPath)
            {
                // Copy product tools to output location.
                bool success = cic.DownloadProduct(config, outputPath).Result;

                if (config.DoUnzip)
                {
                    // unzip archive in place.
                    var zipPath = Path.Combine(outputPath, "Product.zip");
                    ZipFile.ExtractToDirectory(zipPath, outputPath);
                }
            }
Ejemplo n.º 2
0
            // Download zip file.  It's arguable that this should be in the
            private static async Task DownloadZip(CIClient cic, Config config, string outputPath, string contentPath)
            {
                // Copy product tools to output location.
                bool success = await cic.DownloadProduct(config, outputPath, contentPath);

                if (success && config.DoUnzip)
                {
                    // unzip archive in place.
                    var zipPath = Path.Combine(outputPath, Path.GetFileName(contentPath));
                    Console.WriteLine("Unzipping: {0}", zipPath);
                    ZipFile.ExtractToDirectory(zipPath, outputPath);
                }
            }
Ejemplo n.º 3
0
            // Download zip file.  It's arguable that this should be in the 
            private static async Task DownloadZip(CIClient cic, Config config, string outputPath)
            {
                // Copy product tools to output location. 
                bool success = cic.DownloadProduct(config, outputPath).Result;

                if (config.DoUnzip)
                {
                    // unzip archive in place.
                    var zipPath = Path.Combine(outputPath, "Product.zip");
                    ZipFile.ExtractToDirectory(zipPath, outputPath);
                }
            }