tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dun...@hyperreal.org
Subject cvs commit: jakarta-tools/ant/src/main/org/apache/tools/ant Task.java
Date Fri, 15 Oct 1999 01:48:48 GMT
duncan      99/10/14 18:48:48

  Modified:    ant/src/main/org/apache/tools/ant Task.java
  Log:
  Have ant ignore files named "template" since that's yet another CVS file.
  I'm a little worried ant may ignore a real file or dir someday that just
  happens to be named "root", "entries", etc.  We can
  eliminate that risk by passing along the dir to isFileDesirable().
  Even better, we can use file.list(FilenameFilter) which auto-passes
  the directory, and move the isFD() logic into a separate class.
  I like that.  I'll proceed with that bug fix when I have time.
  If you have any better ideas, yelp.
  
  Submitted by:	Jason Hunter, jch@eng.sun.com
  
  Revision  Changes    Path
  1.2       +5 -0      jakarta-tools/ant/src/main/org/apache/tools/ant/Task.java
  
  Index: Task.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tools/ant/src/main/org/apache/tools/ant/Task.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Task.java	1999/10/09 00:06:05	1.1
  +++ Task.java	1999/10/15 01:48:45	1.2
  @@ -128,6 +128,11 @@
   	    return false;
   	}
   
  +	// cvs file
  +	if (filename.equalsIgnoreCase("template")) {
  +	    return false;
  +	}
  +
   	// default
   	return true;
       }
  
  
  

Mime
View raw message