Bug 56732 - Need way to omit command echoing by sshexec
Summary: Need way to omit command echoing by sshexec
Status: NEW
Alias: None
Product: Ant
Classification: Unclassified
Component: Core tasks (show other bugs)
Version: 1.9.4
Hardware: PC All
: P2 normal (vote)
Target Milestone: ---
Assignee: Ant Notifications List
Depends on:
Reported: 2014-07-16 21:20 UTC by Isaac Shabtay
Modified: 2014-07-16 21:20 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Isaac Shabtay 2014-07-16 21:20:09 UTC
Currently, sshexec prints the executed SSH command using the "INFO" level.

However, at certain times, it is desirable to have sshexec *not* echo the command that it is executing. A good example would be a command that contains a password.

I realize that this is possible to achieve by setting the logging level of sshexec to "warn". However, this solution is not flexible enough as it would be in effect for *all* sshexec invocations within the project.

Need to add an attribute to sshexec, something like "echo-command" and default it to "true" (to preserve existing functionality).

For some reason I'm getting errors importing Ant's source code at the moment, so can't generate a patch...