FileSet set = new FileSet();
ResourcesSet set = new ResourcesSet();
	private String setUp(PBXProjectCoder coder, String rootObject) {		Iterator i;		PBXProject pbxProject = (PBXProject) coder.objectForRef(rootObject);		PBXTarget mainTaget = (PBXTarget) pbxProject.getTargets().get(0);		PBXTarget appTarget = (PBXTarget) pbxProject.getTargets().get(1);		PBXTarget webTarget = (PBXTarget) pbxProject.getTargets().get(2);		PBXSourcesBuildPhase javaPhase = null;		PBXResourcesBuildPhase resourcesPhase = null;		PBXResourcesBuildPhase webResourcesPhase = null;		/**		 * get build pahses (needed to find the files)		 */		i = appTarget.getBuildPhases().iterator();		while (i.hasNext()) {			Object o = i.next();			if (o.getClass() == PBXSourcesBuildPhase.class) {				javaPhase = (PBXSourcesBuildPhase) o;			}			if (o.getClass() == PBXResourcesBuildPhase.class) {				resourcesPhase = (PBXResourcesBuildPhase) o;			}		}		i = webTarget.getBuildPhases().iterator();		while (i.hasNext()) {			Object o = i.next();			if (o.getClass() == PBXResourcesBuildPhase.class) {				webResourcesPhase = (PBXResourcesBuildPhase) o;			}		}		Collection javaFiles = javaPhase.getFiles();		Collection resourcesFiles = resourcesPhase.getFiles();		Collection webResourcesFiles = webResourcesPhase.getFiles();		/**		 * Setup the WOTask		 */		String isa = mainTaget.getProductReference().getIsa();		if (isa.equals("PBXApplicationReference")) {			task = new WOApplication();		} else if (isa.equals("PBXFrameworkReference")) {			task = new WOFramework();		}		task.setOwningTarget(this.getOwningTarget());		task.setProject(this.getProject());		task.setTaskName(this.getTaskName());		task.setLocation(this.getLocation());		task.setName(this.name);		task.setDestDir(this.destDir);		/**		 * gather java sources files		 */		String sourcesFiles = "";		i = javaFiles.iterator();		while (i.hasNext()) {			String file = ((PBXBuildFile) i.next()).getPath();			sourcesFiles += file + ",";		}		/**		 * gather resources files		 */		i = resourcesFiles.iterator();		while (i.hasNext()) {			FileSet set = new FileSet();			File tempFile = new File(this.getProject().getBaseDir(),					((PBXBuildFile) i.next()).getPath());			set.setProject(this.getProject());			if (tempFile.isDirectory()) {				set.setDir(tempFile.getParentFile());				set.setIncludes(tempFile.getName() + "/*");			} else				set.setFile(tempFile);			task.addResources(set);		}		/**		 * gather web resources files		 */		i = webResourcesFiles.iterator();		while (i.hasNext()) {			FileSet set = new FileSet();			File tempFile = new File(this.getProject().getBaseDir(),					((PBXBuildFile) i.next()).getPath());			set.setProject(this.getProject());			if (tempFile.isDirectory()) {				set.setDir(tempFile.getParentFile());				set.setIncludes(tempFile.getName() + "/*");			} else				set.setFile(tempFile);			task.addWsresources(set);		}		return sourcesFiles;	}