wrap nuget call with cmd.exe calls, do not show api key
[teamcity/dotNetPackagesSupport.git] / nuget-agent / src / jetbrains / buildServer / nuget / agent / commands / impl / NuGetActionFactoryImpl.java
index 2cad02b591f0faeebc220609b5d00bdd32180491..d27aee8f2a9de293e9acde79341db83611421d81 100644 (file)
@@ -30,7 +30,7 @@ import org.jetbrains.annotations.NotNull;
 \r
 import java.io.File;\r
 import java.util.Collection;\r
-import java.util.Collections;\r
+import java.util.Map;\r
 \r
 /**\r
  * Created by Eugene Petrenko (eugene.petrenko@gmail.com)\r
@@ -54,13 +54,14 @@ public class NuGetActionFactoryImpl implements NuGetActionFactory {
       @NotNull\r
       public BuildProcess createCommand(@NotNull File program,\r
                                         @NotNull File workingDir,\r
-                                        @NotNull Collection<String> argz) throws RunBuildException {\r
+                                        @NotNull Collection<String> argz,\r
+                                        @NotNull Map<String, String> additionalEnvironment) throws RunBuildException {\r
         return myFactory.executeCommandLine(\r
                 context,\r
                 program,\r
                 argz,\r
                 workingDir,\r
-                Collections.<String, String>emptyMap()\r
+                additionalEnvironment\r
         );\r
       }\r
     };\r