How do I mask password input on Ant console?

Posted on 2008-11-10
Last Modified: 2013-11-10
How do I mask password input on Ant console?
Question by:RebelloM
    LVL 29

    Expert Comment

    by:Michael W
    Need a bit more information. Please describe the steps you are taking and if possible post an example of what you are doing.
    LVL 35

    Accepted Solution

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


    Author Comment

    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,
    LVL 35

    Expert Comment

    Glad to help :)

    Good luck with it all!


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Suggested Solutions

    Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
    Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
    This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
    The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now