Apache Ant input task - how to handle password ?

K

kejoseph

Hi,

I have written an Ant build script to deploy a WebLogic application. I
do not want to store the password in plain text in a property file.
When I use the Ant input task, it displays the password in clear text.
Is there any way to NOT display the password in clear text or rather
display * the way Win2k does or maybe not display anything (like Unix
?)

Thanks,

Kevin.
 
Joined
Dec 4, 2008
Messages
1
Reaction score
0
SecureInputHandler

As of Ant 1.7.1 (with Java 6) you can use a "SecureInputHandler" override for the input, like this:
Code:
<input message="password:>" addproperty="password">
      <handler classname="org.apache.tools.ant.input.SecureInputHandler" />
</input>

Unfortunately, while the "handler" override is mentioned in the Ant documentation, the "SecureInputHandler" isn't. :sad:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top