ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant/taskdefs/compilers DefaultCompilerAdapter.java
Date Mon, 21 Mar 2005 15:26:16 GMT
bodewig     2005/03/21 07:26:16

  Modified:    src/main/org/apache/tools/ant/taskdefs/compilers
                        DefaultCompilerAdapter.java
  Log:
  shouldn't replace '\' on Unix
  
  Revision  Changes    Path
  1.60      +1 -1      ant/src/main/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java
  
  Index: DefaultCompilerAdapter.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java,v
  retrieving revision 1.59
  retrieving revision 1.60
  diff -u -r1.59 -r1.60
  --- DefaultCompilerAdapter.java	24 Feb 2005 20:18:22 -0000	1.59
  +++ DefaultCompilerAdapter.java	21 Mar 2005 15:26:16 -0000	1.60
  @@ -460,7 +460,7 @@
                       out = new PrintWriter(new FileWriter(tmpFile));
                       for (int i = firstFileName; i < args.length; i++) {
                           if (quoteFiles && args[i].indexOf(" ") > -1) {
  -                            args[i] = args[i].replace('\\', '/');
  +                            args[i] = args[i].replace(File.separatorChar, '/');
                               out.println("\"" + args[i] + "\"");
                           } else {
                               out.println(args[i]);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message