Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 8248 invoked from network); 14 Jul 2004 16:36:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 14 Jul 2004 16:36:49 -0000 Received: (qmail 13658 invoked by uid 500); 14 Jul 2004 16:36:36 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 13573 invoked by uid 500); 14 Jul 2004 16:36:35 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 13554 invoked by uid 99); 14 Jul 2004 16:36:35 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [134.132.72.99] (HELO junior.lgc.com) (134.132.72.99) by apache.org (qpsmtpd/0.27.1) with ESMTP; Wed, 14 Jul 2004 09:36:29 -0700 Received: from lgchvw01.lgc.com (lgchvw01.lgc.com [134.132.93.107]) by junior.lgc.com (8.11.7/8.11.3) with SMTP id i6EGaL827355 for ; Wed, 14 Jul 2004 11:36:21 -0500 (CDT) Received: from 134.132.93.152 by lgchvw01.lgc.com (InterScan E-Mail VirusWall NT); Wed, 14 Jul 2004 11:35:38 -0500 Received: by lgchexchbh.ad.lgc.com with Internet Mail Service (5.5.2657.72) id <382TWCR3>; Wed, 14 Jul 2004 11:35:38 -0500 Message-ID: From: Dominique Devienne To: "'Ant Users List'" Subject: RE: mask password task Date: Wed, 14 Jul 2004 11:34:00 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: text/plain X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N > From: Khehra, Sukh [mailto:Sukh.Khehra@wsj.com] > > I want the password to not echo back on the screen when typed. > > I searched the mailing list and found some postings from last year that > basically said that due to a limitation of the java system.in class, this > cannot be done. > > I was wondering if that has changed since then. Has anyone come up with a > solution to this? Using GUI, scp, rcp is not an option for me. I don't think anything changed. The only way to mask the password would be to implement your own input method using a native library (and JNI). Hey, somebody already has ;-) It's called Java readline, and it's at http://java-readline.sourceforge.net/ . I'm not sure it would allow masking the password, but it might. Check it out. --DD PS: I ran across Java readline thru http://rhinohide.cx/antsh/links.html --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org