bodewig     00/10/12 06:29:29

  Modified:    src/main/org/apache/tools/ant/taskdefs Zip.java
  Log:
  Throw an exception if the zip/jar/warfile attribute has been omitted
  in Zip.
  
  Submitted by: Nico Seessle <[EMAIL PROTECTED]>
  
  Revision  Changes    Path
  1.15      +4 -0      
jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Zip.java
  
  Index: Zip.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Zip.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- Zip.java  2000/09/25 14:35:50     1.14
  +++ Zip.java  2000/10/12 13:29:29     1.15
  @@ -135,6 +135,10 @@
           if (baseDir == null && filesets.size() == 0 && 
"zip".equals(archiveType))
               throw new BuildException("basedir attribute must be set, or at 
least one fileset must be given!");
   
  +        if (zipFile == null) {
  +            throw new BuildException("You must specify the " + archiveType + 
"file to create!");
  +        }
  +
           Vector dss = new Vector ();
           if (baseDir != null)
               dss.addElement(getDirectoryScanner(baseDir));
  
  
  

Reply via email to