public SourceFinder getSourceFinder() { if (sourceFinder == null) { sourceFinder = new SourceFinder(this); } return sourceFinder; }
public SourceSearcher(Project project) { sourceFinder = new SourceFinder(project); }
/** * Remove source directory at given index. * * @param num * index of the source directory to remove */ public void removeSourceDir(int num) { srcDirList.remove(num); IO.close(sourceFinder); sourceFinder = new SourceFinder(this); isModified = true; }
public CopyBuggySource(String[] args) throws Exception { origCollection = new SortedBugCollection(); origCollection.readXML(args[0]); project = origCollection.getProject(); sourceFinder = new SourceFinder(project); src = new File(args[1]); kind = SrcKind.get(src); switch (kind) { case DIR: break; case ZIP: zOut = new ZipOutputStream(new FileOutputStream(src)); break; case Z0P_GZ: zOut = new ZipOutputStream(new DeflaterOutputStream(new FileOutputStream(src))); zOut.setLevel(0); break; } }
/** * Add source directories to the project. * * @param sourceDirs * The source directories to add. These can be either absolute paths * or relative to any of the working directories in this project object. * @return true if a source directory was added or false if all source * directories were already present */ public boolean addSourceDirs(Collection<String> sourceDirs) { boolean isNew = false; if (sourceDirs == null || sourceDirs.isEmpty()) { return isNew; } for (String dirName : sourceDirs) { for (String dir : makeAbsoluteCwdCandidates(dirName)) { isNew = addToListInternal(srcDirList, dir) || isNew; } } IO.close(sourceFinder); sourceFinder = new SourceFinder(this); return isNew; }
public SourceFinder getSourceFinder() { if (sourceFinder == null) { sourceFinder = new SourceFinder(this); } return sourceFinder; }
public SourceSearcher(Project project) { sourceFinder = new SourceFinder(project); }
/** * Remove source directory at given index. * * @param num * index of the source directory to remove */ public void removeSourceDir(int num) { srcDirList.remove(num); sourceFinder = new SourceFinder(this); isModified = true; }
public CopyBuggySource(String[] args) throws Exception { origCollection = new SortedBugCollection(); origCollection.readXML(args[0]); project = origCollection.getProject(); sourceFinder = new SourceFinder(project); src = new File(args[1]); kind = SrcKind.get(src); switch (kind) { case DIR: break; case ZIP: zOut = new ZipOutputStream(new FileOutputStream(src)); break; case Z0P_GZ: zOut = new ZipOutputStream(new DeflaterOutputStream(new FileOutputStream(src))); zOut.setLevel(0); break; } }
/** * Add a source directory to the project. * * @param dirName * the directory to add * @return true if the source directory was added, or false if the source * directory was already present */ public boolean addSourceDir(String dirName) { boolean isNew = false; for (String dir : makeAbsoluteCwdCandidates(dirName)) { isNew = addToListInternal(srcDirList, dir) || isNew; } sourceFinder = new SourceFinder(this); return isNew; }
origCollection = new SortedBugCollection(); origCollection.readXML(args[0]); SourceFinder sourceFinder = new SourceFinder(origCollection.getProject());
SourceFinder sourceFinder = new SourceFinder(project); String actualName = extractModuleName(moduleName, project);
SourceFinder sourceFinder = new SourceFinder(project); String actualName = extractModuleName(moduleName, project);
SourceFinder sourceFinder = new SourceFinder(project); String actualName = extractModuleName(moduleName, project);