From 32cfa5b1066c1de3e18484d533ecddad213b02bb Mon Sep 17 00:00:00 2001 From: Jason Hunter Date: Sat, 5 Aug 2000 01:28:49 +0000 Subject: [PATCH] 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 --- build.xml | 4 +- .../apache/tools/mail}/MailMessage.java | 38 ++++++++----------- 2 files changed, 18 insertions(+), 24 deletions(-) rename src/main/{com/oreilly/servlet => org/apache/tools/mail}/MailMessage.java (93%) diff --git a/build.xml b/build.xml index 26df439cf..778533740 100644 --- a/build.xml +++ b/build.xml @@ -28,7 +28,7 @@ - + @@ -108,7 +108,7 @@ diff --git a/src/main/com/oreilly/servlet/MailMessage.java b/src/main/org/apache/tools/mail/MailMessage.java similarity index 93% rename from src/main/com/oreilly/servlet/MailMessage.java rename to src/main/org/apache/tools/mail/MailMessage.java index ecde91de4..601ab8762 100644 --- a/src/main/com/oreilly/servlet/MailMessage.java +++ b/src/main/org/apache/tools/mail/MailMessage.java @@ -1,14 +1,9 @@ -// Copyright (c) 2000 Jason Hunter 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: - *
    - *
  • Send submitted form data to interested parties - *
  • Send an email page to an administrator in case of error - *
  • Send the client an order confirmation - *
- *

+ * 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. *

* It can be used like this: *

@@ -117,12 +113,10 @@ import java.util.*;
  * 
    *
  • Figure out how to close the connection in case of error *
- * This class is part of a larger com.oreilly.servlet project from - * Servlets.com. * - * @author Jason Hunter, Copyright © 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 {