LEFT | RIGHT |
(no file at all) | |
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 11 matching lines...) Expand all Loading... |
22 using System.Text.RegularExpressions; | 22 using System.Text.RegularExpressions; |
23 using System.Threading.Tasks; | 23 using System.Threading.Tasks; |
24 | 24 |
25 using Microsoft.Build.Evaluation; | 25 using Microsoft.Build.Evaluation; |
26 using Microsoft.Build.Framework; | 26 using Microsoft.Build.Framework; |
27 using Microsoft.Build.Logging; | 27 using Microsoft.Build.Logging; |
28 using NuGet; | 28 using NuGet; |
29 | 29 |
30 using Google.Apis.NuGet.Publisher.Discovery; | 30 using Google.Apis.NuGet.Publisher.Discovery; |
31 using Google.Apis.Utils; | 31 using Google.Apis.Utils; |
| 32 using Google.Apis.Utils.Trace; |
32 | 33 |
33 namespace Google.Apis.NuGet.Publisher | 34 namespace Google.Apis.NuGet.Publisher |
34 { | 35 { |
35 /// <summary>This publisher publishes Google API packages to NuGet main repo
sitory.</summary> | 36 /// <summary>This publisher publishes Google API packages to NuGet main repo
sitory.</summary> |
36 public class NuGetApiPublisher | 37 public class NuGetApiPublisher |
37 { | 38 { |
38 private static TraceSource TraceSource = new TraceSource("Google.Apis"); | 39 private static TraceSource TraceSource = new TraceSource("Google.Apis"); |
39 | 40 |
40 private readonly DiscoveryItem item; | 41 private readonly DiscoveryItem item; |
41 | 42 |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 private string CreateLocalNupkgFile(string buildDirectoryPath) | 233 private string CreateLocalNupkgFile(string buildDirectoryPath) |
233 { | 234 { |
234 TraceSource.TraceEvent(TraceEventType.Verbose, "{0}\t Start creating
.nupkg file", item); | 235 TraceSource.TraceEvent(TraceEventType.Verbose, "{0}\t Start creating
.nupkg file", item); |
235 var nuspec = Directory.GetFiles(buildDirectoryPath, "*.nuspec").Sing
le(); | 236 var nuspec = Directory.GetFiles(buildDirectoryPath, "*.nuspec").Sing
le(); |
236 return NuGetUtilities.CreateLocalNupkgFile(nuspec, buildDirectoryPat
h); | 237 return NuGetUtilities.CreateLocalNupkgFile(nuspec, buildDirectoryPat
h); |
237 } | 238 } |
238 | 239 |
239 #endregion | 240 #endregion |
240 } | 241 } |
241 } | 242 } |
LEFT | RIGHT |