I have been using ANT to get builds done of the many projects we work on, and one of the things that has bugged me was that the SVN username and passowrd was stored in the build.properties file. Today the ANT Manual came to the rescue with the input task.
Lets look at the example from a previous post of updating the working copy through SVN. I have now changed the svn tag to use some variables, and created 2 input tags to use for username and password. This way the user is prompted to enter their own details, and if they get it wrong then they clearly aren’t supposed to be doing this build. This will create 2 separate boxes. I cant work out how to get only one box, and it doesn’t block out the password entry, so you can see your password as you type. I don’t think its a show stopper, but would be nice if it was relatively hidden.