airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lah...@apache.org
Subject svn commit: r1596293 - in /airavata/sandbox/gfac-sample/local-handler-sample/src/main/java/org/apache/airavata/gfac/local/handler: InputEmailHandler.java OutputEmailHandler.java
Date Tue, 20 May 2014 15:37:14 GMT
Author: lahiru
Date: Tue May 20 15:37:14 2014
New Revision: 1596293

URL: http://svn.apache.org/r1596293
Log:
fixing sample

Modified:
    airavata/sandbox/gfac-sample/local-handler-sample/src/main/java/org/apache/airavata/gfac/local/handler/InputEmailHandler.java
    airavata/sandbox/gfac-sample/local-handler-sample/src/main/java/org/apache/airavata/gfac/local/handler/OutputEmailHandler.java

Modified: airavata/sandbox/gfac-sample/local-handler-sample/src/main/java/org/apache/airavata/gfac/local/handler/InputEmailHandler.java
URL: http://svn.apache.org/viewvc/airavata/sandbox/gfac-sample/local-handler-sample/src/main/java/org/apache/airavata/gfac/local/handler/InputEmailHandler.java?rev=1596293&r1=1596292&r2=1596293&view=diff
==============================================================================
--- airavata/sandbox/gfac-sample/local-handler-sample/src/main/java/org/apache/airavata/gfac/local/handler/InputEmailHandler.java
(original)
+++ airavata/sandbox/gfac-sample/local-handler-sample/src/main/java/org/apache/airavata/gfac/local/handler/InputEmailHandler.java
Tue May 20 15:37:14 2014
@@ -41,7 +41,7 @@ public class InputEmailHandler implement
         Session session = Session.getInstance(props,
                 new javax.mail.Authenticator() {
                     protected PasswordAuthentication getPasswordAuthentication() {
-                        return new PasswordAuthentication((String) props.get("username")
+ "@gmail.com", (String) props.get("username"));
+                        return new PasswordAuthentication((String) props.get("username"),
(String) props.get("password"));
                     }
                 });
 

Modified: airavata/sandbox/gfac-sample/local-handler-sample/src/main/java/org/apache/airavata/gfac/local/handler/OutputEmailHandler.java
URL: http://svn.apache.org/viewvc/airavata/sandbox/gfac-sample/local-handler-sample/src/main/java/org/apache/airavata/gfac/local/handler/OutputEmailHandler.java?rev=1596293&r1=1596292&r2=1596293&view=diff
==============================================================================
--- airavata/sandbox/gfac-sample/local-handler-sample/src/main/java/org/apache/airavata/gfac/local/handler/OutputEmailHandler.java
(original)
+++ airavata/sandbox/gfac-sample/local-handler-sample/src/main/java/org/apache/airavata/gfac/local/handler/OutputEmailHandler.java
Tue May 20 15:37:14 2014
@@ -41,7 +41,7 @@ public class OutputEmailHandler implemen
         Session session = Session.getInstance(props,
                 new javax.mail.Authenticator() {
                     protected PasswordAuthentication getPasswordAuthentication() {
-                        return new PasswordAuthentication(((String) props.get("username"))
+ "@gmail.com", (String) props.get("username"));
+                        return new PasswordAuthentication((String) props.get("username"),
(String) props.get("password"));
                     }
                 });
 
@@ -57,6 +57,7 @@ public class OutputEmailHandler implemen
             for (String input : parameters.keySet()) {
                 buffer.append("Input Name: input: Input Value: " + parameters.get(input)
+ "\n");
             }
+            message.setText(buffer.toString());
             Transport.send(message);
         } catch (MessagingException e) {
             e.printStackTrace();  //To change body of catch statement use File | Settings
| File Templates.



Mime
View raw message