Left: | ||
Right: |
OLD | NEW |
---|---|
1 /* | 1 /* |
2 Copyright 2013 Google Inc | 2 Copyright 2013 Google Inc |
3 | 3 |
4 Licensed under the Apache License, Version 2.0 (the "License"); | 4 Licensed under the Apache License, Version 2.0 (the "License"); |
5 you may not use this file except in compliance with the License. | 5 you may not use this file except in compliance with the License. |
6 You may obtain a copy of the License at | 6 You may obtain a copy of the License at |
7 | 7 |
8 http://www.apache.org/licenses/LICENSE-2.0 | 8 http://www.apache.org/licenses/LICENSE-2.0 |
9 | 9 |
10 Unless required by applicable law or agreed to in writing, software | 10 Unless required by applicable law or agreed to in writing, software |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
234 { | 234 { |
235 if (BuildVersion != 0) | 235 if (BuildVersion != 0) |
236 { | 236 { |
237 DefaultRepository.Update(string.Format("{0}.{1}", MajorVersion, MinorVersion)); | 237 DefaultRepository.Update(string.Format("{0}.{1}", MajorVersion, MinorVersion)); |
238 } | 238 } |
239 | 239 |
240 // if there are incoming changes those changes will be printed, othe rwise we can continue in the process | 240 // if there are incoming changes those changes will be printed, othe rwise we can continue in the process |
241 if (!HasIncomingChanges(new List<Hg> { DefaultRepository })) | 241 if (!HasIncomingChanges(new List<Hg> { DefaultRepository })) |
242 { | 242 { |
243 // in case build fails the method will print its failures | 243 // in case build fails the method will print its failures |
244 if (BuildDefaultRepository()) | 244 // TODO(peleyal): Currently a WP project can't be build. NEED TO INVESTIGATE MORE. |
245 //if (BuildDefaultRepository()) | |
245 { | 246 { |
246 CreateCoreNuGetPackages(); | 247 CreateCoreNuGetPackages(); |
247 // TODO(peleyal): release notes should be part of the packag e | 248 // TODO(peleyal): release notes should be part of the packag e |
248 } | 249 } |
249 } | 250 } |
250 } | 251 } |
251 | 252 |
252 /// <summary> | 253 /// <summary> |
253 /// Doing Step 2 of the release process which includes the following: | 254 /// Doing Step 2 of the release process which includes the following: |
254 /// <list type="number"> | 255 /// <list type="number"> |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
430 Directory.CreateDirectory(genDir); | 431 Directory.CreateDirectory(genDir); |
431 | 432 |
432 #region [RELEASE_VERSION]/Generated/Bin | 433 #region [RELEASE_VERSION]/Generated/Bin |
433 | 434 |
434 string binDir = Path.Combine(genDir, "Bin"); | 435 string binDir = Path.Combine(genDir, "Bin"); |
435 TraceSource.TraceEvent(TraceEventType.Information, "Generating \"{0} \" directory", | 436 TraceSource.TraceEvent(TraceEventType.Information, "Generating \"{0} \" directory", |
436 DirectoryUtilities.GetRelativePath(binDir, ContribRepository.Wor kingDirectory)); | 437 DirectoryUtilities.GetRelativePath(binDir, ContribRepository.Wor kingDirectory)); |
437 | 438 |
438 Directory.CreateDirectory(binDir); | 439 Directory.CreateDirectory(binDir); |
439 Directory.CreateDirectory(Path.Combine(binDir, "WP")); | 440 Directory.CreateDirectory(Path.Combine(binDir, "WP")); |
440 Directory.CreateDirectory(Path.Combine(binDir, "WinRT")); | 441 Directory.CreateDirectory(Path.Combine(binDir, "Windows")); |
441 | 442 |
442 foreach (var project in ReleaseProjects) | 443 foreach (var project in ReleaseProjects) |
443 { | 444 { |
444 var outputDir = binDir; | 445 var outputDir = binDir; |
445 // Add Google.Apis.WP and Google.Apis.Auth.WP assemblies to a WP folder. | 446 // Add Google.Apis.WP and Google.Apis.Auth.WP assemblies to a WP folder. |
446 if (project.GetName().Contains("WP")) | 447 if (project.GetName().Contains("WP")) |
447 { | 448 { |
448 outputDir = Path.Combine(outputDir, "WP"); | 449 outputDir = Path.Combine(outputDir, "WP"); |
449 } | 450 } |
450 // Add Google.Apis.WinRT and Google.Apis.Auth.WinRT assemblies t o a WinRT folder. | 451 // Add Google.Apis.Winndows and Google.Apis.Auth.Windows assembl ies to a Windows folder. |
jmcgrew
2014/08/25 19:06:50
Winndows -> Windows
peleyal
2014/08/28 21:08:17
Done.
| |
451 else if (project.GetName().Contains("WinRT")) | 452 else if (project.GetName().Contains("Windows")) |
452 { | 453 { |
453 outputDir = Path.Combine(outputDir, "WinRT"); | 454 outputDir = Path.Combine(outputDir, "Windows"); |
454 } | 455 } |
455 | 456 |
456 var releasePath = Path.Combine(project.DirectoryPath, "Bin", "Re lease"); | 457 var releasePath = Path.Combine(project.DirectoryPath, "Bin", "Re lease"); |
457 foreach (var filePath in Directory.GetFiles(releasePath, "Google .Apis.*")) | 458 foreach (var filePath in Directory.GetFiles(releasePath, "Google .Apis.*")) |
458 { | 459 { |
459 File.Copy(filePath, | 460 File.Copy(filePath, |
460 Path.Combine(outputDir, | 461 Path.Combine(outputDir, |
461 filePath.Substring(filePath.LastIndexOf(Pat h.DirectorySeparatorChar) + 1)), true); | 462 filePath.Substring(filePath.LastIndexOf(Pat h.DirectorySeparatorChar) + 1)), true); |
462 } | 463 } |
463 } | 464 } |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
643 return releaseProjects; | 644 return releaseProjects; |
644 } | 645 } |
645 | 646 |
646 var releasePaths = new[]· | 647 var releasePaths = new[]· |
647 { | 648 { |
648 DefaultRepository.Combine("Src", "GoogleApis.Core", "GoogleA pis.Core.csproj"), | 649 DefaultRepository.Combine("Src", "GoogleApis.Core", "GoogleA pis.Core.csproj"), |
649 DefaultRepository.Combine("Src", "GoogleApis", "GoogleApis.c sproj"), | 650 DefaultRepository.Combine("Src", "GoogleApis", "GoogleApis.c sproj"), |
650 DefaultRepository.Combine("Src", "GoogleApis.Auth", "GoogleA pis.Auth.csproj"), | 651 DefaultRepository.Combine("Src", "GoogleApis.Auth", "GoogleA pis.Auth.csproj"), |
651 | 652 |
652 DefaultRepository.Combine("Src", "GoogleApis.DotNet4", "Goog leApis.DotNet4.csproj"), | 653 DefaultRepository.Combine("Src", "GoogleApis.DotNet4", "Goog leApis.DotNet4.csproj"), |
653 DefaultRepository.Combine("Src", "GoogleApis.WinRT", "Google Apis.WinRT.csproj"), | 654 DefaultRepository.Combine("Src", "GoogleApis.Windows", "Goog leApis.Windows.csproj"), |
654 DefaultRepository.Combine("Src", "GoogleApis.WP", "GoogleApi s.WP.csproj"), | 655 DefaultRepository.Combine("Src", "GoogleApis.WP", "GoogleApi s.WP.csproj"), |
655 | 656 |
656 DefaultRepository.Combine("Src", "GoogleApis.Auth.DotNet4", "GoogleApis.Auth.DotNet4.csproj"), | 657 DefaultRepository.Combine("Src", "GoogleApis.Auth.DotNet4", "GoogleApis.Auth.DotNet4.csproj"), |
657 DefaultRepository.Combine("Src", "GoogleApis.Auth.Mvc4", "Go ogleApis.Auth.Mvc4.csproj"), | 658 DefaultRepository.Combine("Src", "GoogleApis.Auth.Mvc4", "Go ogleApis.Auth.Mvc4.csproj"), |
658 DefaultRepository.Combine("Src", "GoogleApis.Auth.WinRT", "G oogleApis.Auth.WinRT.csproj"), | 659 DefaultRepository.Combine("Src", "GoogleApis.Auth.Windows", "GoogleApis.Auth.Windows.csproj"), |
659 DefaultRepository.Combine("Src", "GoogleApis.Auth.WP", "Goog leApis.Auth.WP.csproj"), | 660 DefaultRepository.Combine("Src", "GoogleApis.Auth.WP", "Goog leApis.Auth.WP.csproj"), |
660 }; | 661 }; |
661 return releaseProjects = (from path in releasePaths | 662 return releaseProjects = (from path in releasePaths |
662 select new Project(path)).ToList(); | 663 select new Project(path)).ToList(); |
663 } | 664 } |
664 } | 665 } |
665 | 666 |
666 /// <summary>Builds the "default" repository projects.</summary> | 667 /// <summary>Builds the "default" repository projects.</summary> |
667 /// <returns><c>true</c> if the default repository was build successfull y</returns> | 668 /// <returns><c>true</c> if the default repository was build successfull y</returns> |
668 private bool BuildDefaultRepository() | 669 private bool BuildDefaultRepository() |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
714 | 715 |
715 if (!Directory.Exists(path)) | 716 if (!Directory.Exists(path)) |
716 { | 717 { |
717 Directory.CreateDirectory(path); | 718 Directory.CreateDirectory(path); |
718 } | 719 } |
719 | 720 |
720 Environment.CurrentDirectory = path; | 721 Environment.CurrentDirectory = path; |
721 } | 722 } |
722 } | 723 } |
723 } | 724 } |
OLD | NEW |