https://issues.apache.org/bugzilla/show_bug.cgi?id=50270

           Summary: No way to control whether SSHExec prints output to
                    stdout
           Product: Ant
           Version: 1.8.1
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Optional Tasks
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Created an attachment (id=26296)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=26296)
Allow "suppressStdout"

Currently, SSHExec prints the exec's output to stdout regardless of whether the
user asked for the output to be stored in a property, or in a file. This leads
to undesirable results when the output is very long; if I'm writing an Ant
buildfile and would like output to be redirected to a file, in 99.99% of the
cases I would *not* like to see that very same output in stdout, especially
when that output is long.

I suggest adding a property called "suppressStdout" (defaults to "false") to
control this.

I have attached a patch to SSHExec; regrettably can't afford the time to
thoroughly test it but it looks simple enough.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to