https://bz.apache.org/bugzilla/show_bug.cgi?id=26453

Jaikiran Pai <jaiki...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #9 from Jaikiran Pai <jaiki...@apache.org> ---
I forgot to update this issue. Me and Chris discussed this in a mail and I
believe we agreed that the change we introduced in 1.10.15 is enough. Here's my
reasoning:

The reason I made that INFO was to allow callers of Ant to decide whether or
not they would like to see this message. That way it doesn't break existing
expectations (if anyone was relying on this output) plus allows others to
disable it by setting "-quiet" when launching Ant. Previously that wasn't
possible because it was being logged at ERROR level. Now the "-quiet" option
will disable this log message. Here's an example:

<project default="foo">
    <target name="foo">
        <exec executable="cat">
            <arg line="hello.txt"/>
        </exec>   
    </target>   
</project>   

(hello.txt is an intentionally non-existent file)

Running this on *nix with Ant 1.10.14 (the released version) returns:

foo:
     [exec] cat: hello.txt: No such file or directory
     [exec] Result: 1

Running with -quiet on Ant 1.10.14 returns:

     [exec] Result: 1

Doing the same after this change, with the Ant mainline version, without
-quiet:

foo:
     [exec] cat: hello.txt: No such file or directory
     [exec] Result: 1

with -quiet option:

(no output)

So this allows users more control without impacting any existing expectations.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to