Author: bbrodt
Date: 2011-03-15 14:41:32 -0400 (Tue, 15 Mar 2011)
New Revision: 29797
Modified:
trunk/bpel/plugins/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/facets/BPELCoreFacetInstallDelegate.java
Log:
https://issues.jboss.org/browse/JBIDE-8508
Fix Resource Exists exception that is causing quickstart sample project imports to fail
Modified:
trunk/bpel/plugins/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/facets/BPELCoreFacetInstallDelegate.java
===================================================================
---
trunk/bpel/plugins/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/facets/BPELCoreFacetInstallDelegate.java 2011-03-15
18:39:52 UTC (rev 29796)
+++
trunk/bpel/plugins/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/facets/BPELCoreFacetInstallDelegate.java 2011-03-15
18:41:32 UTC (rev 29797)
@@ -68,9 +68,11 @@
// add natures
WtpUtils.addNatures(proj);
- // Create the content folder
+ // Create the content folder if it doesn't already exist
+ //
https://issues.jboss.org/browse/JBIDE-8508
IFolder bpelContent = proj.getFolder(contentRoot);
- bpelContent.create(true,true, null);
+ if (!bpelContent.exists())
+ bpelContent.create(true,true, null);
// create the virtual component
IComponentImplFactory factory = new BPELVirtualComponent();