1 package org.apache.maven.repository;
4 * Copyright 2001-2005 The Apache Software Foundation.
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
21 * This class is used to ignore several files that may be present inside the repository so that the other classes
22 * may not worry about them and then can concentrate on doing their tasks.
25 public class RepositoryFileFilter implements java.io.FileFilter
27 public boolean accept(java.io.File pathname)
29 if ( pathname.isDirectory() )
31 if ( ".svn".equals( pathname.getName() ) ) return false;
32 if ( "CVS".equals( pathname.getName() ) ) return false;
36 String name = pathname.getName();
37 if ( name.endsWith( ".md5" ) ) return false;
38 if ( name.endsWith( ".sha1" ) ) return false;