Community
Participate
Working Groups
Build Identifier: 0.9.0.I20100114-2115 If a project name contains an underscore the applicationXMI file (specified in the plugin.xml) cannot be resolved when launching the product. Reproducible: Always Steps to Reproduce: 1. In the menu select 'e4' -> 'Generate Example Project', Import Project Set 2. Open 'org.eclipse.e4.demo.contacts/contacts.product', click 'Launch an Eclipse application', app launches fine 3. Select 'org.eclipse.e4.demo.contacts', 'Refactor' -> 'Rename' to 'org.eclipse.e_4.demo.contacts' 4. Open 'plugin.xml', change value of the 'applicationXMI' property to 'org.eclipse.e_4.demo.contacts/Application.e4xmi' 5. Open the launch configuration, select the 'org.eclipse.e_4.demo.contacts.product' (Main tab) and the 'org.eclipse.e_4.demo.contacts' plugin (Plug-ins tab), click 'Run' The application does not start, reporting a java.io.IOException: Unable to resolve plug-in "platform:/plugin/org.eclipse.e_4.demo.contacts/Application.e4xmi"
Created attachment 156654 [details] Stack trace
Check the MANIFEST.MF ... did it update the bundle Bundle-SymbolicName? The only other thing I can think of is you might have to go to the launch config and clear the config area (assuming org.eclipse.e_4.demo.contacts is now listed in the plugins used for launch config, but it sounds like it is). PW
The Bundle-SymbolicName was updated and is 'org.eclipse.e_4.demo.contacts'. I just tried clearing the config area, but no change.
Created attachment 156925 [details] Unit test, requires the original contacts demo in addition to the renamed one described above.
Created attachment 156926 [details] Patch for PlatformURLConnection.java
Thank you, Fabian, for your investigations.
Created attachment 156993 [details] fiz and tests Here is a patch that includes some tests. It is interesting that we already tried to fix this issue in bug 155081. This is a different flavor because the _ is included in the BSN and in bug 155081 the _ was in the version. This patch includes a test to ensure bug 155081 is not re-introduced by this fix.
DJ please review and release. I'm fine with including in M5 if you feel it is safe. Thanks Fabian!
Released to HEAD.