ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hi...@apache.org
Subject svn commit: r1373604 - /ant/ivy/core/trunk/src/java/org/apache/ivy/util/FileUtil.java
Date Wed, 15 Aug 2012 19:54:41 GMT
Author: hibou
Date: Wed Aug 15 19:54:41 2012
New Revision: 1373604

URL: http://svn.apache.org/viewvc?rev=1373604&view=rev
Log:
IVY-1252 : use Java 1.4 API

Modified:
    ant/ivy/core/trunk/src/java/org/apache/ivy/util/FileUtil.java

Modified: ant/ivy/core/trunk/src/java/org/apache/ivy/util/FileUtil.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/util/FileUtil.java?rev=1373604&r1=1373603&r2=1373604&view=diff
==============================================================================
--- ant/ivy/core/trunk/src/java/org/apache/ivy/util/FileUtil.java (original)
+++ ant/ivy/core/trunk/src/java/org/apache/ivy/util/FileUtil.java Wed Aug 15 19:54:41 2012
@@ -93,7 +93,7 @@ public final class FileUtil {
             String commands = sb.toString();
             // Run the buffer of commands we have built.
             Runtime runtime = Runtime.getRuntime();
-            Message.verbose("executing \"sh\" of:\n\t" + commands.replace("\n", "\n\t"));
+            Message.verbose("executing \"sh\" of:\n\t" + commands.replaceAll("\n", "\n\t"));
             Process process = runtime.exec("sh");
             OutputStream os = process.getOutputStream();
             os.write(commands.getBytes("UTF-8"));



Mime
View raw message