Author: scabanovich
Date: 2009-11-02 10:34:47 -0500 (Mon, 02 Nov 2009)
New Revision: 18389
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/operation/WebNatureOperation.java
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/operation/WebProjectAdoptOperation.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5110
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/operation/WebNatureOperation.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/operation/WebNatureOperation.java 2009-11-02
15:00:19 UTC (rev 18388)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/operation/WebNatureOperation.java 2009-11-02
15:34:47 UTC (rev 18389)
@@ -275,13 +275,17 @@
return;
}
if (!project.exists()) {
- for (int i = 0; i < dotFilesList.length; i++) {
- File file = projectLocation.append(dotFilesList[i]).toFile();
- if (file.exists()) FileUtil.remove(file);
- }
+ removeDotFiles(projectLocation);
}
}
+ protected void removeDotFiles(IPath projectLocation) {
+ for (int i = 0; i < dotFilesList.length; i++) {
+ File file = projectLocation.append(dotFilesList[i]).toFile();
+ if (file.exists()) FileUtil.remove(file);
+ }
+ }
+
/*
*
*/
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/operation/WebProjectAdoptOperation.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/operation/WebProjectAdoptOperation.java 2009-11-02
15:00:19 UTC (rev 18388)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/operation/WebProjectAdoptOperation.java 2009-11-02
15:34:47 UTC (rev 18389)
@@ -184,5 +184,12 @@
return true;
}
+ protected void removeDotFiles(IPath projectLocation) {
+ if(isLinkingToProjectOutsideWorkspace()) {
+ return;
+ } else {
+ super.removeDotFiles(projectLocation);
+ }
+ }
}