Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
crfloss
Post subject: Ant v1.8 input with inputHandler  PostPosted: Mar 10, 2010 - 06:52 PM
Registered Member
Registered Member


Joined: Jun 25, 2004
Posts: 8

I have an ant file that has the following target in it:

Code:

   <target name="xxx">
      <echo message="${ant.version} ::: ${java.version}"/>
      <input message="Enter userId:" addproperty="user.id"/>
      <input message="Enter password:" addproperty="user.pw">
      <handler classname="org.apache.tools.ant.input.SecureInputHandler" />
      </input>
      <echo message="user=${user.id}, password=${user.pw}"/>
   </target>


When I run from the command line I get versions 1.8.0 for ant and 1.6.0_13 for Java, and I get the behavior I am expenting. The user.id is displayed as it is typed, and the user.pw is not. The values echoed out are what was typed in. When I run this inside eclipse, with ant set to run in a seperate JRE I get
Code:

BUILD FAILED
C:\workspaces\testArea\ProjectManagement\newProject.ant:236: Failed to read input from Console.

at the point the user.pw is being read, no input popup is displayed.

When I run in the same JRE as MyEclipse it prompts for the user.id in the popup window, then seems to be trying to read from the console window, but anything typed is displayed as it is typed (this is not secure) and nothing I type seems to end the input, it remains in a read state until I kill the ant session.

I really need to read password, since we do not want to store them, and keep then from being seen as they are typed.

Any ideas?
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-joy
Post subject: RE: Ant v1.8 input with inputHandler  PostPosted: May 10, 2010 - 12:35 PM
Registered Member
Registered Member


Joined: Feb 03, 2009
Posts: 3364

crfloss,

I am not sure I understand the problem at hand. Can you answer few queries for me to get to the root cause?
1. Can you copy and paste your installation details? Open MyEclipse IDE, from menu options click on MyEclipse > Installation Summary > Installation details
2. Have you tried to debug?
3. Do you see any issues reported on the problems tab?
4. Can you open your .log file located at [your workspace dir]/.metadata/.log and copy and paste relevant issues here?

_________________
Joy
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits