Skip to content
Permalink
Browse files
OK, we seem to need quotes in response files on Linux as well
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/dotnet/trunk@499300 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
bodewig committed Jan 24, 2007
1 parent 0f117c3 commit fcdd677f547b946e297fb94587b9b8ffd6c4f0ce
Showing 1 changed file with 1 addition and 8 deletions.
@@ -42,7 +42,6 @@
import org.apache.tools.ant.taskdefs.Execute;
import org.apache.tools.ant.taskdefs.ExecuteStreamHandler;
import org.apache.tools.ant.taskdefs.LogStreamHandler;
import org.apache.tools.ant.taskdefs.condition.Os;
import org.apache.tools.ant.types.Commandline;

/**
@@ -59,12 +58,6 @@ public class NetCommand {

private static final FileUtils FILE_UTILS = FileUtils.getFileUtils();

private static final boolean IS_WINDOWS;

static {
IS_WINDOWS = Os.isFamily("windows");
}

/**
* owner project
*/
@@ -358,7 +351,7 @@ private void setExecutableCommandLine() {
PrintWriter out = new PrintWriter(new BufferedOutputStream(fos));
//start at 1 because element 0 is the executable name
for (int i = 1; i < commands.length; ++i) {
if (IS_WINDOWS && commands[i].indexOf(" ") > -1) {
if (commands[i].indexOf(" ") > -1) {
String q = commands[i].indexOf("\"") > -1 ? "'" : "\"";
out.print(q);
out.print(commands[i]);

0 comments on commit fcdd677

Please sign in to comment.