You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by ke...@apache.org on 2006/04/20 08:51:51 UTC
svn commit: r395512 -
/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java
Author: kevj
Date: Wed Apr 19 23:51:49 2006
New Revision: 395512
URL: http://svn.apache.org/viewcvs?rev=395512&view=rev
Log:
use StringUtil.LINE_SEP
Modified:
ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java
Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java
URL: http://svn.apache.org/viewcvs/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java?rev=395512&r1=395511&r2=395512&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java Wed Apr 19 23:51:49 2006
@@ -17,6 +17,9 @@
package org.apache.tools.ant.taskdefs.compilers;
+//Java5 style
+//import static org.apache.tools.ant.util.StringUtils.LINE_SEP;
+
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
@@ -30,6 +33,7 @@
import org.apache.tools.ant.types.Commandline;
import org.apache.tools.ant.types.Path;
import org.apache.tools.ant.util.FileUtils;
+import org.apache.tools.ant.util.StringUtils;
import org.apache.tools.ant.util.JavaEnvUtils;
import org.apache.tools.ant.taskdefs.condition.Os;
@@ -68,7 +72,7 @@
protected String memoryMaximumSize;
protected File[] compileList;
- protected static final String lSep = System.getProperty("line.separator");
+ //protected static final String lSep = System.getProperty("line.separator");
protected Javac attributes;
@@ -399,12 +403,12 @@
}
niceSourceList.append(" to be compiled:");
- niceSourceList.append(lSep);
+ niceSourceList.append(StringUtils.LINE_SEP);
for (int i = 0; i < compileList.length; i++) {
String arg = compileList[i].getAbsolutePath();
cmd.createArgument().setValue(arg);
- niceSourceList.append(" " + arg + lSep);
+ niceSourceList.append(" " + arg + StringUtils.LINE_SEP);
}
attributes.log(niceSourceList.toString(), Project.MSG_VERBOSE);
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org