ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From k...@apache.org
Subject svn commit: r415545 - /ant/core/trunk/src/testcases/org/apache/tools/ant/filters/ConcatFilterTest.java
Date Tue, 20 Jun 2006 07:44:48 GMT
Author: kevj
Date: Tue Jun 20 00:44:47 2006
New Revision: 415545

URL: http://svn.apache.org/viewvc?rev=415545&view=rev
Log:
test was failing on osx, change to use StringUtils - test now passes

Modified:
    ant/core/trunk/src/testcases/org/apache/tools/ant/filters/ConcatFilterTest.java

Modified: ant/core/trunk/src/testcases/org/apache/tools/ant/filters/ConcatFilterTest.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/testcases/org/apache/tools/ant/filters/ConcatFilterTest.java?rev=415545&r1=415544&r2=415545&view=diff
==============================================================================
--- ant/core/trunk/src/testcases/org/apache/tools/ant/filters/ConcatFilterTest.java (original)
+++ ant/core/trunk/src/testcases/org/apache/tools/ant/filters/ConcatFilterTest.java Tue Jun
20 00:44:47 2006
@@ -21,8 +21,8 @@
 import java.io.IOException;
 
 import org.apache.tools.ant.BuildFileTest;
-import org.apache.tools.ant.taskdefs.condition.Os;
 import org.apache.tools.ant.util.FileUtils;
+import org.apache.tools.ant.util.StringUtils;
 
 /**
  * JUnit Testcases for ConcatReader
@@ -30,8 +30,7 @@
 public class ConcatFilterTest extends BuildFileTest {
 
     private static final FileUtils FILE_UTILS = FileUtils.getFileUtils();
-    private static final String lSep = 
-        Os.isFamily("mac") ? "\r" : System.getProperty("line.separator");
+    private static final String lSep = StringUtils.LINE_SEP;
 
     private static final String FILE_PREPEND_WITH =
           "this-should-be-the-first-line" + lSep



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


Mime
View raw message