Browse Source

Reuse join functionality of stringutil rather than Commandline.toString

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270707 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 24 years ago
parent
commit
c145ffcaa4
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java
  2. +1
    -1
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java

+ 1
- 1
proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java View File

@@ -348,7 +348,7 @@ public abstract class DefaultCompilerAdapter
* POSIX seems to define a lower limit of 4k, so use a temporary
* file if the total length of the command line exceeds this limit.
*/
if( Commandline.toString( args ).length() > 4096 )
if( StringUtil.join( args, " " ).length() > 4096 )
{
PrintWriter out = null;
try


+ 1
- 1
proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java View File

@@ -348,7 +348,7 @@ public abstract class DefaultCompilerAdapter
* POSIX seems to define a lower limit of 4k, so use a temporary
* file if the total length of the command line exceeds this limit.
*/
if( Commandline.toString( args ).length() > 4096 )
if( StringUtil.join( args, " " ).length() > 4096 )
{
PrintWriter out = null;
try


Loading…
Cancel
Save