Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 319630 - p2 does not discover plugins in subfolder of dropins
Summary: p2 does not discover plugins in subfolder of dropins
Status: RESOLVED INVALID
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: p2 (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: P2 Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-12 15:56 EDT by Lars Vogel CLA
Modified: 2010-07-13 16:46 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Vogel CLA 2010-07-12 15:56:42 EDT
Hi,

today I exported a plugin and placed them in a subfolder of dropins. I used the Windows XP platform. 

This plugin was not discovered after restart of Eclipse. Only after I placed them into dropins directly Eclipse found them.

I believe subfolder are supposed to be working with dropins and p2.

Best regards, Lars
Comment 1 DJ Houghton CLA 2010-07-12 16:02:10 EDT
What is the exact directly structure that was not working for you? There are a bunch of different supported layouts. 

http://wiki.eclipse.org/Equinox_p2_Getting_Started#Supported_dropins_formats
Comment 2 Lars Vogel CLA 2010-07-12 16:09:53 EDT
I called my folder "website" and placed the plugins into this folder. 

Is this not supported?
Comment 3 DJ Houghton CLA 2010-07-13 16:35:54 EDT
No, this is not supported. I am surprised that you don't get an error message in the log file. I get the stack trace below when I tried it on my machine. Please refer to the above link to the wiki page for the supported formats.


!ENTRY org.eclipse.equinox.p2.core 4 0 2010-07-13 16:29:08.101
!MESSAGE Provisioning exception
!STACK 1
org.eclipse.equinox.p2.core.ProvisionException: No repository found at file:/Users/equinox/Downloads/eclipse/dropins/website/.
	at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.fail(AbstractRepositoryManager.java:392)
	at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:676)
	at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:96)
	at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:92)
	at org.eclipse.equinox.internal.p2.reconciler.dropins.Activator.loadMetadataRepository(Activator.java:92)
	at org.eclipse.equinox.internal.p2.reconciler.dropins.DropinsRepositoryListener.getMetadataRepository(DropinsRepositoryListener.java:198)
	at org.eclipse.equinox.internal.p2.reconciler.dropins.DropinsRepositoryListener.addRepository(DropinsRepositoryListener.java:93)
	at org.eclipse.equinox.internal.p2.reconciler.dropins.DropinsRepositoryListener.added(DropinsRepositoryListener.java:68)
	at org.eclipse.equinox.internal.provisional.p2.directorywatcher.DirectoryWatcher.processFile(DirectoryWatcher.java:197)
	at org.eclipse.equinox.internal.provisional.p2.directorywatcher.DirectoryWatcher.scanDirectories(DirectoryWatcher.java:160)
	at org.eclipse.equinox.internal.provisional.p2.directorywatcher.DirectoryWatcher.poll(DirectoryWatcher.java:108)
	at org.eclipse.equinox.internal.p2.reconciler.dropins.Activator.watchDropins(Activator.java:476)
	at org.eclipse.equinox.internal.p2.reconciler.dropins.Activator.start(Activator.java:160)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:783)
Comment 4 Lars Vogel CLA 2010-07-13 16:46:27 EDT
Thanks for clarification.