it = wsresources.iterator(); while (it.hasNext()) { FileSet fs = (FileSet) it.next(); dir = fs.getDir(getProject()); DirectoryScanner ds = fs.getDirectoryScanner(getProject()); ds.scan();  String[] allFiles = ds.getIncludedFiles(); for (int i = 0; i < allFiles.length; i++) { proj.addWSResourceFileReference((new File(dir,fixPath(allFiles[i]))).getAbsolutePath()); }  String[] allDirs = ds.getIncludedDirectories(); for (int i = 0; i < allDirs.length; i++) { proj.addWSResourceFolderReference((new File(dir,fixPath(allDirs[i]))).getAbsolutePath()); } }
	protected void addToProject( PBXProject proj ) {		//	Add resource file references.		File	dir;				Iterator it;		it = sources.iterator();		while (it.hasNext()) {			FileSet fs = (FileSet) it.next();			dir = fs.getDir(getProject());			DirectoryScanner ds = fs.getDirectoryScanner(getProject());			ds.scan();						String[] allFiles = ds.getIncludedFiles();			for (int i = 0; i < allFiles.length; i++) {				proj.addSourceReference((new File(dir,fixPath(allFiles[i]))).getAbsolutePath());			}			String[] allDirs = ds.getIncludedDirectories();			for (int i = 0; i < allDirs.length; i++) {				proj.addSourceReference((new File(dir,fixPath(allDirs[i]))).getAbsolutePath());			}		}		it = resources.iterator();		while (it.hasNext()) {			FileSet fs = (FileSet) it.next();			dir = fs.getDir(getProject());			DirectoryScanner ds = fs.getDirectoryScanner(getProject());			ds.scan();						String[] allFiles = ds.getIncludedFiles();			for (int i = 0; i < allFiles.length; i++) {				proj.addFileReference((new File(dir,fixPath(allFiles[i]))).getAbsolutePath());			}			String[] allDirs = ds.getIncludedDirectories();			for (int i = 0; i < allDirs.length; i++) {				proj.addFolderReference((new File(dir,fixPath(allDirs[i]))).getAbsolutePath());			}		}				//	Add framework references.		it = frameworkSets.iterator();		while(it.hasNext()) {			FrameworkSet fs = (FrameworkSet) it.next();			dir = fs.getDir(getProject());			//System.out.println( "**** frameworks dir: "+dir );			DirectoryScanner ds = fs.getDirectoryScanner(getProject());			ds.scan();			String[] allDirs = ds.getIncludedDirectories();			for (int i = 0; i < allDirs.length; i++) {				proj.addFrameworkReference((new File(dir,fixPath(allDirs[i]))).getAbsolutePath());			}		}	}