1 17 18 19 20 package org.apache.lenya.cms.ant; 21 22 import java.io.File ; 23 import java.io.FilenameFilter ; 24 import java.util.Arrays ; 25 import java.util.List ; 26 27 31 public class SCMFilenameFilter implements FilenameFilter { 32 33 private List excludes; 34 35 39 public SCMFilenameFilter(String excludes) { 40 this.excludes = Arrays.asList(excludes.split(",")); 41 } 42 43 47 public boolean accept(File dir, String name) { 48 return !this.excludes.contains(name); 49 } 50 } 51 | Popular Tags |