wrap nuget call with cmd.exe calls, do not show api key
[teamcity/dotNetPackagesSupport.git] / nuget-agent / src / jetbrains / buildServer / nuget / agent / commands / CommandFactory.java
index dc2649a629bebc67970401920ab6f221a4fb17bb..d321926accad03a29312c5a170a2acbd18a3369c 100644 (file)
@@ -25,6 +25,7 @@ import org.jetbrains.annotations.NotNull;
 \r
 import java.io.File;\r
 import java.util.Collection;\r
+import java.util.Map;\r
 \r
 /**\r
  * Created by Eugene Petrenko (eugene.petrenko@gmail.com)\r
@@ -59,12 +60,14 @@ public interface CommandFactory {
      * @param program program to run\r
      * @param workingDir working firectory of program\r
      * @param argz arguments array\r
+     * @param additionalEnvironment environment variables that has to be added\r
      * @return some result object depending of caller's desire\r
      * @throws RunBuildException if failed to create/execure command\r
      */\r
     @NotNull\r
     T createCommand(@NotNull File program,\r
-                    @NotNull final File workingDir,\r
-                    @NotNull Collection<String> argz) throws RunBuildException;\r
+                    @NotNull File workingDir,\r
+                    @NotNull Collection<String> argz,\r
+                    @NotNull Map<String, String> additionalEnvironment) throws RunBuildException;\r
   }\r
 }\r