From cee53a46346656f8d2ff7ffdd58efe41552c22de Mon Sep 17 00:00:00 2001 From: Matthew Jason Benson Date: Thu, 10 Feb 2005 21:10:10 +0000 Subject: [PATCH] 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 --- WHATSNEW | 3 +++ src/main/org/apache/tools/ant/types/Commandline.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/WHATSNEW b/WHATSNEW index eae61fbb7..94b43d0d5 100644 --- a/WHATSNEW +++ b/WHATSNEW @@ -41,6 +41,9 @@ Fixed bugs: can now handle files as long as there is enough disk space available. +* Commandline.describeCommand() methods would attempt to describe + arguments even when none, other than the executable name, were present. + Other changes: -------------- diff --git a/src/main/org/apache/tools/ant/types/Commandline.java b/src/main/org/apache/tools/ant/types/Commandline.java index f8167502a..041dfe6a4 100644 --- a/src/main/org/apache/tools/ant/types/Commandline.java +++ b/src/main/org/apache/tools/ant/types/Commandline.java @@ -554,7 +554,7 @@ public class Commandline implements Cloneable { StringBuffer buf = new StringBuffer("Executing \'"); buf.append(args[0]); buf.append("\'"); - if (args.length > 0) { + if (args.length > 1) { buf.append(" with "); buf.append(describeArguments(args, 1)); } else {