You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by jo...@hyperreal.org on 1999/11/24 03:15:27 UTC

cvs commit: jakarta-tools/ant/src/main/org/apache/tools/ant/taskdefs Jar.java

jons        99/11/23 18:15:26

  Modified:    ant/src/main/org/apache/tools/ant/taskdefs Jar.java
  Log:
  one really shouldn't hit this error because the file should be there
  , but if you do hit this error, then deal with it without causing an NPE.
  
  Revision  Changes    Path
  1.4       +2 -0      jakarta-tools/ant/src/main/org/apache/tools/ant/taskdefs/Jar.java
  
  Index: Jar.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tools/ant/src/main/org/apache/tools/ant/taskdefs/Jar.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Jar.java	1999/11/23 08:27:30	1.3
  +++ Jar.java	1999/11/24 02:15:25	1.4
  @@ -113,6 +113,8 @@
   		zOut.putNextEntry(ze);
   		String s = "/org/apache/tools/ant/defaultManifest.mf";
   		InputStream in = this.getClass().getResourceAsStream(s);
  +        if ( in == null )
  +            throw new BuildException ( "Could not find: " + s );
   		jarFile(in, zOut, "META-INF/MANIFEST.MF");
   	    }