You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Kare Nuorteva <ka...@satama.com> on 2000/01/02 22:33:50 UTC

[PATCH] ant's Echo.java cleaned

Some cleaning and documentation in Echo.java

Index: Echo.java
===================================================================
RCS file:
/home/cvspublic/jakarta-tools/ant/src/main/org/apache/tools/ant/taskdefs/Echo.java,v
retrieving revision 1.2
diff -u -r1.2 Echo.java
--- Echo.java	1999/11/23 08:27:29	1.2
+++ Echo.java	2000/01/02 21:31:00
@@ -54,22 +54,34 @@
 
 package org.apache.tools.ant.taskdefs;
 
-import org.apache.tools.ant.*;
-import java.io.*;
-import java.net.*;
+import org.apache.tools.ant.Task;
+import org.apache.tools.ant.BuildException;
+
 /**
  * Echo
  *
  * @author costin@dnt.ro
+ * @author Kare Nuorteva <A
HREF="mailto:kare@satama.com">kare@satama.com</A>
  */
 public class Echo extends Task {
-    String message; // required
+
+    private String message; // required
     
+    /**
+     * Does the work.
+     *
+     * @exception BuildException if someting goes wrong with the build
+     */
     public void execute() throws BuildException {
 	System.out.println(message);
     }
 
-    public void setMessage(String d) {
-	this.message=d;
+    /**
+     * Sets the message variable.
+     *
+     * @param msg Sets the value for the message variable.
+     */
+    public void setMessage(String msg) {
+	this.message = msg;
     }
 }

cheers,
Kare 8^)

-- 
Kare Nuorteva, programmer
Satama Interactive, Henry Fordin katu 6 FIN-00150 HELSINKI
tel. +3589 680 51 396, GSM +35840 57 833 57
http://www.satama.com/ http://www.satama.de/