How do I mask password input on Ant console?

How do I mask password input on Ant console?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Michael WorshamStaff Infrastructure ArchitectCommented:
Need a bit more information. Please describe the steps you are taking and if possible post an example of what you are doing.
Can I ask what you mean?  Do you mean that you are asking for a password from the command line in an ant script and you want to mask the password the user types in?

What task are you using to get the password?

What operating system are you using?  Does this need to be cross platform?

Or is this "console" that you speak of part of an IDE or platform you are using?

If it is a simple <input> task in an Ant script, you can either write your own task to show a GUI element like this:

Or if you don't want to show a GUI, and want to do it all on the command line, there's a pdf here which seems to show how it can be done:

(section 3)

If I've missed the point, you're going to have to give a bit more information that just repeating the title of your question twice...


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
RebelloMAuthor Commented:
Hi Tim,
Yes, I meant asking for the password from the command line in an ant script and want to the mask the password the user types in.

I referred to the antinput.pdf that you have mentioned. I have now created the password input handler and am able to mask the password.

Sorry, my question was incomplete.

Many Thanks,
Glad to help :)

Good luck with it all!

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Editors IDEs

From novice to tech pro — start learning today.