Browse Source

use StringUtil.LINE_SEP

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@395512 13f79535-47bb-0310-9956-ffa450edef68
master
Kevin Jackson 19 years ago
parent
commit
fd7c41e1a1
1 changed files with 7 additions and 3 deletions
  1. +7
    -3
      src/main/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java

+ 7
- 3
src/main/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java View File

@@ -17,6 +17,9 @@


package org.apache.tools.ant.taskdefs.compilers; 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.File;
import java.io.FileWriter; import java.io.FileWriter;
import java.io.IOException; import java.io.IOException;
@@ -30,6 +33,7 @@ import org.apache.tools.ant.taskdefs.LogStreamHandler;
import org.apache.tools.ant.types.Commandline; import org.apache.tools.ant.types.Commandline;
import org.apache.tools.ant.types.Path; import org.apache.tools.ant.types.Path;
import org.apache.tools.ant.util.FileUtils; 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.util.JavaEnvUtils;
import org.apache.tools.ant.taskdefs.condition.Os; import org.apache.tools.ant.taskdefs.condition.Os;


@@ -68,7 +72,7 @@ public abstract class DefaultCompilerAdapter implements CompilerAdapter {
protected String memoryMaximumSize; protected String memoryMaximumSize;


protected File[] compileList; protected File[] compileList;
protected static final String lSep = System.getProperty("line.separator");
//protected static final String lSep = System.getProperty("line.separator");
protected Javac attributes; protected Javac attributes;




@@ -399,12 +403,12 @@ public abstract class DefaultCompilerAdapter implements CompilerAdapter {
} }
niceSourceList.append(" to be compiled:"); niceSourceList.append(" to be compiled:");


niceSourceList.append(lSep);
niceSourceList.append(StringUtils.LINE_SEP);


for (int i = 0; i < compileList.length; i++) { for (int i = 0; i < compileList.length; i++) {
String arg = compileList[i].getAbsolutePath(); String arg = compileList[i].getAbsolutePath();
cmd.createArgument().setValue(arg); cmd.createArgument().setValue(arg);
niceSourceList.append(" " + arg + lSep);
niceSourceList.append(" " + arg + StringUtils.LINE_SEP);
} }


attributes.log(niceSourceList.toString(), Project.MSG_VERBOSE); attributes.log(niceSourceList.toString(), Project.MSG_VERBOSE);


Loading…
Cancel
Save