Index: main/org/apache/tools/ant/taskdefs/Deltree.java
===================================================================
RCS file: /home/cvspublic/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Deltree.java,v
retrieving revision 1.5
diff -u -r1.5 Deltree.java
--- main/org/apache/tools/ant/taskdefs/Deltree.java	2000/07/06 16:48:14	1.5
+++ main/org/apache/tools/ant/taskdefs/Deltree.java	2000/09/16 17:48:43
@@ -72,7 +72,9 @@
     }
     
     public void execute() throws BuildException {
-	log("Deleting: " + dir.getAbsolutePath());
+        if (dir == null) {
+            throw new BuildException("<dir> attribute must be set!");
+        } 
 
 	if (dir.exists()) {
 	    if (!dir.isDirectory()) {
@@ -84,6 +86,9 @@
 		// " is not a dir";
 		// throw new BuildException(msg);
 	    }
+
+            log("Deleting: " + dir.getAbsolutePath());
+
             try {
                 removeDir(dir);
             } catch (IOException ioe) {
