Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsGet dependencies of Installable Unit
https://www.eclipse.org/forums/index.php/mv/msg/1066398/1694855/#msg_1694855
Is there a way to get the dependencies of an Installable Unit without creating a partial mirror of a p2 repository?
Thanks,
Orlando
]]>Orlando Hill2015-05-08T13:45:35-00:00Re: Get list of jar files, given name/version of plugin
https://www.eclipse.org/forums/index.php/mv/msg/1066398/1698895/#msg_1698895
> Hi,
>
> I am hoping that someone with knowledge of the p2 or Tycho codebases can
> point me in the right direction.
>
> I have plugins and their dependencies stored in two p2 repositories.
> These repositories are used as the target platform, when building the
> plugins with Tycho.
>
> I would like to get the list of jar files for a plugin and its
> dependencies, given the name and version of the plugin. This list of jar
> files will then be used to populate the classpath, before running code
> within the plugin.
Hi
do you mean running Junit Plug-in tests with the target platform
populated with such plugins?
--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
HOME: http://www.lorenzobettini.it
Xtext Book: http://www.packtpub.com/implementing-domain-specific-languages-with-xtext-and-xtend/book]]>Lorenzo Bettini2015-06-18T14:56:27-00:00Re: Get list of jar files, given name/version of plugin
https://www.eclipse.org/forums/index.php/mv/msg/1066398/1698971/#msg_1698971
The use case is a command-line tool which executes a JVM-based scripting language. The tool is given a set of bundles as command-line arguments, and needs to make the classes and resources of those bundles accessible from within the script.
I have this working by running Maven/Tycho in the background (packaging=eclipse-repository, add bundles to category.xml), getting the jar file names from the created p2 repo, and then invoking a new JVM (classpath populated) to run the actual script.
Since Mave/Tycho takes 20-30 seconds to run, I cache the result per bundle set.
It would be nice, if Tycho or p2 provided an API to access this kind of dependency information.]]>Orlando Hill2015-06-19T08:58:28-00:00