Index: main/org/apache/tools/ant/taskdefs/Tar.java
===================================================================
RCS file: /home/cvspublic/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Tar.java,v
retrieving revision 1.4
diff -u -r1.4 Tar.java
--- main/org/apache/tools/ant/taskdefs/Tar.java	2000/07/10 07:29:26	1.4
+++ main/org/apache/tools/ant/taskdefs/Tar.java	2000/09/16 17:48:52
@@ -84,7 +84,10 @@
     }
 
     public void execute() throws BuildException {
-        log("Building tar: "+ tarFile.getAbsolutePath());
+        if (tarFile == null) {
+            throw new BuildException("tarfile attribute must be set!", 
+                                     location);
+        }
 
         if (baseDir == null) {
             throw new BuildException("basedir attribute must be set!", 
@@ -93,6 +96,8 @@
         if (!baseDir.exists()) {
             throw new BuildException("basedir does not exist!", location);
         }
+
+        log("Building tar: "+ tarFile.getAbsolutePath());
 
         DirectoryScanner ds = super.getDirectoryScanner(baseDir);
 
