Author: rob.stryker(a)jboss.com
Date: 2009-09-17 18:59:17 -0400 (Thu, 17 Sep 2009)
New Revision: 17644
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/eclipse/as/wtp/ui/propertypage/AddModuleDependenciesPropertiesPage.java
Log:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=289802
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/eclipse/as/wtp/ui/propertypage/AddModuleDependenciesPropertiesPage.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/eclipse/as/wtp/ui/propertypage/AddModuleDependenciesPropertiesPage.java 2009-09-17
22:40:05 UTC (rev 17643)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/eclipse/as/wtp/ui/propertypage/AddModuleDependenciesPropertiesPage.java 2009-09-17
22:59:17 UTC (rev 17644)
@@ -548,9 +548,12 @@
IVirtualComponent comp;
for( int i = 0; i < refs.length; i++ ) {
comp = refs[i].getReferencedComponent();
- String val = refs[i].getRuntimePath().append(refs[i].getArchiveName()).toString();
- objectToRuntimePath.put(comp, val);
- oldComponentToRuntimePath.put((IVirtualComponent) comp, val);
+ IPath val = refs[i].getRuntimePath();
+ if( refs[i].getDependencyType() != IVirtualReference.DEPENDENCY_TYPE_CONSUMES)
+ val = val.append(refs[i].getArchiveName());
+
+ objectToRuntimePath.put(comp, val.toString());
+ oldComponentToRuntimePath.put((IVirtualComponent) comp, val.toString());
}
ComponentResource[] allMappings = findAllMappings();