diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/dotnet/NetCommand.java b/src/main/org/apache/tools/ant/taskdefs/optional/dotnet/NetCommand.java index 04229f0f0..d31de4109 100644 --- a/src/main/org/apache/tools/ant/taskdefs/optional/dotnet/NetCommand.java +++ b/src/main/org/apache/tools/ant/taskdefs/optional/dotnet/NetCommand.java @@ -204,6 +204,11 @@ public class NetCommand { } } + public void addArgument(String argument1,String argument2) { + if (argument2 != null && argument2.length() != 0) { + commandLine.createArgument().setValue(argument1+argument2); + } + } /** * set up the command sequence..