Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(369)

Side by Side Diff: Tools/Google.Apis.NuGet.Publisher/NuGetApiPublisher.cs

Issue 13251043: Issue 351: Reimplement OAuth2 library - Step 7 (Closed) Base URL: https://google-api-dotnet-client.googlecode.com/hg/
Patch Set: Step 7 - Tools change Created 10 years, 5 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
OLDNEW
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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 /// <summary>Tests the main logic and does the following: 103 /// <summary>Tests the main logic and does the following:
104 /// <list type="number"> 104 /// <list type="number">
105 /// <item><description>Build the source files which specified in the inp ut directory</description></item> 105 /// <item><description>Build the source files which specified in the inp ut directory</description></item>
106 /// <item><description>Create a local NuGet package</description></item> 106 /// <item><description>Create a local NuGet package</description></item>
107 /// </list> 107 /// </list>
108 /// </summary> 108 /// </summary>
109 public async Task Test(string directory) 109 public async Task Test(string directory)
110 { 110 {
111 TraceSource.TraceEvent(TraceEventType.Verbose, "{0}\t start working on ...", item); 111 TraceSource.TraceEvent(TraceEventType.Verbose, "{0}\t start working on ...", item);
112 112
113 var sourceFolder = directory + item; 113 var sourceFolder = Path.Combine(directory, item.ToString());
114 if (!string.IsNullOrEmpty(sourceFolder)) 114 if (!string.IsNullOrEmpty(sourceFolder))
115 { 115 {
116 var buildDirectory = await Build(sourceFolder); 116 var buildDirectory = await Build(sourceFolder);
117 CreateLocalNupkgFile(buildDirectory); 117 CreateLocalNupkgFile(buildDirectory);
118 Directory.Delete(buildDirectory, true); 118 Directory.Delete(buildDirectory, true);
119 } 119 }
120 } 120 }
121 121
122 #region Download Sources 122 #region Download Sources
123 123
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 private string CreateLocalNupkgFile(string buildDirectoryPath) 233 private string CreateLocalNupkgFile(string buildDirectoryPath)
234 { 234 {
235 TraceSource.TraceEvent(TraceEventType.Verbose, "{0}\t Start creating .nupkg file", item); 235 TraceSource.TraceEvent(TraceEventType.Verbose, "{0}\t Start creating .nupkg file", item);
236 var nuspec = Directory.GetFiles(buildDirectoryPath, "*.nuspec").Sing le(); 236 var nuspec = Directory.GetFiles(buildDirectoryPath, "*.nuspec").Sing le();
237 return NuGetUtilities.CreateLocalNupkgFile(nuspec, buildDirectoryPat h); 237 return NuGetUtilities.CreateLocalNupkgFile(nuspec, buildDirectoryPat h);
238 } 238 }
239 239
240 #endregion 240 #endregion
241 } 241 }
242 } 242 }
OLDNEW

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b