Browse Source

Commandline.describeCommand() methods would attempt to describe

arguments even when none, other than the executable name, were present.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277627 13f79535-47bb-0310-9956-ffa450edef68
master
Matthew Jason Benson 20 years ago
parent
commit
cee53a4634
2 changed files with 4 additions and 1 deletions
  1. +3
    -0
      WHATSNEW
  2. +1
    -1
      src/main/org/apache/tools/ant/types/Commandline.java

+ 3
- 0
WHATSNEW View File

@@ -41,6 +41,9 @@ Fixed bugs:
<replace> can now handle files as long as there is enough disk space <replace> can now handle files as long as there is enough disk space
available. available.


* Commandline.describeCommand() methods would attempt to describe
arguments even when none, other than the executable name, were present.

Other changes: Other changes:
-------------- --------------




+ 1
- 1
src/main/org/apache/tools/ant/types/Commandline.java View File

@@ -554,7 +554,7 @@ public class Commandline implements Cloneable {
StringBuffer buf = new StringBuffer("Executing \'"); StringBuffer buf = new StringBuffer("Executing \'");
buf.append(args[0]); buf.append(args[0]);
buf.append("\'"); buf.append("\'");
if (args.length > 0) {
if (args.length > 1) {
buf.append(" with "); buf.append(" with ");
buf.append(describeArguments(args, 1)); buf.append(describeArguments(args, 1));
} else { } else {


Loading…
Cancel
Save