--- a/org.symbian.tools.wrttools/src/org/symbian/tools/wrttools/util/ProjectUtils.java Thu Mar 25 12:51:27 2010 -0700
+++ b/org.symbian.tools.wrttools/src/org/symbian/tools/wrttools/util/ProjectUtils.java Thu Mar 25 14:10:40 2010 -0700
@@ -268,10 +268,40 @@
addWrtNature(project);
+ excludeResources(project);
+
monitor.done();
return project;
}
+ private static void excludeResources(IProject project) {
+ IFile file = project.getFile(IProjectDescription.DESCRIPTION_FILE_NAME);
+ if (file.exists()) {
+ exclude(file);
+ }
+ IFolder settings = project.getFolder(".settings");
+ if (settings.exists()) {
+ excludeFolder(settings);
+ exclude(settings);
+ }
+ }
+
+ private static void excludeFolder(IFolder folder) {
+ exclude(folder);
+ try {
+ IResource[] members = folder.members();
+ for (IResource resource : members) {
+ if (resource.getType() == IResource.FOLDER) {
+ excludeFolder((IFolder) resource);
+ } else {
+ exclude(resource);
+ }
+ }
+ } catch (CoreException e) {
+ Activator.log(e);
+ }
+ }
+
public static List<Object> filterExternalProjectEntries(List<Object> fileSystemObjects) {
List<Object> result = new LinkedList<Object>();
for (Object object : fileSystemObjects) {