1 19 28 29 package org.netbeans.test.j2ee.lib; 30 31 import java.io.BufferedReader ; 32 import java.io.File ; 33 import java.io.FileReader ; 34 import java.io.IOException ; 35 import java.util.HashSet ; 36 import java.util.Set ; 37 38 42 public class RequiredFiles { 43 44 private Set files; 45 46 52 public RequiredFiles(File f) throws IOException { 53 init(f); 54 } 55 56 private void init(File f) throws IOException { 57 files = new HashSet (); 58 BufferedReader r = new BufferedReader (new FileReader (f)); 59 String s = null; 60 while ((s = r.readLine()) != null) { 61 if (s.startsWith("#")) { 62 continue; 64 } 65 files.add(s.replace('/', File.separatorChar)); 66 } 67 } 68 69 72 public Set getRequiredFiles() { 73 return new HashSet (files); 74 } 75 } 76 | Popular Tags |