Browse Source

Moved MailMessage from com.oreilly.servlet to org.apache.tools.mail

(imitating org.apache.tools.tar).  Also made it pure copyright ASF.
For those interested in legalities, my understanding is I'm granting
the ASF copyright on this code but have my own copyright on the code
as it existed before the grant.  That means I can include my own code
in my book without following the Apache license, but I can't use
improvements to the ASF code without following the Apache license
(as is perfectly appropriate).

Changed build.xml to no longer build com/**.

-jh-

PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267889 13f79535-47bb-0310-9956-ffa450edef68
master
Jason Hunter 25 years ago
parent
commit
32cfa5b106
2 changed files with 18 additions and 24 deletions
  1. +2
    -2
      build.xml
  2. +16
    -22
      src/main/org/apache/tools/mail/MailMessage.java

+ 2
- 2
build.xml View File

@@ -28,7 +28,7 @@
<property name="ant.dist.dir" value="../dist/ant"/>

<property name="classpath" value=""/>
<property name="packages" value="org.apache.tools.*,com.oreilly.servlet.*"/>
<property name="packages" value="org.apache.tools.*"/>
<property name="manifest" value="src/etc/manifest"/>

<property name="build.compiler" value="classic"/>
@@ -108,7 +108,7 @@
<mkdir dir="${lib.dir}"/>
<jar jarfile="${lib.dir}/${name}.jar"
basedir="${build.classes}"
includes="org/**,com/**"
includes="org/**"
manifest="${manifest}"
/>
</target>


src/main/com/oreilly/servlet/MailMessage.java → src/main/org/apache/tools/mail/MailMessage.java View File

@@ -1,14 +1,9 @@
// Copyright (c) 2000 Jason Hunter <jh@servlets.com> and
// The Apache Software Foundation. All rights reserved.
//
// NOTE:
// This code is mirrored from http://Servlets.com
// Updates should be done in conjunction with Servlets.com
// and the larger com.oreilly.servlet project

/*
* The Apache Software License, Version 1.1
*
* Copyright (c) 1999 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -53,26 +48,27 @@
*
*/

package com.oreilly.servlet;
/*
* The original version of this class was donated by Jason Hunter,
* who wrote the class as part of the com.oreilly.servlet
* package for his book "Java Servlet Programming" (O'Reilly).
* See http://www.servlets.com.
*
*/

package org.apache.tools.mail;

import java.io.*;
import java.net.*;
import java.util.*;

/**
* A class to help send SMTP email. It can be used by any Java program, not
* just servlets. Servlets are likely to use this class to:
* <ul>
* <li>Send submitted form data to interested parties
* <li>Send an email page to an administrator in case of error
* <li>Send the client an order confirmation
* </ul>
* <p>
* A class to help send SMTP email.
* This class is an improvement on the sun.net.smtp.SmtpClient class
* found in the JDK. This version has extra functionality, and can be used
* with JVMs that did not extend from the JDK. It's not as robust as
* the JavaMail Standard Extension classes, but it's easier to use and
* easier to install, and has a more open license.
* easier to install, and has an Open Source license.
* <p>
* It can be used like this:
* <blockquote><pre>
@@ -117,12 +113,10 @@ import java.util.*;
* <ul>
* <li>Figure out how to close the connection in case of error
* </ul>
* This class is part of a larger com.oreilly.servlet project from
* <a href="http://Servlets.com">Servlets.com</a>.
*
* @author <b>Jason Hunter</b>, Copyright &#169; 1999-2000
* @author Jason Hunter
* @version 1.1, 2000/03/19, added angle brackets to address, helps some servers
* @version 1.0, 1999/12/29
* version 1.0, 1999/12/29
*/
public class MailMessage {


Loading…
Cancel
Save