• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4060
  • Last Modified:

How do I mask password input on Ant console?

How do I mask password input on Ant console?
0
RebelloM
Asked:
RebelloM
  • 2
1 Solution
 
Michael WorshamInfrastructure / Solutions ArchitectCommented:
Need a bit more information. Please describe the steps you are taking and if possible post an example of what you are doing.
0
 
TimYatesCommented:
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:

http://www.jera.com/tools/anttasks/#query

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:

http://downloads.sourceforge.net/emaria/antinput.pdf

(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...

Tim
0
 
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,
RebelloM
0
 
TimYatesCommented:
Glad to help :)

Good luck with it all!

Tim
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now