Author: bodewig
Date: Tue Jan 23 23:55:39 2007
New Revision: 499300
URL: http://svn.apache.org/viewvc?view=rev&rev=499300
Log:
OK, we seem to need quotes in response files on Linux as well
Modified:
ant/antlibs/dotnet/trunk/src/main/org/apache/ant/dotnet/NetCommand.java
Modified:
ant/antlibs/dotnet/trunk/src/main/org/apache/ant/dotnet/NetCommand.java
URL:
http://svn.apache.org/viewvc/ant/antlibs/dotnet/trunk/src/main/org/apache/ant/dotnet/NetCommand.java?view=diff&rev=499300&r1=499299&r2=499300
==============================================================================
--- ant/antlibs/dotnet/trunk/src/main/org/apache/ant/dotnet/NetCommand.java
(original)
+++ ant/antlibs/dotnet/trunk/src/main/org/apache/ant/dotnet/NetCommand.java Tue
Jan 23 23:55:39 2007
@@ -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 @@
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 @@
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]);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]