ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran" <>
Subject Re: Password task
Date Fri, 21 Feb 2003 18:37:36 GMT

----- Original Message -----
From: "Mattias J" <>
To: <>
Sent: Friday, February 21, 2003 06:26
Subject: Password task

> I need the user to input a password (for ftp) into an ant script, without
> being echoed to the screen. I know this is a common issue on this mailing
> list, but I have searched all over and found no final answer.
> I should state that the ant script is run (on a Linux box) through telnet,
> so a GUI popup is no alternative.

well, its a JVM problem; we cant fix it.

> I started off trying to write a shell script to read the password for me,
> but then I found out Ant steals all the input...

you could always modify and have it ask for the password.

1. you are using ftp...the password goes over the wire in plaintext anyway,
so dont be over paranoid
2. I normally keep the passwords in properties files with access rights
restricted to the owner (me). that way you can even deploy without the

View raw message