2006/unicorn/src/org/w3c/unicorn/util UnicornAuthenticator.java,1.3,1.4

Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/util
In directory hutz:/tmp/cvs-serv11058/src/org/w3c/unicorn/util

Modified Files:
	UnicornAuthenticator.java 
Log Message:
commented JOptionPane.showInputDialog

Index: UnicornAuthenticator.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/util/UnicornAuthenticator.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- UnicornAuthenticator.java	23 Sep 2009 15:21:52 -0000	1.3
+++ UnicornAuthenticator.java	23 Sep 2009 15:35:40 -0000	1.4
@@ -1,11 +1,7 @@
 package org.w3c.unicorn.util;
 
-import java.awt.HeadlessException;
-import java.util.StringTokenizer;
-
 import javax.mail.Authenticator;
 import javax.mail.PasswordAuthentication;
-import javax.swing.JOptionPane;
 
 import org.w3c.unicorn.Framework;
 
@@ -24,12 +20,13 @@
 
 		try {
 			if (username == null && password == null) {
-			    String result = JOptionPane.showInputDialog("Enter 'username,password' for your SMTP Server. This is asked only once. You can also set the username and password in mail.properties");
+				/*String result = JOptionPane.showInputDialog("Enter 'username,password' for your SMTP Server. This is asked only once. You can also set the username and password in mail.properties");
 			    StringTokenizer st = new StringTokenizer(result, ",");
 			    username = st.nextToken();
-			    password = st.nextToken();
+			    password = st.nextToken();*/
+				throw new Exception();
 			}
-		} catch (Exception e) {
+		} catch (Exception e) { //catch (HeadlessException e) {
 			Framework.logger.error("Before sending mails you must specify a username and a password in mail.properties. If your SMTP server does not need authentication, set mail.smtp.auth to false.");
 		}
 

Received on Wednesday, 23 September 2009 15:35:51 UTC