• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4115
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

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