<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -39,7 +39,7 @@
   &lt;!-- prefixed with &quot;env&quot;. --&gt;
   &lt;property environment=&quot;env&quot;/&gt;
 
-  &lt;property name=&quot;version&quot; value=&quot;1.2.15&quot;/&gt;
+  &lt;property name=&quot;version&quot; value=&quot;1.2.15-ssl-patch&quot;/&gt;
 
   &lt;!-- The base directory relative to which most targets are built --&gt;
   &lt;property name=&quot;base&quot; value=&quot;.&quot;/&gt;
@@ -595,9 +595,13 @@
   &lt;!-- Build the site files using Maven              --&gt;
   &lt;!-- ============================================== --&gt;
   &lt;target name=&quot;site&quot;&gt;
-	&lt;exec executable=&quot;mvn&quot;&gt;
+  	&lt;exec executable=&quot;mvn&quot; osfamily=&quot;unix&quot;&gt;
 		&lt;arg value=&quot;site&quot;/&gt;
 	&lt;/exec&gt;
+
+	&lt;exec executable=&quot;cmd&quot; osfamily=&quot;windows&quot;&gt;
+	    &lt;arg value=&quot;/c mvn site&quot;/&gt;
+	&lt;/exec&gt;
   &lt;/target&gt;
 
 </diff>
      <filename>build.xml</filename>
    </modified>
    <modified>
      <diff>@@ -383,6 +383,11 @@
   		&lt;url&gt;https://maven-repository.dev.java.net/nonav/repository&lt;/url&gt;
   		&lt;layout&gt;legacy&lt;/layout&gt;
 	&lt;/repository&gt;
+	&lt;repository&gt;
+	    &lt;id&gt;java.net-official&lt;/id&gt;
+	    &lt;url&gt;http://download.java.net/maven/1&lt;/url&gt;
+	    &lt;layout&gt;legacy&lt;/layout&gt;
+	&lt;/repository&gt;
 &lt;/repositories&gt;
 &lt;dependencies&gt;
   &lt;dependency&gt;</diff>
      <filename>pom.xml</filename>
    </modified>
    <modified>
      <diff>@@ -20,7 +20,10 @@
     &lt;title&gt;Apache log4j 1.2&lt;/title&gt;
   &lt;/properties&gt;
   &lt;body&gt;
-  
+    &lt;release version=&quot;1.2.15-ssl-patch&quot; date=&quot;2009-03-05&quot; description=&quot;Support SSL transport in SMTPAppender for gmail support.&quot;&gt;
+	    &lt;action action=&quot;fix&quot; issue=&quot;25355&quot;&gt;Support SSL transport in SMTPAppender&lt;/action&gt;
+    &lt;release&gt;
+    
     &lt;release version=&quot;1.2.15&quot; date=&quot;2007-08-24&quot; description=&quot;SyslogAppender enhancements, NTEventLogAppender and Maven build.&quot;&gt;
 	    &lt;action issue=&quot;40951&quot;&gt;log4j 1.2.15 release preparation.&lt;/action&gt;
         &lt;action action=&quot;add&quot; issue=&quot;40212&quot;&gt;Switch to NOPLoggerRepository if application reloading nulls repositorySelector.&lt;/action&gt;</diff>
      <filename>src/changes/changes.xml</filename>
    </modified>
    <modified>
      <diff>@@ -83,6 +83,9 @@ public class SMTPAppender extends AppenderSkeleton
   private String smtpHost;
   private String smtpUsername;
   private String smtpPassword;
+  private String smtpProtocol;
+  private int smtpPort = -1;
+  private String startTls;
   private boolean smtpDebug = false;
   private int bufferSize = 512;
   private boolean locationInfo = false;
@@ -173,13 +176,28 @@ public class SMTPAppender extends AppenderSkeleton
     } catch(SecurityException ex) {
         props = new Properties();
     }
