polish interface
authorEugene Petrenko <eugene.petrenko@gmail.com>
Thu, 21 Jul 2011 12:21:11 +0000 (16:21 +0400)
committerEugene Petrenko <eugene.petrenko@gmail.com>
Thu, 21 Jul 2011 12:21:11 +0000 (16:21 +0400)
nuget-agent/src/jetbrains/buildServer/nuget/agent/commands/CommandFactory.java

index 177624acd05801d59f6d0b276ead923c6d2d97b0..5a5931d22eb8f99350c7140952398bf2db49ae59 100644 (file)
@@ -43,6 +43,16 @@ public interface CommandFactory {
                      @NotNull Callback<T> factory) throws RunBuildException;\r
 \r
   public interface Callback<T> {\r
                      @NotNull Callback<T> factory) throws RunBuildException;\r
 \r
   public interface Callback<T> {\r
-    T createCommand(@NotNull File program, @NotNull final File workingDir, @NotNull Collection<String> argz) throws RunBuildException;\r
+    /**\r
+     * Called with generated arguments to crate execurable instance or run command\r
+     * @param program program to run\r
+     * @param workingDir working firectory of program\r
+     * @param argz arguments array\r
+     * @return some result object depending of caller's desire\r
+     * @throws RunBuildException if failed to create/execure command\r
+     */\r
+    T createCommand(@NotNull File program,\r
+                    @NotNull final File workingDir,\r
+                    @NotNull Collection<String> argz) throws RunBuildException;\r
   }\r
 }\r
   }\r
 }\r