HashSet resolvedEntries = new HashSet();
HashSet resolvedEntries = new HashSet();   HashSet generatedEntries = new HashSet();
	protected synchronized void buildIncludeFiles() {		// avoid double entries		HashSet resolvedEntries = new HashSet();		// add wo classpath entries		IJavaProject myJavaProject = JavaCore.create(this.getIProject());		IClasspathEntry[] classPaths;		try {			classPaths = myJavaProject.getResolvedClasspath(true);		} catch (JavaModelException e) {			System.out.println(				"Exception while trying to get classpath entries: "					+ e.getMessage());			return;		}		IFile currentFrameworkListFile;		// use sorted root paths to ensure correct replacement of 		// classpath entries with framework entries		for (int i = 0; i < this.getPaths().length; i++) {            IPath thisPath = new Path(getPaths()[i]);			currentFrameworkListFile =				this.getIProject().getFile(					INCLUDES_FILE_PREFIX + "." + rootPaths[i]);			if (currentFrameworkListFile.exists()) {				// delete old include file				try {					if (false)						currentFrameworkListFile.delete(true, null);				} catch (CoreException e) {					throw new BuildException(						"Exception while trying to delete "							+ currentFrameworkListFile.getName()							+ ": "							+ e.getMessage());				}			}			StringBuffer newFrameworkEntries = new StringBuffer();			String resolvedEntry;			for (int j = 0; j < classPaths.length; j++) {				if (classPaths[j].getEntryKind() == IClasspathEntry.CPE_LIBRARY					|| classPaths[j].getEntryKind()						== IClasspathEntry.CPE_VARIABLE) {					// convert classpath entries to woproject acceptable paths					resolvedEntry =						classpathEntryToFrameworkEntry(							classPaths[j],							thisPath);					//Uk was sorted					if (resolvedEntry != null						&& !resolvedEntries.contains(resolvedEntry)) {						resolvedEntries.add(resolvedEntry);						newFrameworkEntries.append(resolvedEntry);						newFrameworkEntries.append("\n");					}				}			}			if (newFrameworkEntries.length() == 0) {				newFrameworkEntries.append(					"An empty file result in a full filesystem scan");				newFrameworkEntries.append("\n");			}			try {				if (currentFrameworkListFile.exists()) {					// file may be created by WOBuilder in the meantime					// no update needed					currentFrameworkListFile.setContents(						new ByteArrayInputStream(							newFrameworkEntries.toString().getBytes()),						true,						true,						null);				} else {					// create list file if any entries found					currentFrameworkListFile.create(						new ByteArrayInputStream(							newFrameworkEntries.toString().getBytes()),						true,						null);				}			} catch (CoreException e) {				throw new BuildException(					"Exception while trying to create "						+ currentFrameworkListFile.getName()						+ ": "						+ e.getMessage());			}		}	}