- Timestamp:
- 2005-07-26T11:56:46+12:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/src/java/org/greenstone/anttasks/MyGetUserAndPassword.java
r10299 r10307 30 30 * <getuserandpassword 31 31 * message="a message to display at the top of the dialog" 32 * userproperty="the name of the username property to set "32 * userproperty="the name of the username property to set (optional)" 33 33 * pwordproperty="the name of the password property to set" 34 34 * username="default value for username (optional)" … … 90 90 return; 91 91 } 92 if ( user_property == null ||pword_property == null) {93 throw new org.apache.tools.ant.BuildException(" userproperty and pwordproperty attributesmust be specified");92 if (pword_property == null) { 93 throw new org.apache.tools.ant.BuildException("pwordproperty attribute must be specified"); 94 94 } 95 95 … … 133 133 name_field.setText(username); 134 134 } 135 if (user_property == null ) { 136 name_field.setEditable(false); 137 } 135 138 JLabel pass_label = new JLabel("Password:"); 136 139 pass_field = new JPasswordField(16); … … 184 187 } 185 188 186 getProject().setProperty(user_property, username); 189 if (user_property != null) { 190 getProject().setProperty(user_property, username); 191 } 187 192 getProject().setProperty(pword_property, password); 188 193
Note:
See TracChangeset
for help on using the changeset viewer.