Keeping the private stuff out of ANT config files

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 […]
Last updated: August 1, 2022

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.

Duncan Isaksen-Loxton

Educated as a web developer, with over 20 years of internet based work and experience, Duncan is a Google Workspace Certified Collaboration Engineer and a WordPress expert.
Login
Log in below to access your courses.
Log In With Google
Forgot Password
Enter your email address or username and we’ll send you instructions to reset your password.