+    
+    String prefix = &quot;mail.smtp&quot;;
+    if (smtpProtocol != null) {
+        props.put(&quot;mail.transport.protocol&quot;, smtpProtocol);
+        prefix = &quot;mail.&quot; + smtpProtocol;
+    }
+
     if (smtpHost != null) {
-      props.put(&quot;mail.smtp.host&quot;, smtpHost);
+      props.put(prefix + &quot;.host&quot;, smtpHost);
+    }
+
+    if (smtpPort &gt; 0) {
+        props.put(prefix + &quot;.port&quot;, String.valueOf(smtpPort));
+    }
+
+    if (startTls != null) {
+      props.put(&quot;mail.smtp.starttls.enable&quot;, startTls);
     }
     
     Authenticator auth = null;
     if(smtpPassword != null &amp;&amp; smtpUsername != null) {
-      props.put(&quot;mail.smtp.auth&quot;, &quot;true&quot;);
+      props.put(prefix + &quot;.auth&quot;, &quot;true&quot;);
       auth = new Authenticator() {
         protected PasswordAuthentication getPasswordAuthentication() {
           return new PasswordAuthentication(smtpUsername, smtpPassword);
@@ -187,12 +205,78 @@ public class SMTPAppender extends AppenderSkeleton
       };
     }
     Session session = Session.getInstance(props, auth);
+    if (smtpProtocol != null) {
+        session.setProtocolForAddress(&quot;rfc822&quot;, smtpProtocol);
+    }
     if (smtpDebug) {
         session.setDebug(smtpDebug);
     }
     return session;
   }
 
+    /**
+     * Get transport protocol.
+     * Typically null or &quot;smtps&quot;.
+     *
+     * @return transport protocol, may be null.
+     * @since 1.2.16
+     */
+  public final String getSMTPProtocol() {
+      return smtpProtocol;
+  }
+
+    /**
+     * Set transport protocol.
+     * Typically null or &quot;smtps&quot;.
+     *
+     * @param val transport protocol, may be null.
+     * @since 1.2.16
+     */
+  public final void setSMTPProtocol(final String val) {
+      smtpProtocol = val;
+  }
+
+    /**
+     * Get port.
+     *
+     * @return port, negative values indicate use of default ports for protocol.
+     * @since 1.2.16
+     */
+  public final int getSMTPPort() {
+        return smtpPort;
+  }
+  
+    /**
+     * Set startTls.
+     * Typically true/false.
+     *
+     * @since 1.2.15-gmail-patch
+     */
+  public final void setStartTls(final String val) {
+      startTls = val;
+  }
+
+    /**
+     * Get startTls.
+     *
+     * @return true/false/null
+     * @since 1.2.15-gmail-patch
+     */
+  public final String getStartTls() {
+        return startTls;
+  }
+
+    /**
+     * Set port.
+     *
+     * @param val port, negative values indicate use of default ports for protocol.
+     * @since 1.2.16
+     */
+  public final void setSMTPPort(final int val) {
+        smtpPort = val;
+  }
+
+
   /**
      Perform SMTPAppender specific appending actions, mainly adding
      the event to a cyclic buffer and checking if the event triggers</diff>
      <filename>src/main/java/org/apache/log4j/net/SMTPAppender.java</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d26ede728279d763abb05ae3ab9ed78450fb38e6</id>
    </parent>
  </parents>
  <author>
    <name>francisoud</name>
    <email>pub.cog@gmail.com</email>
  </author>
  <url>http://github.com/francisoud/log4j-1.2.15-ssl-patch/commit/32a602604f4d4eb12a471d8e97796156a423b4d3</url>
  <id>32a602604f4d4eb12a471d8e97796156a423b4d3</id>
  <committed-date>2009-03-20T01:57:29-07:00</committed-date>
  <authored-date>2009-03-20T01:57:29-07:00</authored-date>
  <message>patching log4j file to add gmail support</message>
  <tree>0fc5956e5470f63b1e1ed1992e1a4ab51d2693cd</tree>
  <committer>
    <name>francisoud</name>
    <email>pub.cog@gmail.com</email>
  </committer>
</commit>
