Index: main/org/apache/tools/ant/taskdefs/GZip.java
===================================================================
RCS file: /home/cvspublic/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/GZip.java,v
retrieving revision 1.4
diff -u -r1.4 GZip.java
--- main/org/apache/tools/ant/taskdefs/GZip.java	2000/07/10 07:29:26	1.4
+++ main/org/apache/tools/ant/taskdefs/GZip.java	2000/09/16 17:48:46
@@ -81,6 +81,14 @@
     }
 
     public void execute() throws BuildException {
+        if (zipFile == null) {
+            throw new BuildException("zipfile attribute is required", location);
+        }
+
+        if (source == null) {
+            throw new BuildException("src attribute is required", location);
+        }
+
         log("Building gzip: " + zipFile.getAbsolutePath());
     
         GZIPOutputStream zOut = null;
